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 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
12 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_status
,
14 TP_PROTO(struct rpc_task
*task
),
19 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
20 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
21 ctf_integer(int, status
, task
->tk_status
)
25 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_status
,
27 TP_PROTO(struct rpc_task
*task
),
32 ctf_integer_hex(const struct rpc_task
*, task
, task
)
33 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
34 ctf_integer(int, status
, task
->tk_status
)
39 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_call_status
,
40 TP_PROTO(struct rpc_task
*task
),
45 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_bind_status
,
46 TP_PROTO(struct rpc_task
*task
),
51 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0))
52 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
53 TP_PROTO(const struct rpc_task
*task
),
58 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
59 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
60 ctf_integer(int, status
, task
->tk_status
)
64 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
66 TP_PROTO(const struct rpc_task
*task
, const void *action
),
68 TP_ARGS(task
, action
),
71 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
72 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
73 ctf_integer_hex(const void *, action
, action
)
74 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
75 ctf_integer(int, status
, task
->tk_status
)
76 ctf_integer(unsigned short, flags
, task
->tk_flags
)
80 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
82 TP_PROTO(const struct rpc_task
*task
, const void *action
),
87 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
89 TP_PROTO(const struct rpc_task
*task
, const void *action
),
94 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
96 TP_PROTO(const struct rpc_task
*task
, const void *action
),
101 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
103 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
108 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
109 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
110 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
111 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
112 ctf_integer(int, status
, task
->tk_status
)
113 ctf_integer(unsigned short, flags
, task
->tk_flags
)
114 ctf_string(q_name
, rpc_qname(q
))
118 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
120 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
125 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
127 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
132 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
133 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
134 TP_PROTO(struct rpc_task
*task
, int status
),
136 TP_ARGS(task
, status
),
139 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
140 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
141 ctf_integer(int, status
, status
)
145 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
147 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
149 TP_ARGS(clnt
, task
, action
),
152 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
153 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
154 ctf_integer_hex(const void *, action
, action
)
155 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
156 ctf_integer(int, status
, task
->tk_status
)
157 ctf_integer(unsigned short, flags
, task
->tk_flags
)
161 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
163 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
165 TP_ARGS(clnt
, task
, action
)
168 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
170 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
172 TP_ARGS(clnt
, task
, action
)
175 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
177 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
179 TP_ARGS(clnt
, task
, action
)
182 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
184 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
186 TP_ARGS(clnt
, task
, q
),
189 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
190 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
191 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
192 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
193 ctf_integer(int, status
, task
->tk_status
)
194 ctf_integer(unsigned short, flags
, task
->tk_flags
)
195 ctf_string(q_name
, rpc_qname(q
))
199 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
201 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
203 TP_ARGS(clnt
, task
, q
)
206 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
208 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
210 TP_ARGS(clnt
, task
, q
)
214 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
215 TP_PROTO(struct rpc_task
*task
, int status
),
217 TP_ARGS(task
, status
),
220 ctf_integer_hex(const struct rpc_task
*, task
, task
)
221 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
222 ctf_integer(int, status
, status
)
226 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
228 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
230 TP_ARGS(clnt
, task
, action
),
233 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
234 ctf_integer_hex(const struct rpc_task
*, task
, task
)
235 ctf_integer_hex(const void *, action
, action
)
236 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
237 ctf_integer(int, status
, task
->tk_status
)
238 ctf_integer(unsigned short, flags
, task
->tk_flags
)
242 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
244 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
246 TP_ARGS(clnt
, task
, action
)
249 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
251 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
253 TP_ARGS(clnt
, task
, action
)
256 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
258 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
260 TP_ARGS(clnt
, task
, action
)
263 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
265 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
267 TP_ARGS(clnt
, task
, q
),
270 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
271 ctf_integer_hex(const struct rpc_task
*, task
, task
)
272 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
273 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
274 ctf_integer(int, status
, task
->tk_status
)
275 ctf_integer(unsigned short, flags
, task
->tk_flags
)
276 ctf_string(q_name
, rpc_qname(q
))
280 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
282 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
284 TP_ARGS(clnt
, task
, q
)
287 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
289 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
291 TP_ARGS(clnt
, task
, q
)
295 #endif /* LTTNG_TRACE_RPC_H */
297 #include <probes/define_trace.h>
This page took 0.035354 seconds and 4 git commands to generate.