diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-11-03 13:46:14 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-11-17 16:43:45 -0500 |
commit | c435da68b6d1adc71d46b7833bf2c568e4420839 (patch) | |
tree | bb48d5359c19881b713242d627b2f8d9e87dd099 /net/sunrpc | |
parent | b2bfe5915d5fe7577221031a39ac722a0a2a1199 (diff) |
sunrpc: Add rpc_request static trace point
Display information about the RPC procedure being requested in the
trace log. This sometimes critical information cannot always be
derived from other RPC trace entries.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/clnt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index d25b077d326d..a801da812f86 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -1491,7 +1491,6 @@ rpc_restart_call(struct rpc_task *task) | |||
1491 | } | 1491 | } |
1492 | EXPORT_SYMBOL_GPL(rpc_restart_call); | 1492 | EXPORT_SYMBOL_GPL(rpc_restart_call); |
1493 | 1493 | ||
1494 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | ||
1495 | const char | 1494 | const char |
1496 | *rpc_proc_name(const struct rpc_task *task) | 1495 | *rpc_proc_name(const struct rpc_task *task) |
1497 | { | 1496 | { |
@@ -1505,7 +1504,6 @@ const char | |||
1505 | } else | 1504 | } else |
1506 | return "no proc"; | 1505 | return "no proc"; |
1507 | } | 1506 | } |
1508 | #endif | ||
1509 | 1507 | ||
1510 | /* | 1508 | /* |
1511 | * 0. Initial state | 1509 | * 0. Initial state |
@@ -1519,6 +1517,7 @@ call_start(struct rpc_task *task) | |||
1519 | struct rpc_clnt *clnt = task->tk_client; | 1517 | struct rpc_clnt *clnt = task->tk_client; |
1520 | int idx = task->tk_msg.rpc_proc->p_statidx; | 1518 | int idx = task->tk_msg.rpc_proc->p_statidx; |
1521 | 1519 | ||
1520 | trace_rpc_request(task); | ||
1522 | dprintk("RPC: %5u call_start %s%d proc %s (%s)\n", task->tk_pid, | 1521 | dprintk("RPC: %5u call_start %s%d proc %s (%s)\n", task->tk_pid, |
1523 | clnt->cl_program->name, clnt->cl_vers, | 1522 | clnt->cl_program->name, clnt->cl_vers, |
1524 | rpc_proc_name(task), | 1523 | rpc_proc_name(task), |