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

contrib/bpf_inspect.py: add interactive mode #398

Merged
merged 1 commit into from
May 28, 2024

Conversation

Asphaltt
Copy link
Contributor

It's convenient to run drgn shell with bpf helpers in bpf_inspect.py.

@Asphaltt Asphaltt force-pushed the feature/bpf_inspect/iteractive_mode branch from 57a61ea to a578a37 Compare May 28, 2024 16:19
Copy link
Owner

@osandov osandov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Maybe this is a sign that some of these should be adapted into drgn helpers, but this is fine for now. One minor comment.

contrib/bpf_inspect.py Outdated Show resolved Hide resolved
It's convenient to run drgn shell with bpf helpers in bpf_inspect.py.

Signed-off-by: Leon Hwang <[email protected]>
@Asphaltt Asphaltt force-pushed the feature/bpf_inspect/iteractive_mode branch from a578a37 to 3037a13 Compare May 28, 2024 18:12
@Asphaltt
Copy link
Contributor Author

Maybe this is a sign that some of these should be adapted into drgn helpers, but this is fine for now.

These functions are too simple for me to inspect details of bpf progs and bpf maps. Therefore, I'm planning to improve them.

@osandov osandov merged commit a712ebd into osandov:main May 28, 2024
27 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants