Function qemu_plugin_tb_get_insn

Source
pub unsafe extern "C" fn qemu_plugin_tb_get_insn(
    tb: *const qemu_plugin_tb,
    idx: usize,
) -> *mut qemu_plugin_insn
Expand description

qemu_plugin_tb_get_insn() - retrieve handle for instruction @tb: opaque handle to TB passed to callback @idx: instruction number, 0 indexed

The returned handle can be used in follow up helper queries as well as when instrumenting an instruction. It is only valid for the lifetime of the callback.

Returns: opaque handle to instruction