tcp: expose sk_state in tcp_retransmit_skb tracepoint
authorYafang Shao <laoar.shao@gmail.com>
Mon, 24 Sep 2018 12:57:29 +0000 (20:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2018 03:07:19 +0000 (20:07 -0700)
commitaf4325ecc24f45933d5567e72227cff2c1594764
treeb63e4f7ea1df4325cdc4292709371498d1ebefb8
parent0a715156656bddf4aa92d9868f850aeeb0465fd0
tcp: expose sk_state in tcp_retransmit_skb tracepoint

After sk_state exposed, we can get in which state this retransmission
occurs. That could give us more detail for dignostic.
For example, if this retransmission occurs in SYN_SENT state, it may
also indicates that the syn packet may be dropped on the remote peer due
to syn backlog queue full and then we could check the remote peer.

BTW,SYNACK retransmission is traced in tcp_retransmit_synack tracepoint.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/tcp.h