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

Support tracking skb clones #275

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Conversation

Asphaltt
Copy link
Contributor

Fix #200

bpf/kprobe_pwru.c Outdated Show resolved Hide resolved
It's unnecessary to loading kprobe_skb_lifetime_termination bpf prog
when --filter-track-skb is not enabled.

For next commit, it skips loading other skb-tracking bpf progs too.

Signed-off-by: Leon Hwang <[email protected]>
With --filter-track-skb option, we're able to track sbk by its address.

Then, as for skb's clones/copies, we're able to track them too, by the
way `fexit` on `skb_clone()` and `skb_copy()`.

Signed-off-by: Leon Hwang <[email protected]>
@Asphaltt Asphaltt force-pushed the feature/track-skb-clones branch from 47289c3 to 0dc1f2c Compare October 24, 2023 12:37
@brb brb self-requested a review October 24, 2023 14:29
Copy link
Member

@jschwinger233 jschwinger233 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@brb brb left a comment

Choose a reason for hiding this comment

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

Thanks! Time for a new release :shipit:

@brb brb merged commit 0d4fc40 into cilium:main Oct 25, 2023
5 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.

Track SKB clones
3 participants