]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'replace-tcp_set_state-tracepoint-with-inet_sock_set_state'
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 19:00:26 +0000 (14:00 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 19:00:26 +0000 (14:00 -0500)
commit2a4871f3451e68629658904de09ba4069d8e830f
tree503a12a1a7357e7b0935fa321ae878a850febb3c
parent203f2485fdf62c5aabaff954e2b8da40d6612e37
parent6d1cdaa2d7e15630a3fc52fba2b6a320b4fb7770
Merge branch 'replace-tcp_set_state-tracepoint-with-inet_sock_set_state'

Yafang Shao says:

====================
replace tcp_set_state tracepoint with inet_sock_set_state

According to the discussion in the mail thread
https://patchwork.kernel.org/patch/10099243/,
tcp_set_state tracepoint is renamed to inet_sock_set_state tracepoint and is
moved to include/trace/events/sock.h.

With this new tracepoint, we can trace AF_INET/AF_INET6 sock state transitions.
As there's only one single tracepoint for inet, so I didn't create a new trace
file named trace/events/inet_sock.h, and just place it in
include/trace/events/sock.h

Currently TCP/DCCP/SCTP state transitions are traced with this tracepoint.

- Why not more protocol ?
If we really think that anonter protocol should be traced, I will modify the
code to trace it.
I just want to make the code easy and not output useless information.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>