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(5,0,0))
12 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_status
,
14 TP_PROTO(const 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_INSTANCE(rpc_task_status
, rpc_call_status
,
26 TP_PROTO(const struct rpc_task
*task
),
31 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_bind_status
,
32 TP_PROTO(const struct rpc_task
*task
),
36 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
37 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_status
,
39 TP_PROTO(struct rpc_task
*task
),
44 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
45 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
46 ctf_integer(int, status
, task
->tk_status
)
50 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_call_status
,
51 TP_PROTO(struct rpc_task
*task
),
56 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_bind_status
,
57 TP_PROTO(struct rpc_task
*task
),
62 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_status
,
64 TP_PROTO(struct rpc_task
*task
),
69 ctf_integer_hex(const struct rpc_task
*, task
, task
)
70 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
71 ctf_integer(int, status
, task
->tk_status
)
75 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_call_status
,
76 TP_PROTO(struct rpc_task
*task
),
81 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_bind_status
,
82 TP_PROTO(struct rpc_task
*task
),
88 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0))
89 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_status
, rpc_connect_status
,
90 TP_PROTO(const struct rpc_task
*task
),
94 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0))
95 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
96 TP_PROTO(const struct rpc_task
*task
),
101 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
102 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
103 ctf_integer(int, status
, task
->tk_status
)
106 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
107 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
108 TP_PROTO(struct rpc_task
*task
, int status
),
110 TP_ARGS(task
, status
),
113 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
114 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
115 ctf_integer(int, status
, status
)
119 LTTNG_TRACEPOINT_EVENT(rpc_connect_status
,
120 TP_PROTO(struct rpc_task
*task
, int status
),
122 TP_ARGS(task
, status
),
125 ctf_integer_hex(const struct rpc_task
*, task
, task
)
126 ctf_integer_hex(const struct rpc_clnt
*, clnt
, task
->tk_client
)
127 ctf_integer(int, status
, status
)
132 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0))
133 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
135 TP_PROTO(const struct rpc_task
*task
, const void *action
),
137 TP_ARGS(task
, action
),
140 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
141 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
142 ctf_integer_hex(const void *, action
, action
)
143 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
144 ctf_integer(int, status
, task
->tk_status
)
145 ctf_integer(unsigned short, flags
, task
->tk_flags
)
149 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
151 TP_PROTO(const struct rpc_task
*task
, const void *action
),
153 TP_ARGS(task
, action
)
156 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
158 TP_PROTO(const struct rpc_task
*task
, const void *action
),
160 TP_ARGS(task
, action
)
163 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
165 TP_PROTO(const struct rpc_task
*task
, const void *action
),
167 TP_ARGS(task
, action
)
170 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
172 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
177 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
178 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
179 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
180 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
181 ctf_integer(int, status
, task
->tk_status
)
182 ctf_integer(unsigned short, flags
, task
->tk_flags
)
183 ctf_string(q_name
, rpc_qname(q
))
187 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
189 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
194 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
196 TP_PROTO(const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
201 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
202 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
204 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
206 TP_ARGS(clnt
, task
, action
),
209 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
210 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
211 ctf_integer_hex(const void *, action
, action
)
212 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
213 ctf_integer(int, status
, task
->tk_status
)
214 ctf_integer(unsigned short, flags
, task
->tk_flags
)
218 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
220 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
222 TP_ARGS(clnt
, task
, action
)
225 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
227 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
229 TP_ARGS(clnt
, task
, action
)
232 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
234 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
236 TP_ARGS(clnt
, task
, action
)
239 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
241 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
243 TP_ARGS(clnt
, task
, q
),
246 ctf_integer(unsigned int, task_id
, task
->tk_pid
)
247 ctf_integer(unsigned int, client_id
, task
->tk_client
->cl_clid
)
248 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
249 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
250 ctf_integer(int, status
, task
->tk_status
)
251 ctf_integer(unsigned short, flags
, task
->tk_flags
)
252 ctf_string(q_name
, rpc_qname(q
))
256 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
258 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
260 TP_ARGS(clnt
, task
, q
)
263 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
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
)
271 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_running
,
273 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
275 TP_ARGS(clnt
, task
, action
),
278 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
279 ctf_integer_hex(const struct rpc_task
*, task
, task
)
280 ctf_integer_hex(const void *, action
, action
)
281 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
282 ctf_integer(int, status
, task
->tk_status
)
283 ctf_integer(unsigned short, flags
, task
->tk_flags
)
287 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_begin
,
289 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
291 TP_ARGS(clnt
, task
, action
)
294 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_run_action
,
296 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
298 TP_ARGS(clnt
, task
, action
)
301 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_running
, rpc_task_complete
,
303 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const void *action
),
305 TP_ARGS(clnt
, task
, action
)
308 LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued
,
310 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
312 TP_ARGS(clnt
, task
, q
),
315 ctf_integer_hex(const struct rpc_clnt
*, clnt
, clnt
)
316 ctf_integer_hex(const struct rpc_task
*, task
, task
)
317 ctf_integer(unsigned long, timeout
, task
->tk_timeout
)
318 ctf_integer(unsigned long, runstate
, task
->tk_runstate
)
319 ctf_integer(int, status
, task
->tk_status
)
320 ctf_integer(unsigned short, flags
, task
->tk_flags
)
321 ctf_string(q_name
, rpc_qname(q
))
325 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_sleep
,
327 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
329 TP_ARGS(clnt
, task
, q
)
332 LTTNG_TRACEPOINT_EVENT_INSTANCE(rpc_task_queued
, rpc_task_wakeup
,
334 TP_PROTO(const struct rpc_clnt
*clnt
, const struct rpc_task
*task
, const struct rpc_wait_queue
*q
),
336 TP_ARGS(clnt
, task
, q
)
340 #endif /* LTTNG_TRACE_RPC_H */
342 #include <probes/define_trace.h>
This page took 0.037578 seconds and 5 git commands to generate.