Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: contrib/bpf_inspect.py: disas bpf prog with capstone #409

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 13, 2024

  1. 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 <hffilwlqm@gmail.com>
    Asphaltt committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    ab9231d View commit details
    Browse the repository at this point in the history