📅  最后修改于: 2022-03-11 15:00:07.484000             🧑  作者: Mango
#include
#define notrace __attribute__((no_instrument_function))
#define _RET_IP_ (unsigned long)__builtin_return_address(0)
void notrace __sanitizer_cov_trace_pc(void)
{
//printf("code instrumented...\n");
printf("return pc [0x%x]\n", _RET_IP_);
}