1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #define TRACE_SYSTEM block
5 #if !defined(LTTNG_TRACE_BLOCK_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_BLOCK_H
8 #include <lttng/tracepoint-event.h>
9 #include <linux/blktrace_api.h>
10 #include <linux/blkdev.h>
11 #include <linux/trace_seq.h>
12 #include <lttng/kernel-version.h>
14 #if LTTNG_KERNEL_RANGE(4,11,0, 5,18,0)
15 #include <scsi/scsi_request.h>
16 #endif /* LTTNG_KERNEL_RANGE(4,11,0, 5,18,0) */
18 #ifndef _TRACE_BLOCK_DEF_
19 #define _TRACE_BLOCK_DEF_
22 RWBS_FLAG_WRITE
= (1 << 0),
23 RWBS_FLAG_DISCARD
= (1 << 1),
24 RWBS_FLAG_READ
= (1 << 2),
25 RWBS_FLAG_RAHEAD
= (1 << 3),
26 RWBS_FLAG_BARRIER
= (1 << 4),
27 RWBS_FLAG_SYNC
= (1 << 5),
28 RWBS_FLAG_META
= (1 << 6),
29 RWBS_FLAG_SECURE
= (1 << 7),
30 RWBS_FLAG_FLUSH
= (1 << 8),
31 RWBS_FLAG_FUA
= (1 << 9),
32 RWBS_FLAG_PREFLUSH
= (1 << 10),
35 #endif /* _TRACE_BLOCK_DEF_ */
37 #ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
38 LTTNG_TRACEPOINT_ENUM(block_rq_type
,
40 ctf_enum_value("RWBS_FLAG_WRITE", RWBS_FLAG_WRITE
)
41 ctf_enum_value("RWBS_FLAG_DISCARD", RWBS_FLAG_DISCARD
)
42 ctf_enum_value("RWBS_FLAG_READ", RWBS_FLAG_READ
)
43 ctf_enum_value("RWBS_FLAG_RAHEAD", RWBS_FLAG_RAHEAD
)
44 ctf_enum_value("RWBS_FLAG_BARRIER", RWBS_FLAG_BARRIER
)
45 ctf_enum_value("RWBS_FLAG_SYNC", RWBS_FLAG_SYNC
)
46 ctf_enum_value("RWBS_FLAG_META", RWBS_FLAG_META
)
47 ctf_enum_value("RWBS_FLAG_SECURE", RWBS_FLAG_SECURE
)
48 ctf_enum_value("RWBS_FLAG_FLUSH", RWBS_FLAG_FLUSH
)
49 ctf_enum_value("RWBS_FLAG_FUA", RWBS_FLAG_FUA
)
50 ctf_enum_value("RWBS_FLAG_PREFLUSH", RWBS_FLAG_PREFLUSH
)
53 #endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */
55 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0) || \
56 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
57 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
58 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
59 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
60 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
61 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
62 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
64 #define lttng_req_op(rq) req_op(rq)
65 #define lttng_req_rw(rq) ((rq)->cmd_flags)
66 #define lttng_bio_op(bio) bio_op(bio)
67 #define lttng_bio_rw(bio) ((bio)->bi_opf)
69 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
70 #ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
71 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
72 ctf_enum(block_rq_type, type, rwbs, \
73 ( (op) == REQ_OP_WRITE ? RWBS_FLAG_WRITE : \
74 ( (op) == REQ_OP_DISCARD ? RWBS_FLAG_DISCARD : \
75 ( (op) == REQ_OP_SECURE_ERASE ? (RWBS_FLAG_DISCARD | RWBS_FLAG_SECURE) : \
76 ( (op) == REQ_OP_FLUSH ? RWBS_FLAG_FLUSH : \
77 ( (op) == REQ_OP_READ ? RWBS_FLAG_READ : \
79 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
80 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
81 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
82 | ((rw) & REQ_PREFLUSH ? RWBS_FLAG_PREFLUSH : 0) \
83 | ((rw) & REQ_FUA ? RWBS_FLAG_FUA : 0))
85 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
86 ctf_integer(type, rwbs, \
87 ( (op) == REQ_OP_WRITE ? RWBS_FLAG_WRITE : \
88 ( (op) == REQ_OP_DISCARD ? RWBS_FLAG_DISCARD : \
89 ( (op) == REQ_OP_SECURE_ERASE ? (RWBS_FLAG_DISCARD | RWBS_FLAG_SECURE) : \
90 ( (op) == REQ_OP_FLUSH ? RWBS_FLAG_FLUSH : \
91 ( (op) == REQ_OP_READ ? RWBS_FLAG_READ : \
93 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
94 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
95 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
96 | ((rw) & REQ_PREFLUSH ? RWBS_FLAG_PREFLUSH : 0) \
97 | ((rw) & REQ_FUA ? RWBS_FLAG_FUA : 0))
98 #endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */
100 #ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
101 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
102 ctf_enum(block_rq_type, type, rwbs, \
103 (((op) == REQ_OP_WRITE || (op) == REQ_OP_WRITE_SAME) ? RWBS_FLAG_WRITE : \
104 ( (op) == REQ_OP_DISCARD ? RWBS_FLAG_DISCARD : \
105 ( (op) == REQ_OP_SECURE_ERASE ? (RWBS_FLAG_DISCARD | RWBS_FLAG_SECURE) : \
106 ( (op) == REQ_OP_FLUSH ? RWBS_FLAG_FLUSH : \
107 ( (op) == REQ_OP_READ ? RWBS_FLAG_READ : \
109 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
110 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
111 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
112 | ((rw) & REQ_PREFLUSH ? RWBS_FLAG_PREFLUSH : 0) \
113 | ((rw) & REQ_FUA ? RWBS_FLAG_FUA : 0))
115 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
116 ctf_integer(type, rwbs, \
117 (((op) == REQ_OP_WRITE || (op) == REQ_OP_WRITE_SAME) ? RWBS_FLAG_WRITE : \
118 ( (op) == REQ_OP_DISCARD ? RWBS_FLAG_DISCARD : \
119 ( (op) == REQ_OP_SECURE_ERASE ? (RWBS_FLAG_DISCARD | RWBS_FLAG_SECURE) : \
120 ( (op) == REQ_OP_FLUSH ? RWBS_FLAG_FLUSH : \
121 ( (op) == REQ_OP_READ ? RWBS_FLAG_READ : \
123 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
124 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
125 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
126 | ((rw) & REQ_PREFLUSH ? RWBS_FLAG_PREFLUSH : 0) \
127 | ((rw) & REQ_FUA ? RWBS_FLAG_FUA : 0))
128 #endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */
131 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,1,0))
133 #define lttng_req_op(rq)
134 #define lttng_req_rw(rq) ((rq)->cmd_flags)
135 #define lttng_bio_op(bio)
136 #define lttng_bio_rw(bio) ((bio)->bi_rw)
138 #ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
139 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
140 ctf_enum(block_rq_type, type, rwbs, ((rw) & WRITE ? RWBS_FLAG_WRITE : \
141 ( (rw) & REQ_DISCARD ? RWBS_FLAG_DISCARD : \
142 ( (bytes) ? RWBS_FLAG_READ : \
144 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
145 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
146 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
147 | ((rw) & REQ_SECURE ? RWBS_FLAG_SECURE : 0) \
148 | ((rw) & REQ_FLUSH ? RWBS_FLAG_FLUSH : 0) \
149 | ((rw) & REQ_FUA ? RWBS_FLAG_FUA : 0))
151 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
152 ctf_integer(type, rwbs, ((rw) & WRITE ? RWBS_FLAG_WRITE : \
153 ( (rw) & REQ_DISCARD ? RWBS_FLAG_DISCARD : \
154 ( (bytes) ? RWBS_FLAG_READ : \
156 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
157 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
158 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
159 | ((rw) & REQ_SECURE ? RWBS_FLAG_SECURE : 0) \
160 | ((rw) & REQ_FLUSH ? RWBS_FLAG_FLUSH : 0) \
161 | ((rw) & REQ_FUA ? RWBS_FLAG_FUA : 0))
162 #endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */
166 #define lttng_req_op(rq)
167 #define lttng_req_rw(rq) ((rq)->cmd_flags)
168 #define lttng_bio_op(bio)
169 #define lttng_bio_rw(bio) ((bio)->bi_rw)
171 #ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
172 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
173 ctf_enum(block_rq_type, type, rwbs, ((rw) & WRITE ? RWBS_FLAG_WRITE : \
174 ( (rw) & REQ_DISCARD ? RWBS_FLAG_DISCARD : \
175 ( (bytes) ? RWBS_FLAG_READ : \
177 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
178 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
179 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
180 | ((rw) & REQ_SECURE ? RWBS_FLAG_SECURE : 0))
182 #define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
183 ctf_integer(type, rwbs, ((rw) & WRITE ? RWBS_FLAG_WRITE : \
184 ( (rw) & REQ_DISCARD ? RWBS_FLAG_DISCARD : \
185 ( (bytes) ? RWBS_FLAG_READ : \
187 | ((rw) & REQ_RAHEAD ? RWBS_FLAG_RAHEAD : 0) \
188 | ((rw) & REQ_SYNC ? RWBS_FLAG_SYNC : 0) \
189 | ((rw) & REQ_META ? RWBS_FLAG_META : 0) \
190 | ((rw) & REQ_SECURE ? RWBS_FLAG_SECURE : 0))
191 #endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */
195 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,9,0))
196 LTTNG_TRACEPOINT_EVENT_CLASS(block_buffer
,
198 TP_PROTO(struct buffer_head
*bh
),
203 ctf_integer(dev_t
, dev
, bh
->b_bdev
->bd_dev
)
204 ctf_integer(sector_t
, sector
, bh
->b_blocknr
)
205 ctf_integer(size_t, size
, bh
->b_size
)
210 * block_touch_buffer - mark a buffer accessed
211 * @bh: buffer_head being touched
213 * Called from touch_buffer().
215 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_buffer
, block_touch_buffer
,
217 TP_PROTO(struct buffer_head
*bh
),
223 * block_dirty_buffer - mark a buffer dirty
224 * @bh: buffer_head being dirtied
226 * Called from mark_buffer_dirty().
228 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_buffer
, block_dirty_buffer
,
230 TP_PROTO(struct buffer_head
*bh
),
236 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,12,0))
237 /* block_rq_with_error event class removed in kernel 4.12 */
238 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0))
239 LTTNG_TRACEPOINT_EVENT_CLASS_CODE(block_rq_with_error
,
241 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
247 unsigned int nr_sector
;
253 if (blk_rq_is_scsi(rq
)) {
254 struct scsi_request
*scsi_rq
= scsi_req(rq
);
255 tp_locvar
->sector
= 0;
256 tp_locvar
->nr_sector
= 0;
257 tp_locvar
->cmd
= scsi_rq
->cmd
;
258 tp_locvar
->cmd_len
= scsi_rq
->cmd_len
;
260 tp_locvar
->sector
= blk_rq_pos(rq
);
261 tp_locvar
->nr_sector
= blk_rq_sectors(rq
);
262 tp_locvar
->cmd
= NULL
;
263 tp_locvar
->cmd_len
= 0;
268 ctf_integer(dev_t
, dev
,
269 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
270 ctf_integer(sector_t
, sector
, tp_locvar
->sector
)
271 ctf_integer(unsigned int, nr_sector
, tp_locvar
->nr_sector
)
272 ctf_integer(int, errors
, rq
->errors
)
273 blk_rwbs_ctf_integer(unsigned int, rwbs
,
274 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
275 ctf_sequence_hex(unsigned char, cmd
,
276 tp_locvar
->cmd
, size_t, tp_locvar
->cmd_len
)
281 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0)) */
282 LTTNG_TRACEPOINT_EVENT_CLASS_CODE(block_rq_with_error
,
284 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
290 unsigned int nr_sector
;
297 if (rq
->cmd_type
== REQ_TYPE_BLOCK_PC
) {
298 tp_locvar
->sector
= 0;
299 tp_locvar
->nr_sector
= 0;
300 tp_locvar
->cmd
= rq
->cmd
;
301 tp_locvar
->cmd_len
= rq
->cmd_len
;
303 tp_locvar
->sector
= blk_rq_pos(rq
);
304 tp_locvar
->nr_sector
= blk_rq_sectors(rq
);
305 tp_locvar
->cmd
= NULL
;
306 tp_locvar
->cmd_len
= 0;
311 ctf_integer(dev_t
, dev
,
312 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
313 ctf_integer(sector_t
, sector
, tp_locvar
->sector
)
314 ctf_integer(unsigned int, nr_sector
, tp_locvar
->nr_sector
)
315 ctf_integer(int, errors
, rq
->errors
)
316 blk_rwbs_ctf_integer(unsigned int, rwbs
,
317 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
318 ctf_sequence_hex(unsigned char, cmd
,
319 tp_locvar
->cmd
, size_t, tp_locvar
->cmd_len
)
324 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0)) */
326 #if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(4,12,0))
328 * block_rq_abort - abort block operation request
329 * @q: queue containing the block operation request
330 * @rq: block IO operation request
332 * Called immediately after pending block IO operation request @rq in
333 * queue @q is aborted. The fields in the operation request @rq
334 * can be examined to determine which device and sectors the pending
335 * operation would access.
337 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error
, block_rq_abort
,
339 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
345 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
347 * block_rq_requeue - place block IO request back on a queue
348 * @rq: block IO operation request
350 * The block operation request @rq is being placed back into queue
351 * @q. For some reason the request was not completed and needs to be
352 * put back in the queue.
354 LTTNG_TRACEPOINT_EVENT(block_rq_requeue
,
356 TP_PROTO(struct request
*rq
),
361 ctf_integer(dev_t
, dev
,
362 rq
->q
->disk
? disk_devt(rq
->q
->disk
) : 0)
363 ctf_integer(sector_t
, sector
, blk_rq_trace_sector(rq
))
364 ctf_integer(unsigned int, nr_sector
, blk_rq_trace_nr_sectors(rq
))
365 blk_rwbs_ctf_integer(unsigned int, rwbs
,
366 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
369 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
371 * block_rq_requeue - place block IO request back on a queue
372 * @rq: block IO operation request
374 * The block operation request @rq is being placed back into queue
375 * @q. For some reason the request was not completed and needs to be
376 * put back in the queue.
378 LTTNG_TRACEPOINT_EVENT(block_rq_requeue
,
380 TP_PROTO(struct request
*rq
),
385 ctf_integer(dev_t
, dev
,
386 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
387 ctf_integer(sector_t
, sector
, blk_rq_trace_sector(rq
))
388 ctf_integer(unsigned int, nr_sector
, blk_rq_trace_nr_sectors(rq
))
389 blk_rwbs_ctf_integer(unsigned int, rwbs
,
390 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
393 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,12,0))
395 * block_rq_requeue - place block IO request back on a queue
396 * @q: queue holding operation
397 * @rq: block IO operation request
399 * The block operation request @rq is being placed back into queue
400 * @q. For some reason the request was not completed and needs to be
401 * put back in the queue.
403 LTTNG_TRACEPOINT_EVENT(block_rq_requeue
,
405 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
410 ctf_integer(dev_t
, dev
,
411 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
412 ctf_integer(sector_t
, sector
, blk_rq_trace_sector(rq
))
413 ctf_integer(unsigned int, nr_sector
, blk_rq_trace_nr_sectors(rq
))
414 blk_rwbs_ctf_integer(unsigned int, rwbs
,
415 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
419 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error
, block_rq_requeue
,
421 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
428 * block_rq_complete - block IO operation completed by device driver
429 * @q: queue containing the block operation request
430 * @rq: block operations request
431 * @nr_bytes: number of completed bytes
433 * The block_rq_complete tracepoint event indicates that some portion
434 * of operation request has been completed by the device driver. If
435 * the @rq->bio is %NULL, then there is absolutely no additional work to
436 * do for the request. If @rq->bio is non-NULL then there is
437 * additional work required to complete the request.
439 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
440 LTTNG_TRACEPOINT_EVENT(block_rq_complete
,
442 TP_PROTO(struct request
*rq
, blk_status_t error
, unsigned int nr_bytes
),
444 TP_ARGS(rq
, error
, nr_bytes
),
447 ctf_integer(dev_t
, dev
,
448 rq
->q
->disk
? disk_devt(rq
->q
->disk
) : 0)
449 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
450 ctf_integer(unsigned int, nr_sector
, nr_bytes
>> 9)
451 ctf_integer(int, error
, blk_status_to_errno(error
))
452 blk_rwbs_ctf_integer(unsigned int, rwbs
,
453 lttng_req_op(rq
), lttng_req_rw(rq
), nr_bytes
)
456 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0))
457 LTTNG_TRACEPOINT_EVENT(block_rq_complete
,
459 TP_PROTO(struct request
*rq
, blk_status_t error
, unsigned int nr_bytes
),
461 TP_ARGS(rq
, error
, nr_bytes
),
464 ctf_integer(dev_t
, dev
,
465 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
466 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
467 ctf_integer(unsigned int, nr_sector
, nr_bytes
>> 9)
468 ctf_integer(int, error
, blk_status_to_errno(error
))
469 blk_rwbs_ctf_integer(unsigned int, rwbs
,
470 lttng_req_op(rq
), lttng_req_rw(rq
), nr_bytes
)
473 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,12,0))
474 LTTNG_TRACEPOINT_EVENT(block_rq_complete
,
476 TP_PROTO(struct request
*rq
, int error
, unsigned int nr_bytes
),
478 TP_ARGS(rq
, error
, nr_bytes
),
481 ctf_integer(dev_t
, dev
,
482 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
483 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
484 ctf_integer(unsigned int, nr_sector
, nr_bytes
>> 9)
485 ctf_integer(int, error
, error
)
486 blk_rwbs_ctf_integer(unsigned int, rwbs
,
487 lttng_req_op(rq
), lttng_req_rw(rq
), nr_bytes
)
490 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0))
491 LTTNG_TRACEPOINT_EVENT_CODE(block_rq_complete
,
493 TP_PROTO(struct request_queue
*q
, struct request
*rq
,
494 unsigned int nr_bytes
),
496 TP_ARGS(q
, rq
, nr_bytes
),
504 if (blk_rq_is_scsi(rq
)) {
505 struct scsi_request
*scsi_rq
= scsi_req(rq
);
506 tp_locvar
->cmd
= scsi_rq
->cmd
;
507 tp_locvar
->cmd_len
= scsi_rq
->cmd_len
;
509 tp_locvar
->cmd
= NULL
;
510 tp_locvar
->cmd_len
= 0;
515 ctf_integer(dev_t
, dev
,
516 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
517 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
518 ctf_integer(unsigned int, nr_sector
, nr_bytes
>> 9)
519 ctf_integer(int, errors
, rq
->errors
)
520 blk_rwbs_ctf_integer(unsigned int, rwbs
,
521 lttng_req_op(rq
), lttng_req_rw(rq
), nr_bytes
)
522 ctf_sequence_hex(unsigned char, cmd
,
523 tp_locvar
->cmd
, size_t, tp_locvar
->cmd_len
)
528 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,5) \
529 || LTTNG_KERNEL_RANGE(3,12,21, 3,13,0) \
530 || LTTNG_KERNEL_RANGE(3,10,41, 3,11,0) \
531 || LTTNG_KERNEL_RANGE(3,4,91, 3,5,0) \
532 || LTTNG_KERNEL_RANGE(3,2,58, 3,3,0) \
533 || LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,28, 3,14,0,0) \
534 || LTTNG_RHEL_KERNEL_RANGE(3,10,0,229,0,0, 3,11,0,0,0,0))
536 LTTNG_TRACEPOINT_EVENT_CODE(block_rq_complete
,
538 TP_PROTO(struct request_queue
*q
, struct request
*rq
,
539 unsigned int nr_bytes
),
541 TP_ARGS(q
, rq
, nr_bytes
),
549 if (rq
->cmd_type
== REQ_TYPE_BLOCK_PC
) {
550 tp_locvar
->cmd
= rq
->cmd
;
551 tp_locvar
->cmd_len
= rq
->cmd_len
;
553 tp_locvar
->cmd
= NULL
;
554 tp_locvar
->cmd_len
= 0;
559 ctf_integer(dev_t
, dev
,
560 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
561 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
562 ctf_integer(unsigned int, nr_sector
, nr_bytes
>> 9)
563 ctf_integer(int, errors
, rq
->errors
)
564 blk_rwbs_ctf_integer(unsigned int, rwbs
,
565 lttng_req_op(rq
), lttng_req_rw(rq
), nr_bytes
)
566 ctf_sequence_hex(unsigned char, cmd
,
567 tp_locvar
->cmd
, size_t, tp_locvar
->cmd_len
)
573 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,15,0)) */
576 * block_rq_complete - block IO operation completed by device driver
577 * @q: queue containing the block operation request
578 * @rq: block operations request
580 * The block_rq_complete tracepoint event indicates that some portion
581 * of operation request has been completed by the device driver. If
582 * the @rq->bio is %NULL, then there is absolutely no additional work to
583 * do for the request. If @rq->bio is non-NULL then there is
584 * additional work required to complete the request.
586 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error
, block_rq_complete
,
588 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
593 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,15,0)) */
595 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
596 LTTNG_TRACEPOINT_EVENT_CLASS(block_rq
,
598 TP_PROTO(struct request
*rq
),
603 ctf_integer(dev_t
, dev
,
604 rq
->q
->disk
? disk_devt(rq
->q
->disk
) : 0)
605 ctf_integer(sector_t
, sector
, blk_rq_trace_sector(rq
))
606 ctf_integer(unsigned int, nr_sector
, blk_rq_trace_nr_sectors(rq
))
607 ctf_integer(unsigned int, bytes
, blk_rq_bytes(rq
))
608 ctf_integer(pid_t
, tid
, current
->pid
)
609 blk_rwbs_ctf_integer(unsigned int, rwbs
,
610 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
611 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
614 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
615 LTTNG_TRACEPOINT_EVENT_CLASS(block_rq
,
617 TP_PROTO(struct request
*rq
),
622 ctf_integer(dev_t
, dev
,
623 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
624 ctf_integer(sector_t
, sector
, blk_rq_trace_sector(rq
))
625 ctf_integer(unsigned int, nr_sector
, blk_rq_trace_nr_sectors(rq
))
626 ctf_integer(unsigned int, bytes
, blk_rq_bytes(rq
))
627 ctf_integer(pid_t
, tid
, current
->pid
)
628 blk_rwbs_ctf_integer(unsigned int, rwbs
,
629 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
630 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
633 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,12,0))
634 LTTNG_TRACEPOINT_EVENT_CLASS(block_rq
,
636 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
641 ctf_integer(dev_t
, dev
,
642 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
643 ctf_integer(sector_t
, sector
, blk_rq_trace_sector(rq
))
644 ctf_integer(unsigned int, nr_sector
, blk_rq_trace_nr_sectors(rq
))
645 ctf_integer(unsigned int, bytes
, blk_rq_bytes(rq
))
646 ctf_integer(pid_t
, tid
, current
->pid
)
647 blk_rwbs_ctf_integer(unsigned int, rwbs
,
648 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
649 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
652 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0))
653 LTTNG_TRACEPOINT_EVENT_CLASS_CODE(block_rq
,
655 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
661 unsigned int nr_sector
;
668 if (blk_rq_is_scsi(rq
)) {
669 struct scsi_request
*scsi_rq
= scsi_req(rq
);
670 tp_locvar
->sector
= 0;
671 tp_locvar
->nr_sector
= 0;
672 tp_locvar
->bytes
= scsi_rq
->resid_len
;
673 tp_locvar
->cmd
= scsi_rq
->cmd
;
674 tp_locvar
->cmd_len
= scsi_rq
->cmd_len
;
676 tp_locvar
->sector
= blk_rq_pos(rq
);
677 tp_locvar
->nr_sector
= blk_rq_sectors(rq
);
678 tp_locvar
->bytes
= 0;
679 tp_locvar
->cmd
= NULL
;
680 tp_locvar
->cmd_len
= 0;
685 ctf_integer(dev_t
, dev
,
686 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
687 ctf_integer(sector_t
, sector
, tp_locvar
->sector
)
688 ctf_integer(unsigned int, nr_sector
, tp_locvar
->nr_sector
)
689 ctf_integer(unsigned int, bytes
, tp_locvar
->bytes
)
690 ctf_integer(pid_t
, tid
, current
->pid
)
691 blk_rwbs_ctf_integer(unsigned int, rwbs
,
692 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
693 ctf_sequence_hex(unsigned char, cmd
,
694 tp_locvar
->cmd
, size_t, tp_locvar
->cmd_len
)
695 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
700 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0)) */
701 LTTNG_TRACEPOINT_EVENT_CLASS_CODE(block_rq
,
703 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
709 unsigned int nr_sector
;
716 if (rq
->cmd_type
== REQ_TYPE_BLOCK_PC
) {
717 tp_locvar
->sector
= 0;
718 tp_locvar
->nr_sector
= 0;
719 tp_locvar
->bytes
= blk_rq_bytes(rq
);
720 tp_locvar
->cmd
= rq
->cmd
;
721 tp_locvar
->cmd_len
= rq
->cmd_len
;
723 tp_locvar
->sector
= blk_rq_pos(rq
);
724 tp_locvar
->nr_sector
= blk_rq_sectors(rq
);
725 tp_locvar
->bytes
= 0;
726 tp_locvar
->cmd
= NULL
;
727 tp_locvar
->cmd_len
= 0;
732 ctf_integer(dev_t
, dev
,
733 rq
->rq_disk
? disk_devt(rq
->rq_disk
) : 0)
734 ctf_integer(sector_t
, sector
, tp_locvar
->sector
)
735 ctf_integer(unsigned int, nr_sector
, tp_locvar
->nr_sector
)
736 ctf_integer(unsigned int, bytes
, tp_locvar
->bytes
)
737 ctf_integer(pid_t
, tid
, current
->pid
)
738 blk_rwbs_ctf_integer(unsigned int, rwbs
,
739 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
740 ctf_sequence_hex(unsigned char, cmd
,
741 tp_locvar
->cmd
, size_t, tp_locvar
->cmd_len
)
742 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
747 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0)) */
749 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
751 * block_rq_insert - insert block operation request into queue
752 * @rq: block IO operation request
754 * Called immediately before block operation request @rq is inserted
755 * into queue @q. The fields in the operation request @rq struct can
756 * be examined to determine which device and sectors the pending
757 * operation would access.
759 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq
, block_rq_insert
,
761 TP_PROTO(struct request
*rq
),
767 * block_rq_insert - insert block operation request into queue
769 * @rq: block IO operation request
771 * Called immediately before block operation request @rq is inserted
772 * into queue @q. The fields in the operation request @rq struct can
773 * be examined to determine which device and sectors the pending
774 * operation would access.
776 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq
, block_rq_insert
,
778 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
784 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
786 * block_rq_issue - issue pending block IO request operation to device driver
787 * @rq: block IO operation operation request
789 * Called when block operation request @rq from queue @q is sent to a
790 * device driver for processing.
792 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq
, block_rq_issue
,
794 TP_PROTO(struct request
*rq
),
800 * block_rq_issue - issue pending block IO request operation to device driver
801 * @q: queue holding operation
802 * @rq: block IO operation operation request
804 * Called when block operation request @rq from queue @q is sent to a
805 * device driver for processing.
807 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq
, block_rq_issue
,
809 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
815 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
817 * block_rq_merge - merge request with another one in the elevator
818 * @rq: block IO operation operation request
820 * Called when block operation request @rq from queue @q is merged to another
821 * request queued in the elevator.
823 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq
, block_rq_merge
,
825 TP_PROTO(struct request
*rq
),
829 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,9,0))
831 * block_rq_merge - merge request with another one in the elevator
832 * @q: queue holding operation
833 * @rq: block IO operation operation request
835 * Called when block operation request @rq from queue @q is merged to another
836 * request queued in the elevator.
838 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq
, block_rq_merge
,
840 TP_PROTO(struct request_queue
*q
, struct request
*rq
),
846 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,8,0) || \
847 LTTNG_RHEL_KERNEL_RANGE(4,18,0,305,0,0, 4,19,0,0,0,0))
850 * block_bio_complete - completed all work on the block operation
851 * @q: queue holding the block operation
852 * @bio: block operation completed
853 * @error: io error value
855 * This tracepoint indicates there is no further work to do on this
856 * block IO operation @bio.
858 LTTNG_TRACEPOINT_EVENT(block_bio_complete
,
860 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
865 ctf_integer(dev_t
, dev
, bio_dev(bio
))
866 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
867 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
868 ctf_integer(int, error
, blk_status_to_errno(bio
->bi_status
))
869 blk_rwbs_ctf_integer(unsigned int, rwbs
,
870 lttng_bio_op(bio
), lttng_bio_rw(bio
),
871 bio
->bi_iter
.bi_size
)
874 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
876 * block_bio_complete - completed all work on the block operation
877 * @q: queue holding the block operation
878 * @bio: block operation completed
879 * @error: io error value
881 * This tracepoint indicates there is no further work to do on this
882 * block IO operation @bio.
884 LTTNG_TRACEPOINT_EVENT(block_bio_complete
,
886 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, int error
),
888 TP_ARGS(q
, bio
, error
),
891 ctf_integer(dev_t
, dev
, bio_dev(bio
))
892 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
893 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
894 ctf_integer(int, error
, error
)
895 blk_rwbs_ctf_integer(unsigned int, rwbs
,
896 lttng_bio_op(bio
), lttng_bio_rw(bio
),
897 bio
->bi_iter
.bi_size
)
900 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0))
902 * block_bio_complete - completed all work on the block operation
903 * @q: queue holding the block operation
904 * @bio: block operation completed
905 * @error: io error value
907 * This tracepoint indicates there is no further work to do on this
908 * block IO operation @bio.
910 LTTNG_TRACEPOINT_EVENT(block_bio_complete
,
912 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, int error
),
914 TP_ARGS(q
, bio
, error
),
917 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
918 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
919 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
920 ctf_integer(int, error
, error
)
921 blk_rwbs_ctf_integer(unsigned int, rwbs
,
922 lttng_bio_op(bio
), lttng_bio_rw(bio
),
923 bio
->bi_iter
.bi_size
)
928 * block_bio_complete - completed all work on the block operation
929 * @q: queue holding the block operation
930 * @bio: block operation completed
931 * @error: io error value
933 * This tracepoint indicates there is no further work to do on this
934 * block IO operation @bio.
936 LTTNG_TRACEPOINT_EVENT(block_bio_complete
,
938 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, int error
),
940 TP_ARGS(q
, bio
, error
),
943 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
944 ctf_integer(sector_t
, sector
, bio
->bi_sector
)
945 ctf_integer(unsigned int, nr_sector
, bio
->bi_size
>> 9)
946 ctf_integer(int, error
, error
)
947 blk_rwbs_ctf_integer(unsigned int, rwbs
,
948 lttng_bio_op(bio
), lttng_bio_rw(bio
), bio
->bi_size
)
953 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
954 LTTNG_TRACEPOINT_EVENT_CLASS(block_bio
,
956 TP_PROTO(struct bio
*bio
),
961 ctf_integer(dev_t
, dev
, bio_dev(bio
))
962 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
963 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
964 blk_rwbs_ctf_integer(unsigned int, rwbs
,
965 lttng_bio_op(bio
), lttng_bio_rw(bio
),
966 bio
->bi_iter
.bi_size
)
967 ctf_integer(pid_t
, tid
, current
->pid
)
968 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
971 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
972 LTTNG_TRACEPOINT_EVENT_CLASS(block_bio_merge
,
974 TP_PROTO(struct request_queue
*q
, struct request
*rq
, struct bio
*bio
),
979 ctf_integer(dev_t
, dev
, bio_dev(bio
))
980 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
981 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
982 blk_rwbs_ctf_integer(unsigned int, rwbs
,
983 lttng_bio_op(bio
), lttng_bio_rw(bio
),
984 bio
->bi_iter
.bi_size
)
985 ctf_integer(pid_t
, tid
, current
->pid
)
986 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
989 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0))
990 LTTNG_TRACEPOINT_EVENT_CLASS(block_bio_merge
,
992 TP_PROTO(struct request_queue
*q
, struct request
*rq
, struct bio
*bio
),
997 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
998 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
999 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
1000 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1001 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1002 bio
->bi_iter
.bi_size
)
1003 ctf_integer(pid_t
, tid
, current
->pid
)
1004 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1007 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,9,0))
1008 LTTNG_TRACEPOINT_EVENT_CLASS(block_bio_merge
,
1010 TP_PROTO(struct request_queue
*q
, struct request
*rq
, struct bio
*bio
),
1012 TP_ARGS(q
, rq
, bio
),
1015 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
1016 ctf_integer(sector_t
, sector
, bio
->bi_sector
)
1017 ctf_integer(unsigned int, nr_sector
, bio
->bi_size
>> 9)
1018 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1019 lttng_bio_op(bio
), lttng_bio_rw(bio
), bio
->bi_size
)
1020 ctf_integer(pid_t
, tid
, current
->pid
)
1021 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1028 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
1030 * block_bio_bounce - used bounce buffer when processing block operation
1031 * @bio: block operation
1033 * A bounce buffer was used to handle the block operation @bio in @q.
1034 * This occurs when hardware limitations prevent a direct transfer of
1035 * data between the @bio data memory area and the IO device. Use of a
1036 * bounce buffer requires extra copying of data and decreases
1039 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_bio_bounce
,
1041 TP_PROTO(struct bio
*bio
),
1045 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1047 * block_bio_bounce - used bounce buffer when processing block operation
1048 * @q: queue holding the block operation
1049 * @bio: block operation
1051 * A bounce buffer was used to handle the block operation @bio in @q.
1052 * This occurs when hardware limitations prevent a direct transfer of
1053 * data between the @bio data memory area and the IO device. Use of a
1054 * bounce buffer requires extra copying of data and decreases
1057 LTTNG_TRACEPOINT_EVENT(block_bio_bounce
,
1059 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1064 ctf_integer(dev_t
, dev
, bio_dev(bio
))
1065 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1066 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
1067 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1068 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1069 bio
->bi_iter
.bi_size
)
1070 ctf_integer(pid_t
, tid
, current
->pid
)
1071 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1074 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0))
1075 LTTNG_TRACEPOINT_EVENT(block_bio_bounce
,
1077 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1082 ctf_integer(dev_t
, dev
, bio
->bi_bdev
? bio
->bi_bdev
->bd_dev
: 0)
1083 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1084 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
1085 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1086 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1087 bio
->bi_iter
.bi_size
)
1088 ctf_integer(pid_t
, tid
, current
->pid
)
1089 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1093 LTTNG_TRACEPOINT_EVENT(block_bio_bounce
,
1095 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1100 ctf_integer(dev_t
, dev
, bio
->bi_bdev
? bio
->bi_bdev
->bd_dev
: 0)
1101 ctf_integer(sector_t
, sector
, bio
->bi_sector
)
1102 ctf_integer(unsigned int, nr_sector
, bio
->bi_size
>> 9)
1103 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1104 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1106 ctf_integer(pid_t
, tid
, current
->pid
)
1107 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1113 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
1115 * block_bio_backmerge - merging block operation to the end of an existing operation
1116 * @bio: new block operation to merge
1118 * Merging block request @bio to the end of an existing block request.
1120 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_bio_backmerge
,
1122 TP_PROTO(struct bio
*bio
),
1128 * block_bio_frontmerge - merging block operation to the beginning of an existing operation
1129 * @bio: new block operation to merge
1131 * Merging block IO operation @bio to the beginning of an existing block request.
1133 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_bio_frontmerge
,
1135 TP_PROTO(struct bio
*bio
),
1141 * block_bio_queue - putting new block IO operation in queue
1142 * @bio: new block operation
1144 * About to place the block IO operation @bio into queue @q.
1146 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_bio_queue
,
1148 TP_PROTO(struct bio
*bio
),
1152 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,9,0))
1154 * block_bio_backmerge - merging block operation to the end of an existing operation
1155 * @q: queue holding operation
1156 * @rq: request bio is being merged into
1157 * @bio: new block operation to merge
1159 * Merging block request @bio to the end of an existing block request
1162 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio_merge
, block_bio_backmerge
,
1164 TP_PROTO(struct request_queue
*q
, struct request
*rq
, struct bio
*bio
),
1170 * block_bio_frontmerge - merging block operation to the beginning of an existing operation
1171 * @q: queue holding operation
1172 * @rq: request bio is being merged into
1173 * @bio: new block operation to merge
1175 * Merging block IO operation @bio to the beginning of an existing block
1176 * operation in queue @q.
1178 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio_merge
, block_bio_frontmerge
,
1180 TP_PROTO(struct request_queue
*q
, struct request
*rq
, struct bio
*bio
),
1186 * block_bio_queue - putting new block IO operation in queue
1187 * @q: queue holding operation
1188 * @bio: new block operation
1190 * About to place the block IO operation @bio into queue @q.
1192 LTTNG_TRACEPOINT_EVENT(block_bio_queue
,
1194 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1199 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1200 ctf_integer(dev_t
, dev
, bio_dev(bio
))
1202 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
1204 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0))
1205 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1206 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
1207 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1208 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1209 bio
->bi_iter
.bi_size
)
1210 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0)) */
1211 ctf_integer(sector_t
, sector
, bio
->bi_sector
)
1212 ctf_integer(unsigned int, nr_sector
, bio
->bi_size
>> 9)
1213 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1214 lttng_bio_op(bio
), lttng_bio_rw(bio
), bio
->bi_size
)
1215 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0)) */
1216 ctf_integer(pid_t
, tid
, current
->pid
)
1217 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1220 #else /* if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,9,0)) */
1221 LTTNG_TRACEPOINT_EVENT_CLASS(block_bio
,
1223 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1228 ctf_integer(dev_t
, dev
, bio
->bi_bdev
? bio
->bi_bdev
->bd_dev
: 0)
1229 ctf_integer(sector_t
, sector
, bio
->bi_sector
)
1230 ctf_integer(unsigned int, nr_sector
, bio
->bi_size
>> 9)
1231 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1232 lttng_bio_op(bio
), lttng_bio_rw(bio
), bio
->bi_size
)
1233 ctf_integer(pid_t
, tid
, current
->pid
)
1234 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1239 * block_bio_backmerge - merging block operation to the end of an existing operation
1240 * @q: queue holding operation
1241 * @bio: new block operation to merge
1243 * Merging block request @bio to the end of an existing block request
1246 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_bio_backmerge
,
1248 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1254 * block_bio_frontmerge - merging block operation to the beginning of an existing operation
1255 * @q: queue holding operation
1256 * @bio: new block operation to merge
1258 * Merging block IO operation @bio to the beginning of an existing block
1259 * operation in queue @q.
1261 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_bio_frontmerge
,
1263 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1269 * block_bio_queue - putting new block IO operation in queue
1270 * @q: queue holding operation
1271 * @bio: new block operation
1273 * About to place the block IO operation @bio into queue @q.
1275 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_bio_queue
,
1277 TP_PROTO(struct request_queue
*q
, struct bio
*bio
),
1281 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,9,0)) */
1283 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
1285 * block_getrq - get a free request entry in queue for block IO operations
1286 * @bio: pending block IO operation (can be %NULL)
1288 * A request struct has been allocated to handle the block IO operation @bio.
1290 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_bio
, block_getrq
,
1292 TP_PROTO(struct bio
*bio
),
1297 LTTNG_TRACEPOINT_EVENT_CLASS(block_get_rq
,
1299 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, int rw
),
1301 TP_ARGS(q
, bio
, rw
),
1304 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1305 ctf_integer(dev_t
, dev
, bio
? bio_dev(bio
) : 0)
1307 ctf_integer(dev_t
, dev
, bio
? bio
->bi_bdev
->bd_dev
: 0)
1309 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0))
1310 ctf_integer(sector_t
, sector
, bio
? bio
->bi_iter
.bi_sector
: 0)
1311 ctf_integer(unsigned int, nr_sector
,
1312 bio
? bio_sectors(bio
) : 0)
1313 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1314 bio
? lttng_bio_op(bio
) : 0,
1315 bio
? lttng_bio_rw(bio
) : 0,
1316 bio
? bio
->bi_iter
.bi_size
: 0)
1317 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0)) */
1318 ctf_integer(sector_t
, sector
, bio
? bio
->bi_sector
: 0)
1319 ctf_integer(unsigned int, nr_sector
,
1320 bio
? bio
->bi_size
>> 9 : 0)
1321 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1322 bio
? lttng_bio_op(bio
) : 0,
1323 bio
? lttng_bio_rw(bio
) : 0,
1324 bio
? bio
->bi_size
: 0)
1325 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0)) */
1326 ctf_integer(pid_t
, tid
, current
->pid
)
1327 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1332 * block_getrq - get a free request entry in queue for block IO operations
1333 * @q: queue for operations
1334 * @bio: pending block IO operation (can be %NULL)
1335 * @rw: low bit indicates a read (%0) or a write (%1)
1337 * A request struct for queue @q has been allocated to handle the
1338 * block IO operation @bio.
1340 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_get_rq
, block_getrq
,
1342 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, int rw
),
1348 * block_sleeprq - waiting to get a free request entry in queue for block IO operation
1349 * @q: queue for operation
1350 * @bio: pending block IO operation (can be %NULL)
1351 * @rw: low bit indicates a read (%0) or a write (%1)
1353 * In the case where a request struct cannot be provided for queue @q
1354 * the process needs to wait for an request struct to become
1355 * available. This tracepoint event is generated each time the
1356 * process goes to sleep waiting for request struct become available.
1358 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_get_rq
, block_sleeprq
,
1360 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, int rw
),
1367 * block_plug - keep operations requests in request queue
1368 * @q: request queue to plug
1370 * Plug the request queue @q. Do not allow block operation requests
1371 * to be sent to the device driver. Instead, accumulate requests in
1372 * the queue to improve throughput performance of the block device.
1374 LTTNG_TRACEPOINT_EVENT(block_plug
,
1376 TP_PROTO(struct request_queue
*q
),
1381 ctf_integer(pid_t
, tid
, current
->pid
)
1382 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1386 LTTNG_TRACEPOINT_EVENT_CLASS(block_unplug
,
1388 TP_PROTO(struct request_queue
*q
, unsigned int depth
, bool explicit),
1390 TP_ARGS(q
, depth
, explicit),
1393 ctf_integer(int, nr_rq
, depth
)
1394 ctf_integer(pid_t
, tid
, current
->pid
)
1395 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1400 * block_unplug - release of operations requests in request queue
1401 * @q: request queue to unplug
1402 * @depth: number of requests just added to the queue
1403 * @explicit: whether this was an explicit unplug, or one from schedule()
1405 * Unplug request queue @q because device driver is scheduled to work
1406 * on elements in the request queue.
1408 LTTNG_TRACEPOINT_EVENT_INSTANCE(block_unplug
, block_unplug
,
1410 TP_PROTO(struct request_queue
*q
, unsigned int depth
, bool explicit),
1412 TP_ARGS(q
, depth
, explicit)
1415 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
1417 * block_split - split a single bio struct into two bio structs
1418 * @bio: block operation being split
1419 * @new_sector: The starting sector for the new bio
1421 * The bio request @bio needs to be split into two bio requests. The newly
1422 * created @bio request starts at @new_sector. This split may be required due to
1423 * hardware limitations such as operation crossing device boundaries in a RAID
1426 LTTNG_TRACEPOINT_EVENT(block_split
,
1428 TP_PROTO(struct bio
*bio
, unsigned int new_sector
),
1430 TP_ARGS(bio
, new_sector
),
1433 ctf_integer(dev_t
, dev
, bio_dev(bio
))
1434 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1435 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1436 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1437 bio
->bi_iter
.bi_size
)
1438 ctf_integer(sector_t
, new_sector
, new_sector
)
1439 ctf_integer(pid_t
, tid
, current
->pid
)
1440 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1444 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1446 * block_split - split a single bio struct into two bio structs
1447 * @q: queue containing the bio
1448 * @bio: block operation being split
1449 * @new_sector: The starting sector for the new bio
1451 * The bio request @bio in request queue @q needs to be split into two
1452 * bio requests. The newly created @bio request starts at
1453 * @new_sector. This split may be required due to hardware limitation
1454 * such as operation crossing device boundaries in a RAID system.
1456 LTTNG_TRACEPOINT_EVENT(block_split
,
1458 TP_PROTO(struct request_queue
*q
, struct bio
*bio
,
1459 unsigned int new_sector
),
1461 TP_ARGS(q
, bio
, new_sector
),
1464 ctf_integer(dev_t
, dev
, bio_dev(bio
))
1465 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1466 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1467 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1468 bio
->bi_iter
.bi_size
)
1469 ctf_integer(sector_t
, new_sector
, new_sector
)
1470 ctf_integer(pid_t
, tid
, current
->pid
)
1471 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1474 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0))
1475 LTTNG_TRACEPOINT_EVENT(block_split
,
1477 TP_PROTO(struct request_queue
*q
, struct bio
*bio
,
1478 unsigned int new_sector
),
1480 TP_ARGS(q
, bio
, new_sector
),
1483 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
1484 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1485 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1486 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1487 bio
->bi_iter
.bi_size
)
1488 ctf_integer(sector_t
, new_sector
, new_sector
)
1489 ctf_integer(pid_t
, tid
, current
->pid
)
1490 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1494 LTTNG_TRACEPOINT_EVENT(block_split
,
1496 TP_PROTO(struct request_queue
*q
, struct bio
*bio
,
1497 unsigned int new_sector
),
1499 TP_ARGS(q
, bio
, new_sector
),
1502 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
1503 ctf_integer(sector_t
, sector
, bio
->bi_sector
)
1504 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1505 lttng_bio_op(bio
), lttng_bio_rw(bio
), bio
->bi_size
)
1506 ctf_integer(sector_t
, new_sector
, new_sector
)
1507 ctf_integer(pid_t
, tid
, current
->pid
)
1508 ctf_array_text(char, comm
, current
->comm
, TASK_COMM_LEN
)
1513 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
1515 * block_bio_remap - map request for a logical device to the raw device
1516 * @bio: revised operation
1517 * @dev: original device for the operation
1518 * @from: original sector for the operation
1520 * An operation for a logical device has been mapped to the
1523 LTTNG_TRACEPOINT_EVENT(block_bio_remap
,
1525 TP_PROTO(struct bio
*bio
, dev_t dev
, sector_t from
),
1527 TP_ARGS(bio
, dev
, from
),
1530 ctf_integer(dev_t
, dev
, bio_dev(bio
))
1531 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1532 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
1533 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1534 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1535 bio
->bi_iter
.bi_size
)
1536 ctf_integer(dev_t
, old_dev
, dev
)
1537 ctf_integer(sector_t
, old_sector
, from
)
1540 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1542 * block_bio_remap - map request for a logical device to the raw device
1543 * @q: queue holding the operation
1544 * @bio: revised operation
1545 * @dev: device for the operation
1546 * @from: original sector for the operation
1548 * An operation for a logical device has been mapped to the
1551 LTTNG_TRACEPOINT_EVENT(block_bio_remap
,
1553 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, dev_t dev
,
1556 TP_ARGS(q
, bio
, dev
, from
),
1559 ctf_integer(dev_t
, dev
, bio_dev(bio
))
1560 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1561 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
1562 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1563 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1564 bio
->bi_iter
.bi_size
)
1565 ctf_integer(dev_t
, old_dev
, dev
)
1566 ctf_integer(sector_t
, old_sector
, from
)
1569 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,14,0))
1570 LTTNG_TRACEPOINT_EVENT(block_bio_remap
,
1572 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, dev_t dev
,
1575 TP_ARGS(q
, bio
, dev
, from
),
1578 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
1579 ctf_integer(sector_t
, sector
, bio
->bi_iter
.bi_sector
)
1580 ctf_integer(unsigned int, nr_sector
, bio_sectors(bio
))
1581 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1582 lttng_bio_op(bio
), lttng_bio_rw(bio
),
1583 bio
->bi_iter
.bi_size
)
1584 ctf_integer(dev_t
, old_dev
, dev
)
1585 ctf_integer(sector_t
, old_sector
, from
)
1589 LTTNG_TRACEPOINT_EVENT(block_bio_remap
,
1591 TP_PROTO(struct request_queue
*q
, struct bio
*bio
, dev_t dev
,
1594 TP_ARGS(q
, bio
, dev
, from
),
1597 ctf_integer(dev_t
, dev
, bio
->bi_bdev
->bd_dev
)
1598 ctf_integer(sector_t
, sector
, bio
->bi_sector
)
1599 ctf_integer(unsigned int, nr_sector
, bio
->bi_size
>> 9)
1600 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1601 lttng_bio_op(bio
), lttng_bio_rw(bio
), bio
->bi_size
)
1602 ctf_integer(dev_t
, old_dev
, dev
)
1603 ctf_integer(sector_t
, old_sector
, from
)
1608 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0))
1610 * block_rq_remap - map request for a block operation request
1611 * @rq: block IO operation request
1612 * @dev: device for the operation
1613 * @from: original sector for the operation
1615 * The block operation request @rq in @q has been remapped. The block
1616 * operation request @rq holds the current information and @from hold
1617 * the original sector.
1619 LTTNG_TRACEPOINT_EVENT(block_rq_remap
,
1621 TP_PROTO(struct request
*rq
, dev_t dev
, sector_t from
),
1623 TP_ARGS(rq
, dev
, from
),
1626 ctf_integer(dev_t
, dev
, disk_devt(rq
->q
->disk
))
1627 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
1628 ctf_integer(unsigned int, nr_sector
, blk_rq_sectors(rq
))
1629 ctf_integer(dev_t
, old_dev
, dev
)
1630 ctf_integer(sector_t
, old_sector
, from
)
1631 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1632 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
1635 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
1637 * block_rq_remap - map request for a block operation request
1638 * @rq: block IO operation request
1639 * @dev: device for the operation
1640 * @from: original sector for the operation
1642 * The block operation request @rq in @q has been remapped. The block
1643 * operation request @rq holds the current information and @from hold
1644 * the original sector.
1646 LTTNG_TRACEPOINT_EVENT(block_rq_remap
,
1648 TP_PROTO(struct request
*rq
, dev_t dev
, sector_t from
),
1650 TP_ARGS(rq
, dev
, from
),
1653 ctf_integer(dev_t
, dev
, disk_devt(rq
->rq_disk
))
1654 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
1655 ctf_integer(unsigned int, nr_sector
, blk_rq_sectors(rq
))
1656 ctf_integer(dev_t
, old_dev
, dev
)
1657 ctf_integer(sector_t
, old_sector
, from
)
1658 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1659 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
1664 * block_rq_remap - map request for a block operation request
1665 * @q: queue holding the operation
1666 * @rq: block IO operation request
1667 * @dev: device for the operation
1668 * @from: original sector for the operation
1670 * The block operation request @rq in @q has been remapped. The block
1671 * operation request @rq holds the current information and @from hold
1672 * the original sector.
1674 LTTNG_TRACEPOINT_EVENT(block_rq_remap
,
1676 TP_PROTO(struct request_queue
*q
, struct request
*rq
, dev_t dev
,
1679 TP_ARGS(q
, rq
, dev
, from
),
1682 ctf_integer(dev_t
, dev
, disk_devt(rq
->rq_disk
))
1683 ctf_integer(sector_t
, sector
, blk_rq_pos(rq
))
1684 ctf_integer(unsigned int, nr_sector
, blk_rq_sectors(rq
))
1685 ctf_integer(dev_t
, old_dev
, dev
)
1686 ctf_integer(sector_t
, old_sector
, from
)
1687 blk_rwbs_ctf_integer(unsigned int, rwbs
,
1688 lttng_req_op(rq
), lttng_req_rw(rq
), blk_rq_bytes(rq
))
1693 #undef __print_rwbs_flags
1694 #undef blk_fill_rwbs
1696 #endif /* LTTNG_TRACE_BLOCK_H */
1698 /* This part must be outside protection */
1699 #include <lttng/define_trace.h>
This page took 0.107522 seconds and 4 git commands to generate.