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

chore(bpf): improve detection of backported tcx/ringbuf support in older kernels #244

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

mozillazg
Copy link
Owner

closes #236

@mozillazg
Copy link
Owner Author

@NeonSludge please try again with the dev version (you can download the binary from the Artifacts section):

https://github.com/mozillazg/ptcpdump/actions/runs/13222698263?pr=244

@mozillazg mozillazg merged commit 020852d into master Feb 9, 2025
32 of 33 checks passed
@mozillazg mozillazg deleted the improve-tcx branch February 9, 2025 06:21
@NeonSludge
Copy link

Can confirm that TCX attach mode now works on an AlmaLinux 9.4 machine with a vanilla kernel:

# uname -r
5.14.0-427.42.1.el9_4.x86_64
...
2025-02-09T21:21:09.41512622+03:00 INFO cmd/capture.go:89] start to attach capture hooks when startup
2025-02-09T21:21:09.415136577+03:00 INFO capturer/capturer.go:224] backend: tc
2025-02-09T21:21:09.415157745+03:00 INFO capturer/capturer.go:356] start to attach tc hook to eth0 in netns {NetNs inode: 4026531840, path: /proc/self/ns/net}
2025-02-09T21:21:09.415249194+03:00 INFO bpf/bpf.go:329] attach tcx/egress hooks to ifindex 2
2025-02-09T21:21:09.427773628+03:00 INFO bpf/bpf.go:344] attach tcx/ingress hooks to ifindex 2
...

Thank you for the quick fix.

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.

Detect backported TCX support in older kernels
2 participants