bpf_probe_read_kernel usage in tcplife #4753
Unanswered
tahirali-csc
asked this question in
Q&A
Replies: 1 comment
-
The relocation is handled by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In
tcplife.bpf.c
, when reading ip4/pi6 source/dest addressesbcc/libbpf-tools/tcplife.bpf.c
Line 138 in 8422cd4
bpf_probe_read_kernel
instead ofbpf_core_read
. The whole purpose ofbpf_core_read
is that handles fields offset changes transparently across different kernel version. Any thoughts?Beta Was this translation helpful? Give feedback.
All reactions