-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
libbpf-tools: add cpu filter for hardirqs/softirqs #5107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to avoid unnecessary code format churns.
cee19ff
to
6bb7124
Compare
e44323a
to
9812c9b
Compare
cfe636f
to
4159296
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of format issues as well. Please check
- leading 'tab' instead of 'space'.
- some places having trailing spaces.
Please fix.
4e1875c
to
30ee67e
Compare
Sorry for the format issues. I kept switching development env between office and home, sometimes the fix was forget to push(like the space between Maybe we should provide a tool like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still a few format issues. Otherwise, looks good.
Yes, it would be good if we have a checkpatch tool for all codes under libbpf-tools directory. |
tools/softirqs.py supports `-c/--cpu` otption to filter cpu, It's reasonable to support a same otption for libbpf-tools/softirqs. Add `-mcpu=v3` in Makefile for softirqs or the shift op will lead to verifier errors. Reported-by: Tang Yizhou <[email protected]> Signed-off-by: Dantezy <[email protected]>
Signed-off-by: Dantezy <[email protected]>
Since tools/hardirqs and tools/softirqs supports a
--cpu
option, it's reasonable to support a same option in libbpf version.