pub enum Site {
BlockEntry {
address: u64,
anchor: InstructionId,
},
Address {
address: u64,
anchor: InstructionId,
},
Store {
insn: InstructionId,
},
Load {
insn: InstructionId,
},
Compare {
insn: InstructionId,
},
}Expand description
A point in a block a hook may instrument. Every site is anchored to the instruction it precedes, which is where the hook’s code is inserted.
Variants§
BlockEntry
The block’s first instruction; address is the block’s.
Address
The first instruction lifted from a guest instruction.
Store
A store to guest memory.
Fields
§
insn: InstructionIdLoad
A load from guest memory.
Fields
§
insn: InstructionIdCompare
An integer comparison.
Fields
§
insn: InstructionIdImplementations§
Trait Implementations§
impl Eq for Site
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnsafeUnpin for Site
impl UnwindSafe for Site
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more