This pull request includes a significant change to the disassemble_one function in the ubpf/disassembler.py file. The change adds support for the BPF_CLASS_JMP32 class, which represents a 32-bit jump operation in the eBPF bytecode. The new code disassembles the BPF_CLASS_JMP32 instructions into their corresponding opcode names and operands.
ubpf/disassembler.py: Added a new branch in the disassemble_one function to handle the BPF_CLASS_JMP32 class. This includes disassembling the opcode and operands for the "exit", "call", and "ja" instructions, as well as the general case where the source is either an immediate value or a source register.
coverage: 81.279%. remained the same
when pulling 7623ece8e8b27b49709900afd82a58f61a2d591a on Alan-Jowett:update_unassembler
into 54be1df5237bbaa2ba3bf121fd08ad4bee603250 on iovisor:main.
This pull request includes a significant change to the
disassemble_one
function in theubpf/disassembler.py
file. The change adds support for theBPF_CLASS_JMP32
class, which represents a 32-bit jump operation in the eBPF bytecode. The new code disassembles theBPF_CLASS_JMP32
instructions into their corresponding opcode names and operands.ubpf/disassembler.py
: Added a new branch in thedisassemble_one
function to handle theBPF_CLASS_JMP32
class. This includes disassembling the opcode and operands for the "exit", "call", and "ja" instructions, as well as the general case where the source is either an immediate value or a source register.