Attribute Macro panda_macros::virt_mem_after_write
source · #[virt_mem_after_write]
Expand description
(Callback) Called after memory is written.
Callback ID: PANDA_CB_VIRT_MEM_AFTER_WRITE
Arguments:
CPUState *env: the current CPU state
target_ptr_t pc: the guest PC doing the write
target_ptr_t addr: the (virtual) address being written
size_t size: the size of the write
uint8_t *buf: pointer to the data that was written
Helper call location: TBA
Return value:
none
Callback arguments: (&mut CPUState
, target_ptr_t
, target_ptr_t
, usize
, *mut u8
, )
Example
use panda::prelude::*;
#[panda::virt_mem_after_write]
fn callback(_: &mut CPUState, _: target_ptr_t, _: target_ptr_t, _: usize, _: *mut u8, ) {
// do stuff
}