History

SUNRPC: Fix up sunrpc trace events

The reporting of the RPC queue name needs to use the __string() event interface.

Trond Myklebust committed 14 years ago

Commit 85c0d241 parent a4980e71 file · +3 −3Browse files

Unified · Split

include/trace/events/sunrpc.h+3−3
@@ -75,21 +75,21 @@ DECLARE_EVENT_CLASS(rpc_task_queued, · 74 unmodified lines
7575 TP_STRUCT__entry(
7676 __field(const struct rpc_clnt *, clnt)
7777 __field(const struct rpc_task *, task)
78− __field(const struct rpc_wait_queue *, queue)
7978 __field(unsigned long, timeout)
8079 __field(unsigned long, runstate)
8180 __field(int, status)
8281 __field(unsigned short, flags)
82+ __string(q_name, rpc_qname(q))
8383 ),
8484
8585 TP_fast_assign(
8686 __entry->clnt = clnt;
8787 __entry->task = task;
88− __entry->queue = q;
8988 __entry->timeout = task->tk_timeout;
9089 __entry->runstate = task->tk_runstate;
9190 __entry->status = task->tk_status;
9291 __entry->flags = task->tk_flags;
92+ __assign_str(q_name, rpc_qname(q));
9393 ),
9494
9595 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, · 3 unmodified lines
9999 __entry->runstate,
100100 __entry->status,
101101 __entry->timeout,
102− rpc_qname(__entry->queue)
102+ __get_str(q_name)
103103 )
104104 );
105105