summaryrefslogtreecommitdiffstats
path: root/include/trace/events/tcp.h
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2017-10-23 09:20:24 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-24 01:21:25 +0100
commitc24b14c46bb88d844275de5c4024c8745ae89d42 (patch)
tree154799c41e973a6e11af451da070719d5fab8a64 /include/trace/events/tcp.h
parent7344e29f285a94b965075599731811c352f3ab40 (diff)
downloadlinux-stable-c24b14c46bb88d844275de5c4024c8745ae89d42.tar.gz
linux-stable-c24b14c46bb88d844275de5c4024c8745ae89d42.tar.bz2
linux-stable-c24b14c46bb88d844275de5c4024c8745ae89d42.zip
tcp: add tracepoint trace_tcp_send_reset
New tracepoint trace_tcp_send_reset is added and called from tcp_v4_send_reset(), tcp_v6_send_reset() and tcp_send_active_reset(). Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace/events/tcp.h')
-rw-r--r--include/trace/events/tcp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h
index 2b6fe72c6781..3e57e1ae1c6b 100644
--- a/include/trace/events/tcp.h
+++ b/include/trace/events/tcp.h
@@ -77,6 +77,17 @@ DEFINE_EVENT(tcp_event_sk_skb, tcp_retransmit_skb,
TP_ARGS(sk, skb)
);
+/*
+ * skb of trace_tcp_send_reset is the skb that caused RST. In case of
+ * active reset, skb should be NULL
+ */
+DEFINE_EVENT(tcp_event_sk_skb, tcp_send_reset,
+
+ TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
+
+ TP_ARGS(sk, skb)
+);
+
#endif /* _TRACE_TCP_H */
/* This part must be outside protection */