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

feat(backend/cgroup-skb): support for displaying thread ID and name in cgroup-skb output #215

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

mozillazg
Copy link
Owner

@mozillazg mozillazg commented Dec 21, 2024

$ sudo ptcpdump -i any --backend cgroup-skb

10:18:26.846884 ens33 firefox.113278 Out IP xxx.xxx.xxx.35102 > xxx.xxx.xxx.80: Flags [P.], seq xx:xx, ack xx, win xx, length xx, Thread [Socket Thread.113438], ParentProc [xfce4-panel.49607]
$ sudo ptcpdump -i any --backend cgroup-skb -v

10:18:26.846884 ens33 Out IP (tos 0x0, ttl 64, id 57734, offset 0, flags [DF], proto TCP (6), length 478)
    xxx.xxx.xxx.35102 > xxx.xxx.xxx.80: Flags [P.], cksum 0x3381, seq xx:xx, ack xx, win 64240, length 438
    Process (pid 113278, cmd /snap/firefox/5437/usr/lib/firefox/firefox, args /snap/firefox/5437/usr/lib/firefox/firefox)
    Thread (tid 113438, name Socket Thread)
    ParentProc (pid 49607, cmd /usr/bin/xfce4-panel, args xfce4-panel --display :0.0 --sm-client-id xxxx)

closes #213

@mozillazg
Copy link
Owner Author

cc @ReubenM wdyt about output like this.

@ReubenM
Copy link

ReubenM commented Dec 23, 2024

cc @ReubenM wdyt about output like this.

Very nice!!

@mozillazg
Copy link
Owner Author

@ReubenM You can download the testing version from https://github.com/mozillazg/ptcpdump/actions/runs/12441512058 (under the Artifacts section). Please feel free to share your feedback.

@mozillazg mozillazg changed the title feat(backend/cgroup-skb): Experimental support for displaying thread ID and name in cgroup-skb output feat(backend/cgroup-skb): support for displaying thread ID and name in cgroup-skb output Jan 1, 2025
@mozillazg mozillazg merged commit e0bf4be into master Jan 11, 2025
20 checks passed
@mozillazg mozillazg deleted the thread-context branch January 11, 2025 13:15
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.

Feature Enhancement: Threads
2 participants