]> 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)
commit615d5f1548cc7cc74dac2642b9e96e42bd29fcaf
tree16bd01b92a17441fc0e9cdcabc5501a49d689dd2
parent2745565420379258be7ca9cec7e23c9ee3d9d272
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