[][src]Struct libipt_sys::pt_block

#[repr(C)]
pub struct pt_block {
    pub ip: u64,
    pub end_ip: u64,
    pub isid: c_int,
    pub mode: pt_exec_mode,
    pub iclass: pt_insn_class,
    pub ninsn: u16,
    pub raw: [u8; 15],
    pub size: u8,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub __bindgen_padding_0: u8,
}

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]

Trait Implementations

impl Clone for pt_block[src]

impl Copy for pt_block[src]

impl Debug for pt_block[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]