net: expose sk wmem in sock_exceed_buf_limit tracepoint
authorYafang Shao <laoar.shao@gmail.com>
Sun, 1 Jul 2018 15:31:30 +0000 (23:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jul 2018 13:40:56 +0000 (22:40 +0900)
commitd6f19938eb031ee2158272757db33258153ae59c
tree46cfa82e8e2c6718f04c7246d73273033d88bb93
parent335c997dce5c448ee06b3fd4dfe49fc7279f73ce
net: expose sk wmem in sock_exceed_buf_limit tracepoint

Currently trace_sock_exceed_buf_limit() only show rmem info,
but wmem limit may also be hit.
So expose wmem info in this tracepoint as well.

Regarding memcg, I think it is better to introduce a new tracepoint(if
that is needed), i.e. trace_memcg_limit_hit other than show memcg info in
trace_sock_exceed_buf_limit.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/sock.h
net/core/sock.c