pub struct InstructionRecord {Show 16 fields
pub seq: Sequence,
pub vcpu: u32,
pub rip: u64,
pub linear_rip: u64,
pub physical_rip: Option<u64>,
pub bytes: [u8; 15],
pub len: u8,
pub cs: u16,
pub cpl: u8,
pub mode: CpuMode,
pub cr3: u64,
pub next_rip: u64,
pub branch_taken: bool,
pub outcome: InstructionOutcome,
pub accesses: Vec<MemoryAccess>,
pub flags: RecordFlags,
}Expand description
One executed (or attempted) instruction.
Fields§
§seq: SequenceOrdering information.
vcpu: u32The vCPU that executed it.
rip: u64RIP (offset inside CS).
linear_rip: u64Linear address of the first byte (CS.base + RIP).
physical_rip: Option<u64>Guest-physical address of the first byte.
bytes: [u8; 15]The raw instruction bytes (only the first len are meaningful).
len: u8Instruction length in bytes.
cs: u16CS selector.
cpl: u8Current privilege level (0–3).
mode: CpuModeCPU mode.
cr3: u64CR3, including PCID bits.
next_rip: u64RIP of the next instruction this vCPU executed (or of the handler it was diverted to).
branch_taken: boolFor a control-flow instruction: was the branch taken?
outcome: InstructionOutcomeWhat happened to the instruction.
accesses: Vec<MemoryAccess>Memory accesses, in a fixed order: instruction fetch(es) first, then reads, then read-modify-writes, then writes. Within each group, the order iced-x86 reports operands in.
flags: RecordFlagsExtra facts.
Implementations§
Source§impl InstructionRecord
impl InstructionRecord
Sourcepub fn data_accesses(&self) -> impl Iterator<Item = &MemoryAccess>
pub fn data_accesses(&self) -> impl Iterator<Item = &MemoryAccess>
Data accesses only (no instruction fetches).