aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 10:31:35 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 10:31:35 -0500
commit85c0d24f026ca6935897694be4eb0b5c514b907d (patch)
tree1f70f139d093624630c59d1a85054a6a3cc65320 /include/trace
parenta4980e7840176b4baa60715c32c5994b084ea9a6 (diff)
SUNRPC: Fix up sunrpc trace events
The reporting of the RPC queue name needs to use the __string() event interface. Reported-by: Neil Horman <nhorman@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/sunrpc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/trace/events/sunrpc.h b/include/trace/events/sunrpc.h
index 51cc9490919f..ec8668d978d9 100644
--- a/include/trace/events/sunrpc.h
+++ b/include/trace/events/sunrpc.h
@@ -75,21 +75,21 @@ DECLARE_EVENT_CLASS(rpc_task_queued,
75 TP_STRUCT__entry( 75 TP_STRUCT__entry(
76 __field(const struct rpc_clnt *, clnt) 76 __field(const struct rpc_clnt *, clnt)
77 __field(const struct rpc_task *, task) 77 __field(const struct rpc_task *, task)
78 __field(const struct rpc_wait_queue *, queue)
79 __field(unsigned long, timeout) 78 __field(unsigned long, timeout)
80 __field(unsigned long, runstate) 79 __field(unsigned long, runstate)
81 __field(int, status) 80 __field(int, status)
82 __field(unsigned short, flags) 81 __field(unsigned short, flags)
82 __string(q_name, rpc_qname(q))
83 ), 83 ),
84 84
85 TP_fast_assign( 85 TP_fast_assign(
86 __entry->clnt = clnt; 86 __entry->clnt = clnt;
87 __entry->task = task; 87 __entry->task = task;
88 __entry->queue = q;
89 __entry->timeout = task->tk_timeout; 88 __entry->timeout = task->tk_timeout;
90 __entry->runstate = task->tk_runstate; 89 __entry->runstate = task->tk_runstate;
91 __entry->status = task->tk_status; 90 __entry->status = task->tk_status;
92 __entry->flags = task->tk_flags; 91 __entry->flags = task->tk_flags;
92 __assign_str(q_name, rpc_qname(q));
93 ), 93 ),
94 94
95 TP_printk("task:%p@%p flags=%4.4x state=%4.4lx status=%d timeout=%lu queue=%s", 95 TP_printk("task:%p@%p flags=%4.4x state=%4.4lx status=%d timeout=%lu queue=%s",
@@ -99,7 +99,7 @@ DECLARE_EVENT_CLASS(rpc_task_queued,
99 __entry->runstate, 99 __entry->runstate,
100 __entry->status, 100 __entry->status,
101 __entry->timeout, 101 __entry->timeout,
102 rpc_qname(__entry->queue) 102 __get_str(q_name)
103 ) 103 )
104); 104);
105 105