tcp: add tracepoint trace_tcp_receive_reset
New tracepoint trace_tcp_receive_reset is added and called from tcp_reset(). This tracepoint is define with a new class tcp_event_sk. 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
c24b14c46b
commit
5941521c05
@@ -75,6 +75,7 @@
|
||||
#include <linux/ipsec.h>
|
||||
#include <asm/unaligned.h>
|
||||
#include <linux/errqueue.h>
|
||||
#include <trace/events/tcp.h>
|
||||
|
||||
int sysctl_tcp_fack __read_mostly;
|
||||
int sysctl_tcp_max_reordering __read_mostly = 300;
|
||||
@@ -4010,6 +4011,8 @@ static inline bool tcp_sequence(const struct tcp_sock *tp, u32 seq, u32 end_seq)
|
||||
/* When we get a reset we do this. */
|
||||
void tcp_reset(struct sock *sk)
|
||||
{
|
||||
trace_tcp_receive_reset(sk);
|
||||
|
||||
/* We want the right error as BSD sees it (and indeed as we do). */
|
||||
switch (sk->sk_state) {
|
||||
case TCP_SYN_SENT:
|
||||
|
Reference in New Issue
Block a user