From: Jason Xing Date: Mon, 4 Mar 2024 09:29:34 +0000 (+0800) Subject: tcp: add tracing of skbaddr in tcp_event_skb class X-Git-Tag: v6.9-rc1~159^2~76^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ab544b6f055f234f708f294f4a6e47262573a4c;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Eric Dumazet Signed-off-by: Paolo Abeni --- diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h index ac36067ae066f..6ca3e03436664 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,