Commit 0ab544b6 authored by Jason Xing's avatar Jason Xing Committed by Paolo Abeni

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: default avatarJason Xing <kernelxing@tencent.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4e441bb8
...@@ -362,7 +362,8 @@ DECLARE_EVENT_CLASS(tcp_event_skb, ...@@ -362,7 +362,8 @@ DECLARE_EVENT_CLASS(tcp_event_skb,
TP_STORE_ADDR_PORTS_SKB(__entry, 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, DEFINE_EVENT(tcp_event_skb, tcp_bad_csum,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment