sunrpc: add debugfs file for displaying client rpc_task queue
authorJeff Layton <jlayton@primarydata.com>
Wed, 26 Nov 2014 19:44:43 +0000 (14:44 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 27 Nov 2014 18:14:51 +0000 (13:14 -0500)
commitb4b9d2ccf0be61c69213f6ae4e33377c05194ef4
tree54709e972d890b22b6de65124f87953534aaa9a3
parentea5264138d240825a7e3f11d5945d568b74efb91
sunrpc: add debugfs file for displaying client rpc_task queue

It's possible to get a dump of the RPC task queue by writing a value to
/proc/sys/sunrpc/rpc_debug. If you write any value to that file, you get
a dump of the RPC client task list into the log buffer. This is a rather
inconvenient interface however, and makes it hard to get immediate info
about the task queue.

Add a new directory hierarchy under debugfs:

    sunrpc/
        rpc_clnt/
            <clientid>/

Within each clientid directory we create a new "tasks" file that will
dump info similar to what shows up in the log buffer, but with a few
small differences -- we avoid printing raw kernel addresses in favor of
symbolic names and the XID is also displayed.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
include/linux/sunrpc/clnt.h
include/linux/sunrpc/debug.h
net/sunrpc/Kconfig
net/sunrpc/Makefile
net/sunrpc/clnt.c
net/sunrpc/debugfs.c [new file with mode: 0644]
net/sunrpc/sunrpc_syms.c