diff options
author | Jason Xing <kernelxing@tencent.com> | 2024-03-04 10:29:34 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-03-07 15:29:15 +0100 |
commit | 0ab544b6f055f234f708f294f4a6e47262573a4c (patch) | |
tree | 1d8c13b018f332b1cf886c5c59a60ef20040f42f /include/trace/events/tcp.h | |
parent | tcp: add tracing of skb/skaddr in tcp_event_sk_skb class (diff) | |
download | linux-0ab544b6f055f234f708f294f4a6e47262573a4c.tar.xz linux-0ab544b6f055f234f708f294f4a6e47262573a4c.zip |
tcp: add tracing of skbaddr in tcp_event_skb class
Use the existing parameter and print the address of skbaddr
as other trace functions do.
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/trace/events/tcp.h')
-rw-r--r-- | include/trace/events/tcp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h index ac36067ae066..6ca3e0343666 100644 --- a/include/trace/events/tcp.h +++ b/include/trace/events/tcp.h @@ -362,7 +362,8 @@ DECLARE_EVENT_CLASS(tcp_event_skb, TP_STORE_ADDR_PORTS_SKB(__entry, skb); ), - TP_printk("src=%pISpc dest=%pISpc", __entry->saddr, __entry->daddr) + TP_printk("skbaddr=%p src=%pISpc dest=%pISpc", + __entry->skbaddr, __entry->saddr, __entry->daddr) ); DEFINE_EVENT(tcp_event_skb, tcp_bad_csum, |