[−][src]Struct solana_rbpf::disassembler::HLInsn
High-level representation of an eBPF instruction.
In addition to standard operation code and various operand, this struct has the following properties:
- It stores a name, corresponding to a mnemonic for the operation code.
- It also stores a description, which is a mnemonic for the full instruction, using the actual values of the relevant operands, and that can be used for disassembling the eBPF program for example.
- Immediate values are stored in an
i64
instead of a traditional i32, in order to merge the two parts of (otherwise double-length)LD_DW_IMM
instructions.
See https://www.kernel.org/doc/Documentation/networking/filter.txt for the Linux kernel documentation about eBPF, or https://github.com/iovisor/bpf-docs/blob/master/eBPF.md for a more concise version.
Fields
opc: u8
Operation code.
name: String
Name (mnemonic). This name is not canon.
desc: String
Description of the instruction. This is not canon.
dst: u8
Destination register operand.
src: u8
Source register operand.
off: i16
Offset operand.
imm: i64
Immediate value operand. For LD_DW_IMM
instructions, contains the whole value merged from
the two 8-bytes parts of the instruction.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |