Skip to content
New issue

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

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

Already on GitHub? # to your account

referred to bcc, adding dump function and parse of printk content in utils #181

Merged
merged 3 commits into from
Apr 15, 2022

Conversation

hsqStephenZhang
Copy link
Contributor

i have been used both python's bcc and rust-bcc for a while, and founded rust-bcc lack some useful utils in python's version , but i really love rust and bpf, i wanna do more for rust-bcc

@brayniac
Copy link
Collaborator

Can you run rustfmt on this and push again? The CI jobs have been updated and now cover bcc up to 0.23.0 - so we should see those run once you push again.

I'd appreciate if the PR summary was updated to summarize what you're adding/changing in this PR and why. It'll provide helpful context for reviewers.

@hsqStephenZhang
Copy link
Contributor Author

bpf_trace_printk is the most useful way to display informations in eBPF. In bcc, there is a useful but simple method called trace_fields, it will parse the /sys/kernel/debug/tracing/trace_pipe with the standard format, so we'd better add some utils for better ergonomic experience.

@hsqStephenZhang
Copy link
Contributor Author

also, the dump feature is powered by bcc, it's useful when you wanna see how code works.

@brayniac brayniac merged commit 0e6fe2f into rust-bpf:master Apr 15, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants