Hi Derek, all,
is there a smooth way to detect library code in a construct like this:
drmgr_register_bb_instrumentation_event(NULL, event_bb_instr_global, NULL);
...
dr_insert_clean_call(drcontext, bb, instr, process_instr_trace_instr, FALSE, 2, OPND_CREATE_INTPTR(instr_addr), OPND_CREATE_INTPTR(trace_para));
...
void __cdecl process_instr_trace_instr(app_pc instr_addr, S_TRACE_PARA* tr)
<check here if "instr_addr" belongs to the library code or usercode>
With library I mean a DLL loaded by the instrumented file at runtime. The main goal is to only instrument non-library code of the sample.
Thx,
Peter