iovisor / ubpf

Userspace eBPF VM
Apache License 2.0
829 stars 136 forks source link

Update unassembler #495

Closed Alan-Jowett closed 5 months ago

Alan-Jowett commented 5 months ago

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.

coveralls commented 5 months ago

Coverage Status

coverage: 81.279%. remained the same when pulling 7623ece8e8b27b49709900afd82a58f61a2d591a on Alan-Jowett:update_unassembler into 54be1df5237bbaa2ba3bf121fd08ad4bee603250 on iovisor:main.