#[repr(C)]pub struct pt_insn {
pub ip: u64,
pub isid: c_int,
pub mode: pt_exec_mode,
pub iclass: pt_insn_class,
pub raw: [u8; 15],
pub size: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 3],
}Expand description
A single traced instruction.
Fields§
§ip: u64The virtual address in its process.
isid: c_intThe image section identifier for the section containing this instruction.
A value of zero means that the section did not have an identifier. The section was not added via an image section cache or the memory was read via the read memory callback.
mode: pt_exec_modeThe execution mode.
iclass: pt_insn_classA coarse classification.
raw: [u8; 15]The raw bytes.
size: u8The size in bytes.
_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 3]Implementations§
Source§impl pt_insn
impl pt_insn
pub fn speculative(&self) -> u32
pub fn set_speculative(&mut self, val: u32)
pub unsafe fn speculative_raw(this: *const Self) -> u32
pub unsafe fn set_speculative_raw(this: *mut Self, val: u32)
pub fn truncated(&self) -> u32
pub fn set_truncated(&mut self, val: u32)
pub unsafe fn truncated_raw(this: *const Self) -> u32
pub unsafe fn set_truncated_raw(this: *mut Self, val: u32)
pub fn new_bitfield_1( speculative: u32, truncated: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
impl Copy for pt_insn
impl Eq for pt_insn
impl StructuralPartialEq for pt_insn
Auto Trait Implementations§
impl Freeze for pt_insn
impl RefUnwindSafe for pt_insn
impl Send for pt_insn
impl Sync for pt_insn
impl Unpin for pt_insn
impl UnwindSafe for pt_insn
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