diff options
author | Jason Xing <kernelxing@tencent.com> | 2024-04-01 15:36:04 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-03 19:26:14 -0700 |
commit | 9807080e2170a9e5a7428d0a0e8d082585b6451f (patch) | |
tree | 5d7b97d9762ad58c5463e689a64cb67d4f5fef5f /include/trace/events/tcp.h | |
parent | 2f3c7195a702178629575b637f3f9a91eabdab73 (diff) | |
download | lwn-9807080e2170a9e5a7428d0a0e8d082585b6451f.tar.gz lwn-9807080e2170a9e5a7428d0a0e8d082585b6451f.zip |
trace: adjust TP_STORE_ADDR_PORTS_SKB() parameters
Introducing entry_saddr and entry_daddr parameters in this macro
for later use can help us record the reverse 4-tuple by analyzing
the 4-tuple of the incoming skb when receiving.
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240401073605.37335-2-kerneljasonxing@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/trace/events/tcp.h')
-rw-r--r-- | include/trace/events/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h index 1db95175c1e5..cf14b6fcbeed 100644 --- a/include/trace/events/tcp.h +++ b/include/trace/events/tcp.h @@ -295,7 +295,7 @@ DECLARE_EVENT_CLASS(tcp_event_skb, memset(__entry->saddr, 0, sizeof(struct sockaddr_in6)); memset(__entry->daddr, 0, sizeof(struct sockaddr_in6)); - TP_STORE_ADDR_PORTS_SKB(__entry, skb, th); + TP_STORE_ADDR_PORTS_SKB(skb, th, __entry->saddr, __entry->daddr); ), TP_printk("skbaddr=%p src=%pISpc dest=%pISpc", |