2 #define TRACE_SYSTEM rpc
4 #if !defined(LTTNG_TRACE_RPC_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_RPC_H
7 #include "../../../probes/lttng-tracepoint-event.h"
8 #include <linux/sunrpc/sched.h>
9 #include <linux/sunrpc/clnt.h>
11 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_status
,
13 TP_PROTO(struct rpc_task
*task
),
18 ctf_integer_hex(const struct rpc_task
*, task
, task
)
19 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
20 ctf_integer(int, status
, task
->tk_status
)
24 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_call_status
,
25 TP_PROTO(struct rpc_task
*task
),
30 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_bind_status
,
31 TP_PROTO(struct rpc_task
*task
),
36 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
37 TP_PROTO(struct rpc_task
*task
, int status
),
39 TP_ARGS(task
, status
),
42 ctf_integer_hex(const struct rpc_task
*, task
, task
)
43 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
44 ctf_integer(int, status
, status
)
48 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
50 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
52 TP_ARGS(clnt
, task
, action
),
55 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
56 ctf_integer_hex(const struct rpc_task
*, task
, task
)
57 ctf_integer_hex(const void *, action
, action
)
58 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
59 ctf_integer(int, status
, task
->tk_status
)
60 ctf_integer(unsigned short, flags
, task
->tk_flags
)
64 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
66 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
68 TP_ARGS(clnt
, task
, action
)
72 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
74 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
76 TP_ARGS(clnt
, task
, action
)
80 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
82 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
84 TP_ARGS(clnt
, task
, action
)
88 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
90 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
92 TP_ARGS(clnt
, task
, q
),
95 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
96 ctf_integer_hex(const struct rpc_task
*, task
, task
)
97 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
98 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
99 ctf_integer(int, status
, task
->tk_status
)
100 ctf_integer(unsigned short, flags
, task
->tk_flags
)
101 ctf_string(q_name
, rpc_qname(q
))
105 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
107 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
109 TP_ARGS(clnt
, task
, q
)
113 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
115 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
117 TP_ARGS(clnt
, task
, q
)
121 #endif /* LTTNG_TRACE_RPC_H */
123 #include "../../../probes/define_trace.h"
This page took 0.042729 seconds and 4 git commands to generate.