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 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0))
37 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
38 TP_PROTO(const struct rpc_task
*task
),
43 ctf_integer_hex(const struct rpc_task
*, task
, task
)
44 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
45 ctf_integer(int, status
, task
->tk_status
)
49 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
51 TP_PROTO(const struct rpc_task
*task
, const void *action
),
53 TP_ARGS(task
, action
),
56 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
57 ctf_integer_hex(const struct rpc_task
*, task
, task
)
58 ctf_integer_hex(const void *, action
, action
)
59 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
60 ctf_integer(int, status
, task
->tk_status
)
61 ctf_integer(unsigned short, flags
, task
->tk_flags
)
65 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
67 TP_PROTO(const struct rpc_task
*task
, const void *action
),
72 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
74 TP_PROTO(const struct rpc_task
*task
, const void *action
),
79 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
81 TP_PROTO(const struct rpc_task
*task
, const void *action
),
86 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
88 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
93 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
94 ctf_integer_hex(const struct rpc_task
*, task
, task
)
95 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
96 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
97 ctf_integer(int, status
, task
->tk_status
)
98 ctf_integer(unsigned short, flags
, task
->tk_flags
)
99 ctf_string(q_name
, rpc_qname(q
))
103 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
105 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
110 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
112 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
118 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
119 TP_PROTO(struct rpc_task
*task
, int status
),
121 TP_ARGS(task
, status
),
124 ctf_integer_hex(const struct rpc_task
*, task
, task
)
125 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
126 ctf_integer(int, status
, status
)
130 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
132 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
134 TP_ARGS(clnt
, task
, action
),
137 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
138 ctf_integer_hex(const struct rpc_task
*, task
, task
)
139 ctf_integer_hex(const void *, action
, action
)
140 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
141 ctf_integer(int, status
, task
->tk_status
)
142 ctf_integer(unsigned short, flags
, task
->tk_flags
)
146 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
148 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
150 TP_ARGS(clnt
, task
, action
)
153 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
155 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
157 TP_ARGS(clnt
, task
, action
)
160 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
162 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
164 TP_ARGS(clnt
, task
, action
)
167 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
169 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
171 TP_ARGS(clnt
, task
, q
),
174 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
175 ctf_integer_hex(const struct rpc_task
*, task
, task
)
176 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
177 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
178 ctf_integer(int, status
, task
->tk_status
)
179 ctf_integer(unsigned short, flags
, task
->tk_flags
)
180 ctf_string(q_name
, rpc_qname(q
))
184 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
186 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
188 TP_ARGS(clnt
, task
, q
)
191 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
193 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
195 TP_ARGS(clnt
, task
, q
)
199 #endif /* LTTNG_TRACE_RPC_H */
201 #include <probes/define_trace.h>
This page took 0.053204 seconds and 4 git commands to generate.