eBPF¶
Instruction¶

- class lief.assembly.ebpf.Instruction¶
Bases:
InstructionThis class represents an eBPF instruction
- property opcode lief.assembly.ebpf.OPCODE¶
The instruction opcode as defined in LLVM
- property operands Iterator[lief.assembly.ebpf.Operand | None]¶
Iterator over the operands of the current instruction
Opcodes¶
See: lief.assembly.ebpf.OPCODE
Operands¶

- class lief.assembly.ebpf.Operand¶
Bases:
objectThis class represents an operand for an eBPF instruction
- property to_string str¶
Pretty representation of the operand
Immediate¶

Register¶

Memory¶

- class lief.assembly.ebpf.operands.Memory¶
Bases:
OperandThis class represents a memory operand.
*(u64 *)(r1 + 8) = r2 | | | +-----> Displacement: 8 | +----------> Base: r1- property base lief.assembly.ebpf.REG¶
The base register.
For
*(u64 *)(r1 + 8)it would returnr1.
- property displacement int¶
The displacement value.
For
*(u64 *)(r1 + 8)it would return8.
PCRelative¶
