Skip to main content

dr_insert_call_instrumentation

Function dr_insert_call_instrumentation 

Source
pub unsafe extern "C" fn dr_insert_call_instrumentation(
    drcontext: *mut c_void,
    ilist: *mut instrlist_t,
    instr: *mut instr_t,
    callee: *mut c_void,
)
Expand description

Assumes that \p instr is a near call. Inserts into \p ilist prior to \p instr instruction(s) to call callee passing two arguments: -# address of call instruction (caller) -# target address of call (callee) \note Sets #DR_CLEANCALL_READS_APP_CONTEXT and #DR_CLEANCALL_WRITES_APP_CONTEXT. Conditionally skipping the instrumentation inserted by this routine is not supported (i.e., #DR_CLEANCALL_MULTIPATH is not supported here).