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

tools: add netns info for each connection in tcpretrans.bt #2889

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tanjianfeng
Copy link

Checklist
  • Language changes are updated in man/adoc/bpftrace.adoc and if needed in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

@jordalgo
Copy link
Contributor

LGTM. Can you also update the example file: https://github.com/iovisor/bpftrace/blob/master/tools/tcpretrans_example.txt ?

Signed-off-by: Jianfeng Tan <henry.tjf@antgroup.com>
@tanjianfeng
Copy link
Author

LGTM. Can you also update the example file: https://github.com/iovisor/bpftrace/blob/master/tools/tcpretrans_example.txt ?

@jordalgo updated as you suggested, thanks.

@@ -71,10 +71,11 @@ kprobe:tcp_retransmit_skb

$state = $sk->__sk_common.skc_state;
$statestr = @tcp_states[$state];
$netns = $sk->__sk_common.skc_net.net->ns.inum;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this fields access compatible with reasonably old kernels?

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.

None yet

3 participants