]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite00516c001823441a1f8c9e6ff5daa3ef97bb170
tree16bd01b92a17441fc0e9cdcabc5501a49d689dd2
parent2ea098a6c11a993c57600bc2d5eb286071d10407
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