6 static FILE *fp_trace = NULL;
8 void __attribute__((constructor)) trace_begin(
void)
10 fp_trace = fopen(
"trace.out",
"w");
13 void __attribute__((destructor)) trace_end(
void)
20 void __attribute((no_instrument_function))
21 __cyg_profile_func_enter(
void *func,
void *caller)
24 fprintf(fp_trace,
"e %p %p %lu\n", func, caller, time(NULL));
28 void __attribute((no_instrument_function))
29 __cyg_profile_func_exit(
void *func,
void *caller)
32 fprintf(fp_trace,
"x %p %p %lu\n", func, caller, time(NULL));