pub type drmgr_insertion_cb_t = Option<unsafe extern "C" fn(drcontext: *mut c_void, tag: *mut c_void, bb: *mut instrlist_t, inst: *mut instr_t, for_trace: bool_, translating: bool_, user_data: *mut c_void) -> dr_emit_flags_t>;Expand description
Callback function for the third stage: instrumentation insertion.
The \p user_data parameter contains data passed from the second stage to this stage.
See #dr_emit_flags_t for an explanation of the return value. If any instrumentation pass requests #DR_EMIT_STORE_TRANSLATIONS, they will be stored.
Aliased Type§
pub enum drmgr_insertion_cb_t {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut c_void, *mut _instrlist_t, *mut instr_t, i8, i8, *mut c_void) -> i32),
}