-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/bpf_inspect.py: disas bpf prog with capstone
It is really useful to disassemble bpf prog by drgn instead of gdb. In this commit, it uses [capstone](https://github.com/capstone-engine/capstone) to disassemble bpf prog, as it can get address from bpf prog's ksym. Meanwhile, it is able to disassemble trampoline of fentry/fexit bpf prog. Signed-off-by: Leon Hwang <[email protected]>
- Loading branch information
Showing
1 changed file
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters