aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2012-02-06 10:08:08 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 10:37:53 -0500
commit5753cba17611af108995672c4e2d978014e17a56 (patch)
tree5b0588c60045b155e9dc79e01490b248e19b6c2c /net
parent85c0d24f026ca6935897694be4eb0b5c514b907d (diff)
SUNRPC: Adding status trace points
This patch adds three trace points to the status routines in the sunrpc state machine. The goal of these trace points is to give an Admin the ability to check on binding status or connection status to see if there is a potential problem. Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/clnt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index db7220d87732..bb7ed2f3aee6 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -36,6 +36,7 @@
36#include <linux/sunrpc/rpc_pipe_fs.h> 36#include <linux/sunrpc/rpc_pipe_fs.h>
37#include <linux/sunrpc/metrics.h> 37#include <linux/sunrpc/metrics.h>
38#include <linux/sunrpc/bc_xprt.h> 38#include <linux/sunrpc/bc_xprt.h>
39#include <trace/events/sunrpc.h>
39 40
40#include "sunrpc.h" 41#include "sunrpc.h"
41#include "netns.h" 42#include "netns.h"
@@ -1247,6 +1248,7 @@ call_bind_status(struct rpc_task *task)
1247 return; 1248 return;
1248 } 1249 }
1249 1250
1251 trace_rpc_bind_status(task);
1250 switch (task->tk_status) { 1252 switch (task->tk_status) {
1251 case -ENOMEM: 1253 case -ENOMEM:
1252 dprintk("RPC: %5u rpcbind out of memory\n", task->tk_pid); 1254 dprintk("RPC: %5u rpcbind out of memory\n", task->tk_pid);
@@ -1346,6 +1348,7 @@ call_connect_status(struct rpc_task *task)
1346 return; 1348 return;
1347 } 1349 }
1348 1350
1351 trace_rpc_connect_status(task, status);
1349 switch (status) { 1352 switch (status) {
1350 /* if soft mounted, test if we've timed out */ 1353 /* if soft mounted, test if we've timed out */
1351 case -ETIMEDOUT: 1354 case -ETIMEDOUT:
@@ -1534,6 +1537,7 @@ call_status(struct rpc_task *task)
1534 return; 1537 return;
1535 } 1538 }
1536 1539
1540 trace_rpc_call_status(task);
1537 task->tk_status = 0; 1541 task->tk_status = 0;
1538 switch(status) { 1542 switch(status) {
1539 case -EHOSTDOWN: 1543 case -EHOSTDOWN: