osandov / drgn

Programmable debugger
Other
1.78k stars 165 forks source link

contrib/bpf_inspect.py: hide args from interactive mode #401

Closed Asphaltt closed 6 months ago

Asphaltt commented 6 months ago

When run list_bpf_progs() in drgn shell, it's meaningless to pass args to list_bpf_progs(). Therefore, let's hide args from drgn shell.

BTW, select appropriate global variables and functions to run drgn shell.

So, it's ready to add more bpf functions to inspect bpf progs, bpf maps, bpf links and so on.