-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 294434 b: refs/heads/master c: 82b0a4c h: refs/heads/master v: v3
- Loading branch information
Trond Myklebust
authored and
Trond Myklebust
committed
Feb 1, 2012
1 parent
dc5e206
commit 3d0bfbf
Showing
4 changed files
with
138 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: a613fa168afc19179a7547fbba45644c5b6912bf | ||
refs/heads/master: 82b0a4c3c171b180629696e8d1d5f52516f711e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM sunrpc | ||
|
||
#if !defined(_TRACE_SUNRPC_H) || defined(TRACE_HEADER_MULTI_READ) | ||
#define _TRACE_SUNRPC_H | ||
|
||
#include <linux/sunrpc/sched.h> | ||
#include <linux/sunrpc/clnt.h> | ||
#include <linux/tracepoint.h> | ||
|
||
DECLARE_EVENT_CLASS(rpc_task_running, | ||
|
||
TP_PROTO(const struct rpc_clnt *clnt, const struct rpc_task *task, const void *action), | ||
|
||
TP_ARGS(clnt, task, action), | ||
|
||
TP_STRUCT__entry( | ||
__field(const struct rpc_clnt *, clnt) | ||
__field(const struct rpc_task *, task) | ||
__field(const void *, action) | ||
__field(unsigned long, runstate) | ||
__field(int, status) | ||
__field(unsigned short, flags) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->clnt = clnt; | ||
__entry->task = task; | ||
__entry->action = action; | ||
__entry->runstate = task->tk_runstate; | ||
__entry->status = task->tk_status; | ||
__entry->flags = task->tk_flags; | ||
), | ||
|
||
TP_printk("task:%p@%p flags=%4.4x state=%4.4lx status=%d action=%pf", | ||
__entry->task, | ||
__entry->clnt, | ||
__entry->flags, | ||
__entry->runstate, | ||
__entry->status, | ||
__entry->action | ||
) | ||
); | ||
|
||
DEFINE_EVENT(rpc_task_running, rpc_task_begin, | ||
|
||
TP_PROTO(const struct rpc_clnt *clnt, const struct rpc_task *task, const void *action), | ||
|
||
TP_ARGS(clnt, task, action) | ||
|
||
); | ||
|
||
DEFINE_EVENT(rpc_task_running, rpc_task_run_action, | ||
|
||
TP_PROTO(const struct rpc_clnt *clnt, const struct rpc_task *task, const void *action), | ||
|
||
TP_ARGS(clnt, task, action) | ||
|
||
); | ||
|
||
DEFINE_EVENT(rpc_task_running, rpc_task_complete, | ||
|
||
TP_PROTO(const struct rpc_clnt *clnt, const struct rpc_task *task, const void *action), | ||
|
||
TP_ARGS(clnt, task, action) | ||
|
||
); | ||
|
||
DECLARE_EVENT_CLASS(rpc_task_queued, | ||
|
||
TP_PROTO(const struct rpc_clnt *clnt, const struct rpc_task *task, const struct rpc_wait_queue *q), | ||
|
||
TP_ARGS(clnt, task, q), | ||
|
||
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) | ||
), | ||
|
||
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; | ||
), | ||
|
||
TP_printk("task:%p@%p flags=%4.4x state=%4.4lx status=%d timeout=%lu queue=%s", | ||
__entry->task, | ||
__entry->clnt, | ||
__entry->flags, | ||
__entry->runstate, | ||
__entry->status, | ||
__entry->timeout, | ||
rpc_qname(__entry->queue) | ||
) | ||
); | ||
|
||
DEFINE_EVENT(rpc_task_queued, rpc_task_sleep, | ||
|
||
TP_PROTO(const struct rpc_clnt *clnt, const struct rpc_task *task, const struct rpc_wait_queue *q), | ||
|
||
TP_ARGS(clnt, task, q) | ||
|
||
); | ||
|
||
DEFINE_EVENT(rpc_task_queued, rpc_task_wakeup, | ||
|
||
TP_PROTO(const struct rpc_clnt *clnt, const struct rpc_task *task, const struct rpc_wait_queue *q), | ||
|
||
TP_ARGS(clnt, task, q) | ||
|
||
); | ||
|
||
#endif /* _TRACE_SUNRPC_H */ | ||
|
||
#include <trace/define_trace.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters