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>
This commit is contained in:

committed by
David S. Miller

parent
7344e29f28
commit
c24b14c46b
@@ -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 */
|
||||
|
Reference in New Issue
Block a user