[−][src]Struct libipt_sys::pt_block
A block of instructions.
Instructions in this block are executed sequentially but are not necessarily contiguous in memory. Users are expected to follow direct branches.
Fields
ip: u64
The IP of the first instruction in this block.
end_ip: u64
The IP of the last instruction in this block.
This can be used for error-detection.
isid: c_int
The image section that contains the instructions in this block.
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_mode
The execution mode for all instructions in this block.
iclass: pt_insn_class
The instruction class for the last instruction in this block.
This field may be set to ptic_error to indicate that the instruction class is not available. The block decoder may choose to not provide the instruction class in some cases for performance reasons.
ninsn: u16
The number of instructions in this block.
raw: [u8; 15]
The raw bytes of the last instruction in this block in case the instruction does not fit entirely into this block's section.
This field is only valid if @truncated is set.
size: u8
The size of the last instruction in this block in bytes.
This field is only valid if @truncated is set.
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
__bindgen_padding_0: u8
Methods
impl pt_block
[src]
pub fn speculative(&self) -> u32
[src]
pub fn set_speculative(&mut self, val: u32)
[src]
pub fn truncated(&self) -> u32
[src]
pub fn set_truncated(&mut self, val: u32)
[src]
pub fn new_bitfield_1(
speculative: u32,
truncated: u32
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]
speculative: u32,
truncated: u32
) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations
Auto Trait Implementations
impl Send for pt_block
impl Sync for pt_block
impl Unpin for pt_block
impl UnwindSafe for pt_block
impl RefUnwindSafe for pt_block
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,