]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c473c94120cb5f03e561b8ed947822062d3b2ce
tree6fcfcb85e5838ef670558ad548e27458b0df42f0
parent01e0164f62088cf2476423f49477e48a619ce136
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