-
Notifications
You must be signed in to change notification settings - Fork 181
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
Add --filter-trace-only-bpf #469
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sachin Tiptur <coolsachints@gmail.com>
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.
I don't think this achieved the goal. Running pwru --filter-trace-only-bpf 'dst host 1.1.1.1'
built from this PR also outputs tracing results from normal skb functions. Unless I misunderstand the original issue #394, the expected behavior is to attach bpf programs only, rather than normal skb funcitons.
Ah ok, sorry I think I misunderstood the issue, will re-look. |
From what I understood is that |
@sachintiptur By default, pwru traces events from skb functions, such as Your PR that enables both flags makes pwru trace events from 1)skb functions + 2)xdp bpf + 3)tc bpf. The |
Thanks much for the explanation. So along with the PR changes, I added the below code and tested locally, no skb funcs are traced and also I don't see any bpf funcs too because I dont have any bpf programs to test. I hope this is expected.
|
Signed-off-by: Sachin Tiptur <coolsachints@gmail.com>
07ebcf3
to
1180bab
Compare
Add --filter-trace-only-bpf flag to trace only TC and XDP programs.
Fixes [#394 ]