aboutsummaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorGravatar Chuck Lever <chuck.lever@oracle.com> 2020-07-08 16:09:58 -0400
committerGravatar Anna Schumaker <Anna.Schumaker@Netapp.com> 2020-09-21 10:21:09 -0400
commit914cdcc78a668a90bc627542f82fc3a92525141c (patch)
tree2966b894704a235654bce54a9b6bf6b44a383dd3 /include/trace
parentSUNRPC: Mitigate cond_resched() in xprt_transmit() (diff)
downloadlinux-914cdcc78a668a90bc627542f82fc3a92525141c.tar.gz
linux-914cdcc78a668a90bc627542f82fc3a92525141c.tar.bz2
linux-914cdcc78a668a90bc627542f82fc3a92525141c.zip
SUNRPC: Add trace_rpc_timeout_status()
For a long while we've wanted a tracepoint that fires when a major timeout is reported in the system log. Such a tracepoint can be attached to other actions that can take place when a timeout is detected (eg, server or connection health assessment). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/sunrpc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/trace/events/sunrpc.h b/include/trace/events/sunrpc.h
index 0aa15cc3985d..edb41e187cf6 100644
--- a/include/trace/events/sunrpc.h
+++ b/include/trace/events/sunrpc.h
@@ -261,6 +261,7 @@ DECLARE_EVENT_CLASS(rpc_task_status,
DEFINE_RPC_STATUS_EVENT(call);
DEFINE_RPC_STATUS_EVENT(bind);
DEFINE_RPC_STATUS_EVENT(connect);
+DEFINE_RPC_STATUS_EVENT(timeout);
TRACE_EVENT(rpc_request,
TP_PROTO(const struct rpc_task *task),