tcp: add tracepoint trace_tcp_set_state()
authorSong Liu <songliubraving@fb.com>
Mon, 23 Oct 2017 16:20:27 +0000 (09:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 00:21:25 +0000 (01:21 +0100)
commite8fce23946b7e7eadf25ad78d8207c22903dfe27
tree16bd01b92a17441fc0e9cdcabc5501a49d689dd2
parente1a4aa50f47303ebb3ca0cfd01687884551ce03d
tcp: add tracepoint trace_tcp_set_state()

This patch adds tracepoint trace_tcp_set_state. Besides usual fields
(s/d ports, IP addresses), old and new state of the socket is also
printed with TP_printk, with __print_symbolic().

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/tcp.h
net/ipv4/tcp.c