Re: [PATCH v2 net-next] net: tracepoint: exposing sk_faimily in tracepoint inet_sock_set_state

From: David Miller
Date: Mon Jan 08 2018 - 14:33:02 EST


From: Yafang Shao <laoar.shao@xxxxxxxxx>
Date: Sun, 7 Jan 2018 14:31:47 +0800

> 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@xxxxxxxxx>
> Suggested-by: Song Liu <songliubraving@xxxxxx>
> Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>

Applied, thank you.