Skip to content

Commit

Permalink
SUNRPC: Fix up sunrpc trace events
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 6, 2012
1 parent a4980e7 commit 85c0d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/trace/events/sunrpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,21 @@ DECLARE_EVENT_CLASS(rpc_task_queued,
TP_STRUCT__entry(
__field(const struct rpc_clnt *, clnt)
__field(const struct rpc_task *, task)
__field(const struct rpc_wait_queue *, queue)
__field(unsigned long, timeout)
__field(unsigned long, runstate)
__field(int, status)
__field(unsigned short, flags)
__string(q_name, rpc_qname(q))
),

TP_fast_assign(
__entry->clnt = clnt;
__entry->task = task;
__entry->queue = q;
__entry->timeout = task->tk_timeout;
__entry->runstate = task->tk_runstate;
__entry->status = task->tk_status;
__entry->flags = task->tk_flags;
__assign_str(q_name, rpc_qname(q));
),

TP_printk("task:%p@%p flags=%4.4x state=%4.4lx status=%d timeout=%lu queue=%s",
Expand All @@ -99,7 +99,7 @@ DECLARE_EVENT_CLASS(rpc_task_queued,
__entry->runstate,
__entry->status,
__entry->timeout,
rpc_qname(__entry->queue)
__get_str(q_name)
)
);

Expand Down

0 comments on commit 85c0d24

Please sign in to comment.