Message ID | 20240304092934.76698-3-kerneljasonxing@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 0ab544b6f055f234f708f294f4a6e47262573a4c |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | tcp: add two missing addresses when using trace | expand |
On Mon, Mar 4, 2024 at 10:29 AM Jason Xing <kerneljasonxing@gmail.com> wrote: > > From: Jason Xing <kernelxing@tencent.com> > > 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>
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,