net: tracepoint: exposing sk_faimily in tracepoint inet_sock_set_state
authorYafang Shao <laoar.shao@gmail.com>
Sun, 7 Jan 2018 06:31:47 +0000 (14:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 19:32:45 +0000 (14:32 -0500)
commit0c3b34d804947fef7fb9e74912b7b7563729231e
treeaa02a016d596614cd3af0dd4df456bf3e9987e17
parent23fe846f9a48d5375722b3bd060e0a02ad1ca7f1
net: tracepoint: exposing sk_faimily in tracepoint inet_sock_set_state

As of now, there're two sk_family are traced with sock:inet_sock_set_state,
which are AF_INET and AF_INET6.
So the sk_family are exposed as well.
Then we can conveniently use it to do the filter.

Both sk_family and sk_protocol are showed in the printk message, so we need
not expose them as tracepoint arguments.

Suggested-by: Brendan Gregg <brendan.d.gregg@gmail.com>
Suggested-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Reviewed-by: Song Liu <songliubraving@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/sock.h