diff options
author | Chuck Lever <cel@netapp.com> | 2006-03-20 13:44:22 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-20 13:44:22 -0500 |
commit | cc0175c1dc1de8f6af0eb0631dcc5b999a6fcc42 (patch) | |
tree | b219a9c16f0ef3ff0982450c32aa0f09d503782a /net/sunrpc/pmap_clnt.c | |
parent | 4ece3a2d18fd7fe1d4972284a8c98c569020093f (diff) |
SUNRPC: display human-readable procedure name in rpc_iostats output
Add fields to the rpc_procinfo struct that allow the display of a
human-readable name for each procedure in the rpc_iostats output.
Also fix it so that the NFSv4 stats are broken up correctly by
sub-procedure number. NFSv4 uses only two real RPC procedures:
NULL, and COMPOUND.
Test plan:
Mount with NFSv2, NFSv3, and NFSv4, and do "cat /proc/self/mountstats".
Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/pmap_clnt.c')
-rw-r--r-- | net/sunrpc/pmap_clnt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sunrpc/pmap_clnt.c b/net/sunrpc/pmap_clnt.c index 332cc5d362d5..efa00bd9ff9e 100644 --- a/net/sunrpc/pmap_clnt.c +++ b/net/sunrpc/pmap_clnt.c | |||
@@ -261,6 +261,8 @@ static struct rpc_procinfo pmap_procedures[] = { | |||
261 | .p_decode = (kxdrproc_t) xdr_decode_bool, | 261 | .p_decode = (kxdrproc_t) xdr_decode_bool, |
262 | .p_bufsiz = 4, | 262 | .p_bufsiz = 4, |
263 | .p_count = 1, | 263 | .p_count = 1, |
264 | .p_statidx = PMAP_SET, | ||
265 | .p_name = "SET", | ||
264 | }, | 266 | }, |
265 | [PMAP_UNSET] = { | 267 | [PMAP_UNSET] = { |
266 | .p_proc = PMAP_UNSET, | 268 | .p_proc = PMAP_UNSET, |
@@ -268,6 +270,8 @@ static struct rpc_procinfo pmap_procedures[] = { | |||
268 | .p_decode = (kxdrproc_t) xdr_decode_bool, | 270 | .p_decode = (kxdrproc_t) xdr_decode_bool, |
269 | .p_bufsiz = 4, | 271 | .p_bufsiz = 4, |
270 | .p_count = 1, | 272 | .p_count = 1, |
273 | .p_statidx = PMAP_UNSET, | ||
274 | .p_name = "UNSET", | ||
271 | }, | 275 | }, |
272 | [PMAP_GETPORT] = { | 276 | [PMAP_GETPORT] = { |
273 | .p_proc = PMAP_GETPORT, | 277 | .p_proc = PMAP_GETPORT, |
@@ -275,6 +279,8 @@ static struct rpc_procinfo pmap_procedures[] = { | |||
275 | .p_decode = (kxdrproc_t) xdr_decode_port, | 279 | .p_decode = (kxdrproc_t) xdr_decode_port, |
276 | .p_bufsiz = 4, | 280 | .p_bufsiz = 4, |
277 | .p_count = 1, | 281 | .p_count = 1, |
282 | .p_statidx = PMAP_GETPORT, | ||
283 | .p_name = "GETPORT", | ||
278 | }, | 284 | }, |
279 | }; | 285 | }; |
280 | 286 | ||