Song Liu cf34ce3da1 tcp: add tracepoint trace_tcp_retransmit_synack()
This tracepoint can be used to trace synack retransmits. It maintains
pointer to struct request_sock.

We cannot simply reuse trace_tcp_retransmit_skb() here, because the
sk here is the LISTEN socket. The IP addresses and ports should be
extracted from struct request_sock.

Note that, like many other tracepoints, this patch uses IS_ENABLED
in TP_fast_assign macro, which triggers sparse warning like:

./include/trace/events/tcp.h:274:1: error: directive in argument list
./include/trace/events/tcp.h:281:1: error: directive in argument list

However, there is no good solution to avoid these warnings. To the
best of our knowledge, these warnings are harmless.

Signed-off-by: Song Liu <songliubraving@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-03 10:12:45 +09:00
..
2017-01-09 11:10:02 +00:00
2016-12-25 17:21:22 +01:00
2016-02-26 10:52:48 +09:00
2017-09-11 09:45:52 -06:00
2017-08-18 16:36:29 +02:00
2016-07-14 22:16:05 -07:00
2017-09-12 20:05:58 -07:00
2015-09-01 14:32:44 -07:00
2016-08-17 11:13:07 +02:00
2016-09-29 10:03:38 +02:00
2016-04-11 16:57:09 -04:00
2015-08-05 12:27:09 -07:00
2017-07-29 09:00:03 -06:00
2017-10-18 12:12:18 +01:00
2017-08-31 09:45:55 -04:00