#[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_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: u8,
}Expand description
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: u64The IP of the first instruction in this block.
end_ip: u64The IP of the last instruction in this block.
This can be used for error-detection.
isid: c_intThe 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_modeThe execution mode for all instructions in this block.
iclass: pt_insn_classThe instruction class for the last instruction in this block.
This field may be set to ptic_unknown (ptic_error prior to v2.1) 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: u16The 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: u8The size of the last instruction in this block in bytes.
This field is only valid if @truncated is set.
_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: u8