kcm: Add statistics and proc interfaces
authorTom Herbert <tom@herbertland.com>
Mon, 7 Mar 2016 22:11:07 +0000 (14:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2016 21:36:14 +0000 (16:36 -0500)
commitcd6e111bf5be5c70aef96a86d791ee7be0c0e137
tree6fcfcb85e5838ef670558ad548e27458b0df42f0
parentab7ac4eb9832e32a09f4e8042705484d2fb0aad3
kcm: Add statistics and proc interfaces

This patch adds various counters for KCM. These include counters for
messages and bytes received or sent, as well as counters for number of
attached/unattached TCP sockets and other error or edge events.

The statistics are exposed via a proc interface. /proc/net/kcm provides
statistics per KCM socket and per psock (attached TCP sockets).
/proc/net/kcm_stats provides aggregate statistics.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/kcm.h
net/kcm/Makefile
net/kcm/kcmproc.c [new file with mode: 0644]
net/kcm/kcmsock.c