tcp: add tracing of skb/skaddr in tcp_event_sk_skb class
authorJason Xing <kernelxing@tencent.com>
Mon, 4 Mar 2024 09:29:33 +0000 (17:29 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 7 Mar 2024 14:29:15 +0000 (15:29 +0100)
commit4e441bb8aca1964460e0210bdfd9b89f18a0fd16
tree64a4267e1d7872c38b1329b4439fa1a6a3d782b1
parent25a6838317606461cfed35698bf2233c1c40c065
tcp: add tracing of skb/skaddr in tcp_event_sk_skb class

Printing the addresses can help us identify the exact skb/sk
for those system in which it's not that easy to run BPF program.
As we can see, it already fetches those, then use it directly
and it will print like below:

...tcp_retransmit_skb: skbaddr=XXX skaddr=XXX family=AF_INET...

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/trace/events/tcp.h