[−][src]Attribute Macro panda::insn_exec
#[insn_exec]
(Callback) Called before execution of any instruction identified by the PANDA_CB_INSN_TRANSLATE callback.
Callback ID: PANDA_CB_INSN_EXEC Arguments: CPUState *env: the current CPU state target_ptr_t pc: the guest PC we are about to execute Helper call location: TBA Return value: unused Notes: This instrumentation is implemented by generating a call to a helper function just before the instruction itself is generated. This is fairly expensive, which is why it's only enabled via the PANDA_CB_INSN_TRANSLATE callback.
Callback arguments: (&mut CPUState
, target_ptr_t
, )
Example
use panda::prelude::*; #[panda::insn_exec] fn callback(_: &mut CPUState, _: target_ptr_t, ) { // do stuff }