Type Alias simics_api_sys::cpu_instruction_cb_t

source ·
pub type cpu_instruction_cb_t = Option<unsafe extern "C" fn(obj: *mut conf_object_t, cpu: *mut conf_object_t, handle: *mut instruction_handle_t, user_data: *mut lang_void)>;
Expand description

cpu_instruction_cb_t cpu_instruction_cb_t cpu_instruction_cb_t

Instrumentation callback function registered through the cpu_instrumentation_subscribe or the cpu_cached_instruction interfaces to get a callback before or after an instruction has been executed. The cpu is the processor which executed an instruction. The handle is an opaque handle associated with the instruction being executed. It can be used with the cpu_instruction_query interface to get more information about the instruction. The user_data is the user data for the callback.

Aliased Type§

enum cpu_instruction_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: *mut cpu_instrumentation_info, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: *mut cpu_instrumentation_info, _: *mut c_void))

Some value of type T.