Skip to content

Implement --filter-track-skb-by-stackid#354

Merged
brb merged 1 commit intocilium:mainfrom
jschwinger233:gray/trace-by-stackid
Apr 19, 2024
Merged

Implement --filter-track-skb-by-stackid#354
brb merged 1 commit intocilium:mainfrom
jschwinger233:gray/trace-by-stackid

Conversation

@jschwinger233
Copy link
Member

@jschwinger233 jschwinger233 commented Apr 18, 2024

This PR adds --filter-track-skb-by-stackid so we can track traffic even the skb is kfreed and re-built, which frequently happens when traffic is going through bridge. This is more powerful than --filter-track-skb on the scenario of encryption + encapsulation.

This PR also paves the way for "tailcall tracing" which relies on stack unwinding. I find it valuable to make stack unwinding a general feature so this is it.

An skb can have different stacks during its lifetime, this PR tries to handle it carefully by comparing old_stackid with stackid and updating the bpf map in time.

Signed-off-by: Zhichuan Liang gray.liang@isovalent.com

@jschwinger233 jschwinger233 requested a review from a team as a code owner April 18, 2024 12:09
@jschwinger233 jschwinger233 requested review from brb and removed request for a team April 18, 2024 12:09
@jschwinger233 jschwinger233 force-pushed the gray/trace-by-stackid branch from 7cf8876 to 61193cf Compare April 18, 2024 12:11
Signed-off-by: Zhichuan Liang <gray.liang@isovalent.com>
@jschwinger233 jschwinger233 force-pushed the gray/trace-by-stackid branch from 61193cf to cb6ea35 Compare April 18, 2024 12:27
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!

@brb brb merged commit 3694303 into cilium:main Apr 19, 2024
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