Type Alias VCPUTranslationBlockTranslationCallback

Source
pub type VCPUTranslationBlockTranslationCallback = qemu_plugin_vcpu_tb_trans_cb_t;
Expand description

A callback that can be called many times, each time a translation occurs. The callback is passed an opaque qemu_plugin_tb pointer, which can be queried for additional information including the list of translated instructions. The callback can register further callbacks to be triggered when the block or individual instructions execute.

§Arguments

  • id: The plugin ID
  • tb: The translated block

Aliased Type§

pub enum VCPUTranslationBlockTranslationCallback {
    None,
    Some(unsafe extern "C" fn(u64, *mut qemu_plugin_tb)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u64, *mut qemu_plugin_tb))

Some value of type T.