1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM btrfs
5 #if !defined(LTTNG_TRACE_BTRFS_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_BTRFS_H
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/writeback.h>
10 #include <lttng-kernel-version.h>
12 #ifndef _TRACE_BTRFS_DEF_
13 #define _TRACE_BTRFS_DEF_
18 struct btrfs_ordered_extent
;
19 struct btrfs_delayed_ref_node
;
20 struct btrfs_delayed_tree_ref
;
21 struct btrfs_delayed_data_ref
;
22 struct btrfs_delayed_ref_head
;
23 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
24 struct btrfs_block_group
;
25 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,3,0))
26 struct btrfs_block_group_cache
;
28 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,3,0))
29 struct btrfs_free_cluster
;
33 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,4,0))
38 #define BTRFS_UUID_SIZE 16
40 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,0,0))
41 #define lttng_fs_info_fsid fs_info->fs_devices->fsid
43 #define lttng_fs_info_fsid fs_info->fsid
46 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
47 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
48 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
49 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
50 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
51 LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit
,
53 TP_PROTO(const struct btrfs_root
*root
),
58 ctf_integer(u64
, generation
, root
->fs_info
->generation
)
59 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
63 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__inode
,
65 TP_PROTO(const struct inode
*inode
),
70 ctf_integer(ino_t
, ino
, inode
->i_ino
)
71 ctf_integer(blkcnt_t
, blocks
, inode
->i_blocks
)
72 ctf_integer(u64
, disk_i_size
, BTRFS_I(inode
)->disk_i_size
)
73 ctf_integer(u64
, generation
, BTRFS_I(inode
)->generation
)
74 ctf_integer(u64
, last_trans
, BTRFS_I(inode
)->last_trans
)
75 ctf_integer(u64
, logged_trans
, BTRFS_I(inode
)->logged_trans
)
76 ctf_integer(u64
, root_objectid
,
77 BTRFS_I(inode
)->root
->root_key
.objectid
)
81 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_new
,
83 TP_PROTO(const struct inode
*inode
),
88 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_request
,
90 TP_PROTO(const struct inode
*inode
),
95 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_evict
,
97 TP_PROTO(const struct inode
*inode
),
102 LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit
,
104 TP_PROTO(struct btrfs_root
*root
),
109 ctf_integer(u64
, generation
, root
->fs_info
->generation
)
110 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
114 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__inode
,
116 TP_PROTO(struct inode
*inode
),
121 ctf_integer(ino_t
, ino
, inode
->i_ino
)
122 ctf_integer(blkcnt_t
, blocks
, inode
->i_blocks
)
123 ctf_integer(u64
, disk_i_size
, BTRFS_I(inode
)->disk_i_size
)
124 ctf_integer(u64
, generation
, BTRFS_I(inode
)->generation
)
125 ctf_integer(u64
, last_trans
, BTRFS_I(inode
)->last_trans
)
126 ctf_integer(u64
, logged_trans
, BTRFS_I(inode
)->logged_trans
)
127 ctf_integer(u64
, root_objectid
,
128 BTRFS_I(inode
)->root
->root_key
.objectid
)
132 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_new
,
134 TP_PROTO(struct inode
*inode
),
139 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_request
,
141 TP_PROTO(struct inode
*inode
),
146 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_evict
,
148 TP_PROTO(struct inode
*inode
),
154 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
156 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
158 TP_PROTO(const struct btrfs_root
*root
, const struct btrfs_inode
*inode
,
159 const struct extent_map
*map
),
161 TP_ARGS(root
, inode
, map
),
164 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
165 ctf_integer(u64
, ino
, btrfs_ino(inode
))
166 ctf_integer(u64
, start
, map
->start
)
167 ctf_integer(u64
, len
, map
->len
)
168 ctf_integer(u64
, orig_start
, map
->orig_start
)
169 ctf_integer(u64
, block_start
, map
->block_start
)
170 ctf_integer(u64
, block_len
, map
->block_len
)
171 ctf_integer(unsigned long, flags
, map
->flags
)
172 ctf_integer(int, refs
, refcount_read(&map
->refs
))
173 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
177 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,12,0))
179 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
181 TP_PROTO(struct btrfs_root
*root
, struct btrfs_inode
*inode
,
182 struct extent_map
*map
),
184 TP_ARGS(root
, inode
, map
),
187 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
188 ctf_integer(u64
, ino
, btrfs_ino(inode
))
189 ctf_integer(u64
, start
, map
->start
)
190 ctf_integer(u64
, len
, map
->len
)
191 ctf_integer(u64
, orig_start
, map
->orig_start
)
192 ctf_integer(u64
, block_start
, map
->block_start
)
193 ctf_integer(u64
, block_len
, map
->block_len
)
194 ctf_integer(unsigned long, flags
, map
->flags
)
195 ctf_integer(int, refs
, refcount_read(&map
->refs
))
196 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
200 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0))
202 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
204 TP_PROTO(struct btrfs_root
*root
, struct btrfs_inode
*inode
,
205 struct extent_map
*map
),
207 TP_ARGS(root
, inode
, map
),
210 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
211 ctf_integer(u64
, ino
, btrfs_ino(inode
))
212 ctf_integer(u64
, start
, map
->start
)
213 ctf_integer(u64
, len
, map
->len
)
214 ctf_integer(u64
, orig_start
, map
->orig_start
)
215 ctf_integer(u64
, block_start
, map
->block_start
)
216 ctf_integer(u64
, block_len
, map
->block_len
)
217 ctf_integer(unsigned long, flags
, map
->flags
)
218 ctf_integer(int, refs
, atomic_read(&map
->refs
))
219 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
223 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0))
225 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
227 TP_PROTO(struct btrfs_root
*root
, struct inode
*inode
,
228 struct extent_map
*map
),
230 TP_ARGS(root
, inode
, map
),
233 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
234 ctf_integer(u64
, ino
, btrfs_ino(inode
))
235 ctf_integer(u64
, start
, map
->start
)
236 ctf_integer(u64
, len
, map
->len
)
237 ctf_integer(u64
, orig_start
, map
->orig_start
)
238 ctf_integer(u64
, block_start
, map
->block_start
)
239 ctf_integer(u64
, block_len
, map
->block_len
)
240 ctf_integer(unsigned long, flags
, map
->flags
)
241 ctf_integer(int, refs
, atomic_read(&map
->refs
))
242 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
246 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
247 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
248 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
249 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
251 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
253 TP_PROTO(const struct btrfs_root
*root
, const struct extent_map
*map
),
258 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
259 ctf_integer(u64
, start
, map
->start
)
260 ctf_integer(u64
, len
, map
->len
)
261 ctf_integer(u64
, orig_start
, map
->orig_start
)
262 ctf_integer(u64
, block_start
, map
->block_start
)
263 ctf_integer(u64
, block_len
, map
->block_len
)
264 ctf_integer(unsigned long, flags
, map
->flags
)
265 ctf_integer(int, refs
, atomic_read(&map
->refs
))
266 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
270 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) */
272 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
274 TP_PROTO(struct btrfs_root
*root
, struct extent_map
*map
),
279 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
280 ctf_integer(u64
, start
, map
->start
)
281 ctf_integer(u64
, len
, map
->len
)
282 ctf_integer(u64
, orig_start
, map
->orig_start
)
283 ctf_integer(u64
, block_start
, map
->block_start
)
284 ctf_integer(u64
, block_len
, map
->block_len
)
285 ctf_integer(unsigned long, flags
, map
->flags
)
286 ctf_integer(int, refs
, atomic_read(&map
->refs
))
287 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
291 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) */
293 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
294 LTTNG_TRACEPOINT_EVENT(btrfs_handle_em_exist
,
296 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
297 const struct extent_map
*existing
, const struct extent_map
*map
,
300 TP_ARGS(fs_info
, existing
, map
, start
, len
),
303 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
304 ctf_integer(u64
, e_start
, existing
->start
)
305 ctf_integer(u64
, e_len
, existing
->len
)
306 ctf_integer(u64
, map_start
, map
->start
)
307 ctf_integer(u64
, map_len
, map
->len
)
308 ctf_integer(u64
, start
, start
)
309 ctf_integer(u64
, len
, len
)
312 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,18,0))
313 LTTNG_TRACEPOINT_EVENT(btrfs_handle_em_exist
,
315 TP_PROTO(struct btrfs_fs_info
*fs_info
,
316 const struct extent_map
*existing
, const struct extent_map
*map
,
319 TP_ARGS(fs_info
, existing
, map
, start
, len
),
322 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
323 ctf_integer(u64
, e_start
, existing
->start
)
324 ctf_integer(u64
, e_len
, existing
->len
)
325 ctf_integer(u64
, map_start
, map
->start
)
326 ctf_integer(u64
, map_len
, map
->len
)
327 ctf_integer(u64
, start
, start
)
328 ctf_integer(u64
, len
, len
)
331 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,17,0))
332 LTTNG_TRACEPOINT_EVENT(btrfs_handle_em_exist
,
334 TP_PROTO(const struct extent_map
*existing
, const struct extent_map
*map
, u64 start
, u64 len
),
336 TP_ARGS(existing
, map
, start
, len
),
339 ctf_integer(u64
, e_start
, existing
->start
)
340 ctf_integer(u64
, e_len
, existing
->len
)
341 ctf_integer(u64
, map_start
, map
->start
)
342 ctf_integer(u64
, map_len
, map
->len
)
343 ctf_integer(u64
, start
, start
)
344 ctf_integer(u64
, len
, len
)
349 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,10,0))
350 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
352 TP_PROTO(const struct btrfs_inode
*inode
,
353 const struct btrfs_ordered_extent
*ordered
),
355 TP_ARGS(inode
, ordered
),
358 ctf_array(u8
, fsid
, inode
->root
->lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
359 ctf_integer(ino_t
, ino
, btrfs_ino(inode
))
360 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
361 ctf_integer(u64
, start
, ordered
->disk_bytenr
)
362 ctf_integer(u64
, len
, ordered
->num_bytes
)
363 ctf_integer(u64
, disk_len
, ordered
->disk_num_bytes
)
364 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
365 ctf_integer(unsigned long, flags
, ordered
->flags
)
366 ctf_integer(int, compress_type
, ordered
->compress_type
)
367 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
368 ctf_integer(u64
, root_objectid
, inode
->root
->root_key
.objectid
)
371 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0))
372 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
374 TP_PROTO(const struct inode
*inode
,
375 const struct btrfs_ordered_extent
*ordered
),
377 TP_ARGS(inode
, ordered
),
380 ctf_integer(ino_t
, ino
, inode
->i_ino
)
381 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
382 ctf_integer(u64
, start
, ordered
->disk_bytenr
)
383 ctf_integer(u64
, len
, ordered
->num_bytes
)
384 ctf_integer(u64
, disk_len
, ordered
->disk_num_bytes
)
385 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
386 ctf_integer(unsigned long, flags
, ordered
->flags
)
387 ctf_integer(int, compress_type
, ordered
->compress_type
)
388 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
389 ctf_integer(u64
, root_objectid
,
390 BTRFS_I(inode
)->root
->root_key
.objectid
)
393 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
394 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
396 TP_PROTO(const struct inode
*inode
,
397 const struct btrfs_ordered_extent
*ordered
),
399 TP_ARGS(inode
, ordered
),
402 ctf_integer(ino_t
, ino
, inode
->i_ino
)
403 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
404 ctf_integer(u64
, start
, ordered
->start
)
405 ctf_integer(u64
, len
, ordered
->len
)
406 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
407 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
408 ctf_integer(unsigned long, flags
, ordered
->flags
)
409 ctf_integer(int, compress_type
, ordered
->compress_type
)
410 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
411 ctf_integer(u64
, root_objectid
,
412 BTRFS_I(inode
)->root
->root_key
.objectid
)
415 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,12,0))
416 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
418 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
420 TP_ARGS(inode
, ordered
),
423 ctf_integer(ino_t
, ino
, inode
->i_ino
)
424 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
425 ctf_integer(u64
, start
, ordered
->start
)
426 ctf_integer(u64
, len
, ordered
->len
)
427 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
428 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
429 ctf_integer(unsigned long, flags
, ordered
->flags
)
430 ctf_integer(int, compress_type
, ordered
->compress_type
)
431 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
432 ctf_integer(u64
, root_objectid
,
433 BTRFS_I(inode
)->root
->root_key
.objectid
)
436 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
437 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
438 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
439 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
440 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
442 TP_PROTO(const struct inode
*inode
, const struct btrfs_ordered_extent
*ordered
),
444 TP_ARGS(inode
, ordered
),
447 ctf_integer(ino_t
, ino
, inode
->i_ino
)
448 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
449 ctf_integer(u64
, start
, ordered
->start
)
450 ctf_integer(u64
, len
, ordered
->len
)
451 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
452 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
453 ctf_integer(unsigned long, flags
, ordered
->flags
)
454 ctf_integer(int, compress_type
, ordered
->compress_type
)
455 ctf_integer(int, refs
, atomic_read(&ordered
->refs
))
456 ctf_integer(u64
, root_objectid
,
457 BTRFS_I(inode
)->root
->root_key
.objectid
)
461 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
463 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
465 TP_ARGS(inode
, ordered
),
468 ctf_integer(ino_t
, ino
, inode
->i_ino
)
469 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
470 ctf_integer(u64
, start
, ordered
->start
)
471 ctf_integer(u64
, len
, ordered
->len
)
472 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
473 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
474 ctf_integer(unsigned long, flags
, ordered
->flags
)
475 ctf_integer(int, compress_type
, ordered
->compress_type
)
476 ctf_integer(int, refs
, atomic_read(&ordered
->refs
))
477 ctf_integer(u64
, root_objectid
,
478 BTRFS_I(inode
)->root
->root_key
.objectid
)
483 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,10,0))
484 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_add
,
486 TP_PROTO(const struct btrfs_inode
*inode
,
487 const struct btrfs_ordered_extent
*ordered
),
489 TP_ARGS(inode
, ordered
)
492 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_remove
,
494 TP_PROTO(const struct btrfs_inode
*inode
,
495 const struct btrfs_ordered_extent
*ordered
),
497 TP_ARGS(inode
, ordered
)
500 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_start
,
502 TP_PROTO(const struct btrfs_inode
*inode
,
503 const struct btrfs_ordered_extent
*ordered
),
505 TP_ARGS(inode
, ordered
)
508 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_put
,
510 TP_PROTO(const struct btrfs_inode
*inode
,
511 const struct btrfs_ordered_extent
*ordered
),
513 TP_ARGS(inode
, ordered
)
515 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
516 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
517 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
518 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
519 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
520 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_add
,
522 TP_PROTO(const struct inode
*inode
,
523 const struct btrfs_ordered_extent
*ordered
),
525 TP_ARGS(inode
, ordered
)
528 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_remove
,
530 TP_PROTO(const struct inode
*inode
,
531 const struct btrfs_ordered_extent
*ordered
),
533 TP_ARGS(inode
, ordered
)
536 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_start
,
538 TP_PROTO(const struct inode
*inode
,
539 const struct btrfs_ordered_extent
*ordered
),
541 TP_ARGS(inode
, ordered
)
544 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_put
,
546 TP_PROTO(const struct inode
*inode
,
547 const struct btrfs_ordered_extent
*ordered
),
549 TP_ARGS(inode
, ordered
)
552 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_add
,
554 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
556 TP_ARGS(inode
, ordered
)
559 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_remove
,
561 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
563 TP_ARGS(inode
, ordered
)
566 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_start
,
568 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
570 TP_ARGS(inode
, ordered
)
573 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_put
,
575 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
577 TP_ARGS(inode
, ordered
)
581 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
582 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
583 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
584 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
585 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
586 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__writepage
,
588 TP_PROTO(const struct page
*page
, const struct inode
*inode
,
589 const struct writeback_control
*wbc
),
591 TP_ARGS(page
, inode
, wbc
),
594 ctf_integer(ino_t
, ino
, inode
->i_ino
)
595 ctf_integer(pgoff_t
, index
, page
->index
)
596 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
597 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
598 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
599 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
600 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
601 ctf_integer(char, for_reclaim
, wbc
->for_reclaim
)
602 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
603 ctf_integer(pgoff_t
, writeback_index
,
604 inode
->i_mapping
->writeback_index
)
605 ctf_integer(u64
, root_objectid
,
606 BTRFS_I(inode
)->root
->root_key
.objectid
)
610 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs__writepage
,
614 btrfs__extent_writepage
,
616 TP_PROTO(const struct page
*page
, const struct inode
*inode
,
617 const struct writeback_control
*wbc
),
619 TP_ARGS(page
, inode
, wbc
)
622 LTTNG_TRACEPOINT_EVENT(btrfs_writepage_end_io_hook
,
624 TP_PROTO(const struct page
*page
, u64 start
, u64 end
, int uptodate
),
626 TP_ARGS(page
, start
, end
, uptodate
),
629 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
630 ctf_integer(pgoff_t
, index
, page
->index
)
631 ctf_integer(u64
, start
, start
)
632 ctf_integer(u64
, end
, end
)
633 ctf_integer(int, uptodate
, uptodate
)
634 ctf_integer(u64
, root_objectid
,
635 BTRFS_I(page
->mapping
->host
)->root
->root_key
.objectid
)
639 LTTNG_TRACEPOINT_EVENT(btrfs_sync_file
,
641 TP_PROTO(const struct file
*file
, int datasync
),
643 TP_ARGS(file
, datasync
),
646 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
647 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
648 ctf_integer(int, datasync
, datasync
)
649 ctf_integer(u64
, root_objectid
,
650 BTRFS_I(file
->f_path
.dentry
->d_inode
)->root
->root_key
.objectid
)
654 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__writepage
,
656 TP_PROTO(struct page
*page
, struct inode
*inode
,
657 struct writeback_control
*wbc
),
659 TP_ARGS(page
, inode
, wbc
),
662 ctf_integer(ino_t
, ino
, inode
->i_ino
)
663 ctf_integer(pgoff_t
, index
, page
->index
)
664 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
665 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
666 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
667 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
668 #if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,1,0))
669 ctf_integer(char, nonblocking
, wbc
->nonblocking
)
671 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
672 ctf_integer(char, for_reclaim
, wbc
->for_reclaim
)
673 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
674 ctf_integer(pgoff_t
, writeback_index
,
675 inode
->i_mapping
->writeback_index
)
676 ctf_integer(u64
, root_objectid
,
677 BTRFS_I(inode
)->root
->root_key
.objectid
)
681 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs__writepage
,
685 btrfs__extent_writepage
,
687 TP_PROTO(struct page
*page
, struct inode
*inode
,
688 struct writeback_control
*wbc
),
690 TP_ARGS(page
, inode
, wbc
)
693 LTTNG_TRACEPOINT_EVENT(btrfs_writepage_end_io_hook
,
695 TP_PROTO(struct page
*page
, u64 start
, u64 end
, int uptodate
),
697 TP_ARGS(page
, start
, end
, uptodate
),
700 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
701 ctf_integer(pgoff_t
, index
, page
->index
)
702 ctf_integer(u64
, start
, start
)
703 ctf_integer(u64
, end
, end
)
704 ctf_integer(int, uptodate
, uptodate
)
705 ctf_integer(u64
, root_objectid
,
706 BTRFS_I(page
->mapping
->host
)->root
->root_key
.objectid
)
710 LTTNG_TRACEPOINT_EVENT(btrfs_sync_file
,
712 TP_PROTO(struct file
*file
, int datasync
),
714 TP_ARGS(file
, datasync
),
717 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
718 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
719 ctf_integer(int, datasync
, datasync
)
720 ctf_integer(u64
, root_objectid
,
721 BTRFS_I(file
->f_path
.dentry
->d_inode
)->root
->root_key
.objectid
)
726 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
727 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
728 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
729 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
730 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
731 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
732 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
733 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
734 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
736 TP_PROTO(const struct btrfs_fs_info
*fs_info
, int wait
),
738 TP_ARGS(fs_info
, wait
),
741 ctf_integer(int, wait
, wait
)
744 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
745 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
747 TP_PROTO(struct btrfs_fs_info
*fs_info
, int wait
),
749 TP_ARGS(fs_info
, wait
),
752 ctf_integer(int, wait
, wait
)
756 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
763 ctf_integer(int, wait
, wait
)
768 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
769 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
771 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
772 const struct btrfs_block_group
*block_group
, int create
),
774 TP_ARGS(fs_info
, block_group
, create
),
777 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
778 ctf_integer(u64
, offset
, block_group
->start
)
779 ctf_integer(u64
, size
, block_group
->length
)
780 ctf_integer(u64
, flags
, block_group
->flags
)
781 ctf_integer(u64
, bytes_used
, block_group
->used
)
782 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
783 ctf_integer(int, create
, create
)
786 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
787 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
788 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
789 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
790 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
791 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
793 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
794 const struct btrfs_block_group_cache
*block_group
, int create
),
796 TP_ARGS(fs_info
, block_group
, create
),
799 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
800 ctf_integer(u64
, offset
, block_group
->key
.objectid
)
801 ctf_integer(u64
, size
, block_group
->key
.offset
)
802 ctf_integer(u64
, flags
, block_group
->flags
)
803 ctf_integer(u64
, bytes_used
, btrfs_block_group_used(&block_group
->item
))
804 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
805 ctf_integer(int, create
, create
)
809 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
811 TP_PROTO(struct btrfs_fs_info
*fs_info
,
812 struct btrfs_block_group_cache
*block_group
, int create
),
814 TP_ARGS(fs_info
, block_group
, create
),
817 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
818 ctf_integer(u64
, offset
, block_group
->key
.objectid
)
819 ctf_integer(u64
, size
, block_group
->key
.offset
)
820 ctf_integer(u64
, flags
, block_group
->flags
)
821 ctf_integer(u64
, bytes_used
, btrfs_block_group_used(&block_group
->item
))
822 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
823 ctf_integer(int, create
, create
)
828 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
829 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
830 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
831 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
832 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
833 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
834 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
835 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
836 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
838 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
839 const struct btrfs_delayed_ref_node
*ref
,
840 const struct btrfs_delayed_tree_ref
*full_ref
,
843 TP_ARGS(fs_info
, ref
, full_ref
, action
),
846 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
847 ctf_integer(u64
, bytenr
, ref
->bytenr
)
848 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
849 ctf_integer(int, action
, action
)
850 ctf_integer(u64
, parent
, full_ref
->parent
)
851 ctf_integer(u64
, ref_root
, full_ref
->root
)
852 ctf_integer(int, level
, full_ref
->level
)
853 ctf_integer(int, type
, ref
->type
)
854 ctf_integer(u64
, seq
, ref
->seq
)
858 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
860 add_delayed_tree_ref
,
862 btrfs_add_delayed_tree_ref
,
864 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
865 const struct btrfs_delayed_ref_node
*ref
,
866 const struct btrfs_delayed_tree_ref
*full_ref
,
869 TP_ARGS(fs_info
, ref
, full_ref
, action
)
872 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
874 run_delayed_tree_ref
,
876 btrfs_run_delayed_tree_ref
,
878 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
879 const struct btrfs_delayed_ref_node
*ref
,
880 const struct btrfs_delayed_tree_ref
*full_ref
,
883 TP_ARGS(fs_info
, ref
, full_ref
, action
)
885 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
886 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
888 TP_PROTO(struct btrfs_fs_info
*fs_info
,
889 struct btrfs_delayed_ref_node
*ref
,
890 struct btrfs_delayed_tree_ref
*full_ref
,
893 TP_ARGS(fs_info
, ref
, full_ref
, action
),
896 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
897 ctf_integer(u64
, bytenr
, ref
->bytenr
)
898 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
899 ctf_integer(int, action
, action
)
900 ctf_integer(u64
, parent
, full_ref
->parent
)
901 ctf_integer(u64
, ref_root
, full_ref
->root
)
902 ctf_integer(int, level
, full_ref
->level
)
903 ctf_integer(int, type
, ref
->type
)
904 ctf_integer(u64
, seq
, ref
->seq
)
908 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
910 add_delayed_tree_ref
,
912 btrfs_add_delayed_tree_ref
,
914 TP_PROTO(struct btrfs_fs_info
*fs_info
,
915 struct btrfs_delayed_ref_node
*ref
,
916 struct btrfs_delayed_tree_ref
*full_ref
,
919 TP_ARGS(fs_info
, ref
, full_ref
, action
)
922 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
924 run_delayed_tree_ref
,
926 btrfs_run_delayed_tree_ref
,
928 TP_PROTO(struct btrfs_fs_info
*fs_info
,
929 struct btrfs_delayed_ref_node
*ref
,
930 struct btrfs_delayed_tree_ref
*full_ref
,
933 TP_ARGS(fs_info
, ref
, full_ref
, action
)
935 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,103,92,0,0, 4,5,0,0,0,0))
936 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
938 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
939 const struct btrfs_delayed_tree_ref
*full_ref
,
942 TP_ARGS(ref
, full_ref
, action
),
945 ctf_integer(u64
, bytenr
, ref
->bytenr
)
946 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
947 ctf_integer(int, action
, action
)
948 ctf_integer(u64
, parent
, full_ref
->parent
)
949 ctf_integer(u64
, ref_root
, full_ref
->root
)
950 ctf_integer(int, level
, full_ref
->level
)
951 ctf_integer(int, type
, ref
->type
)
952 ctf_integer(u64
, seq
, ref
->seq
)
956 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
958 add_delayed_tree_ref
,
960 btrfs_add_delayed_tree_ref
,
962 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
963 const struct btrfs_delayed_tree_ref
*full_ref
,
966 TP_ARGS(ref
, full_ref
, action
)
969 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
971 run_delayed_tree_ref
,
973 btrfs_run_delayed_tree_ref
,
975 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
976 const struct btrfs_delayed_tree_ref
*full_ref
,
979 TP_ARGS(ref
, full_ref
, action
)
981 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,12,0))
982 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
984 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
985 struct btrfs_delayed_tree_ref
*full_ref
,
988 TP_ARGS(ref
, full_ref
, action
),
991 ctf_integer(u64
, bytenr
, ref
->bytenr
)
992 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
993 ctf_integer(int, action
, action
)
994 ctf_integer(u64
, parent
, full_ref
->parent
)
995 ctf_integer(u64
, ref_root
, full_ref
->root
)
996 ctf_integer(int, level
, full_ref
->level
)
997 ctf_integer(int, type
, ref
->type
)
998 ctf_integer(u64
, seq
, ref
->seq
)
1002 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
1004 add_delayed_tree_ref
,
1006 btrfs_add_delayed_tree_ref
,
1008 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1009 struct btrfs_delayed_tree_ref
*full_ref
,
1012 TP_ARGS(ref
, full_ref
, action
)
1015 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
1017 run_delayed_tree_ref
,
1019 btrfs_run_delayed_tree_ref
,
1021 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1022 struct btrfs_delayed_tree_ref
*full_ref
,
1025 TP_ARGS(ref
, full_ref
, action
)
1027 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,7,0))
1028 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref
,
1030 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1031 struct btrfs_delayed_tree_ref
*full_ref
,
1034 TP_ARGS(ref
, full_ref
, action
),
1037 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1038 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1039 ctf_integer(int, action
, action
)
1040 ctf_integer(u64
, parent
, full_ref
->parent
)
1041 ctf_integer(u64
, ref_root
, full_ref
->root
)
1042 ctf_integer(int, level
, full_ref
->level
)
1043 ctf_integer(int, type
, ref
->type
)
1044 ctf_integer(u64
, seq
, ref
->seq
)
1048 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref
,
1050 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1051 struct btrfs_delayed_tree_ref
*full_ref
,
1054 TP_ARGS(ref
, full_ref
, action
),
1057 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1058 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1059 ctf_integer(int, action
, action
)
1060 ctf_integer(u64
, parent
, full_ref
->parent
)
1061 ctf_integer(u64
, ref_root
, full_ref
->root
)
1062 ctf_integer(int, level
, full_ref
->level
)
1063 ctf_integer(int, type
, ref
->type
)
1068 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
1069 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1070 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1071 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1072 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
1073 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
1074 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
1075 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
1076 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
1078 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1079 const struct btrfs_delayed_ref_node
*ref
,
1080 const struct btrfs_delayed_data_ref
*full_ref
,
1083 TP_ARGS(fs_info
, ref
, full_ref
, action
),
1086 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1087 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1088 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1089 ctf_integer(int, action
, action
)
1090 ctf_integer(u64
, parent
, full_ref
->parent
)
1091 ctf_integer(u64
, ref_root
, full_ref
->root
)
1092 ctf_integer(u64
, owner
, full_ref
->objectid
)
1093 ctf_integer(u64
, offset
, full_ref
->offset
)
1094 ctf_integer(int, type
, ref
->type
)
1095 ctf_integer(u64
, seq
, ref
->seq
)
1099 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1101 add_delayed_data_ref
,
1103 btrfs_add_delayed_data_ref
,
1105 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1106 const struct btrfs_delayed_ref_node
*ref
,
1107 const struct btrfs_delayed_data_ref
*full_ref
,
1110 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1113 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1115 run_delayed_data_ref
,
1117 btrfs_run_delayed_data_ref
,
1119 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1120 const struct btrfs_delayed_ref_node
*ref
,
1121 const struct btrfs_delayed_data_ref
*full_ref
,
1124 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1126 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
1127 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
1129 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1130 struct btrfs_delayed_ref_node
*ref
,
1131 struct btrfs_delayed_data_ref
*full_ref
,
1134 TP_ARGS(fs_info
, ref
, full_ref
, action
),
1137 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1138 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1139 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1140 ctf_integer(int, action
, action
)
1141 ctf_integer(u64
, parent
, full_ref
->parent
)
1142 ctf_integer(u64
, ref_root
, full_ref
->root
)
1143 ctf_integer(u64
, owner
, full_ref
->objectid
)
1144 ctf_integer(u64
, offset
, full_ref
->offset
)
1145 ctf_integer(int, type
, ref
->type
)
1146 ctf_integer(u64
, seq
, ref
->seq
)
1150 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1152 add_delayed_data_ref
,
1154 btrfs_add_delayed_data_ref
,
1156 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1157 struct btrfs_delayed_ref_node
*ref
,
1158 struct btrfs_delayed_data_ref
*full_ref
,
1161 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1164 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1166 run_delayed_data_ref
,
1168 btrfs_run_delayed_data_ref
,
1170 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1171 struct btrfs_delayed_ref_node
*ref
,
1172 struct btrfs_delayed_data_ref
*full_ref
,
1175 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1177 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,103,92,0,0, 4,5,0,0,0,0))
1178 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
1180 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1181 const struct btrfs_delayed_data_ref
*full_ref
,
1184 TP_ARGS(ref
, full_ref
, action
),
1187 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1188 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1189 ctf_integer(int, action
, action
)
1190 ctf_integer(u64
, parent
, full_ref
->parent
)
1191 ctf_integer(u64
, ref_root
, full_ref
->root
)
1192 ctf_integer(u64
, owner
, full_ref
->objectid
)
1193 ctf_integer(u64
, offset
, full_ref
->offset
)
1194 ctf_integer(int, type
, ref
->type
)
1195 ctf_integer(u64
, seq
, ref
->seq
)
1199 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1201 add_delayed_data_ref
,
1203 btrfs_add_delayed_data_ref
,
1205 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1206 const struct btrfs_delayed_data_ref
*full_ref
,
1209 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1212 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1214 run_delayed_data_ref
,
1216 btrfs_run_delayed_data_ref
,
1218 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1219 const struct btrfs_delayed_data_ref
*full_ref
,
1222 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1224 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,12,0))
1225 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
1227 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1228 struct btrfs_delayed_data_ref
*full_ref
,
1231 TP_ARGS(ref
, full_ref
, action
),
1234 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1235 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1236 ctf_integer(int, action
, action
)
1237 ctf_integer(u64
, parent
, full_ref
->parent
)
1238 ctf_integer(u64
, ref_root
, full_ref
->root
)
1239 ctf_integer(u64
, owner
, full_ref
->objectid
)
1240 ctf_integer(u64
, offset
, full_ref
->offset
)
1241 ctf_integer(int, type
, ref
->type
)
1242 ctf_integer(u64
, seq
, ref
->seq
)
1246 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1248 add_delayed_data_ref
,
1250 btrfs_add_delayed_data_ref
,
1252 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1253 struct btrfs_delayed_data_ref
*full_ref
,
1256 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1259 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1261 run_delayed_data_ref
,
1263 btrfs_run_delayed_data_ref
,
1265 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1266 struct btrfs_delayed_data_ref
*full_ref
,
1269 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1271 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,7,0))
1272 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_data_ref
,
1274 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1275 struct btrfs_delayed_data_ref
*full_ref
,
1278 TP_ARGS(ref
, full_ref
, action
),
1281 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1282 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1283 ctf_integer(int, action
, action
)
1284 ctf_integer(u64
, parent
, full_ref
->parent
)
1285 ctf_integer(u64
, ref_root
, full_ref
->root
)
1286 ctf_integer(u64
, owner
, full_ref
->objectid
)
1287 ctf_integer(u64
, offset
, full_ref
->offset
)
1288 ctf_integer(int, type
, ref
->type
)
1289 ctf_integer(u64
, seq
, ref
->seq
)
1293 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_data_ref
,
1295 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1296 struct btrfs_delayed_data_ref
*full_ref
,
1299 TP_ARGS(ref
, full_ref
, action
),
1302 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1303 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1304 ctf_integer(int, action
, action
)
1305 ctf_integer(u64
, parent
, full_ref
->parent
)
1306 ctf_integer(u64
, ref_root
, full_ref
->root
)
1307 ctf_integer(u64
, owner
, full_ref
->objectid
)
1308 ctf_integer(u64
, offset
, full_ref
->offset
)
1309 ctf_integer(int, type
, ref
->type
)
1314 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,15,0))
1315 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1317 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1318 const struct btrfs_delayed_ref_head
*head_ref
,
1321 TP_ARGS(fs_info
, head_ref
, action
),
1324 ctf_integer(u64
, bytenr
, head_ref
->bytenr
)
1325 ctf_integer(u64
, num_bytes
, head_ref
->num_bytes
)
1326 ctf_integer(int, action
, action
)
1327 ctf_integer(int, is_data
, head_ref
->is_data
)
1331 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1333 add_delayed_ref_head
,
1335 btrfs_add_delayed_ref_head
,
1337 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1338 const struct btrfs_delayed_ref_head
*head_ref
,
1341 TP_ARGS(fs_info
, head_ref
, action
)
1344 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1346 run_delayed_ref_head
,
1348 btrfs_run_delayed_ref_head
,
1350 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1351 const struct btrfs_delayed_ref_head
*head_ref
,
1354 TP_ARGS(fs_info
, head_ref
, action
)
1357 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
1358 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1359 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1360 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1361 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
1362 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
1363 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
1364 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
1366 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1368 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1369 const struct btrfs_delayed_ref_node
*ref
,
1370 const struct btrfs_delayed_ref_head
*head_ref
,
1373 TP_ARGS(fs_info
, ref
, head_ref
, action
),
1376 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1377 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1378 ctf_integer(int, action
, action
)
1379 ctf_integer(int, is_data
, head_ref
->is_data
)
1383 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1385 add_delayed_ref_head
,
1387 btrfs_add_delayed_ref_head
,
1389 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1390 const struct btrfs_delayed_ref_node
*ref
,
1391 const struct btrfs_delayed_ref_head
*head_ref
,
1394 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1397 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1399 run_delayed_ref_head
,
1401 btrfs_run_delayed_ref_head
,
1403 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1404 const struct btrfs_delayed_ref_node
*ref
,
1405 const struct btrfs_delayed_ref_head
*head_ref
,
1408 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1411 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
1412 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1414 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1415 struct btrfs_delayed_ref_node
*ref
,
1416 struct btrfs_delayed_ref_head
*head_ref
,
1419 TP_ARGS(fs_info
, ref
, head_ref
, action
),
1422 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1423 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1424 ctf_integer(int, action
, action
)
1425 ctf_integer(int, is_data
, head_ref
->is_data
)
1429 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1431 add_delayed_ref_head
,
1433 btrfs_add_delayed_ref_head
,
1435 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1436 struct btrfs_delayed_ref_node
*ref
,
1437 struct btrfs_delayed_ref_head
*head_ref
,
1440 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1443 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1445 run_delayed_ref_head
,
1447 btrfs_run_delayed_ref_head
,
1449 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1450 struct btrfs_delayed_ref_node
*ref
,
1451 struct btrfs_delayed_ref_head
*head_ref
,
1454 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1457 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,103,92,0,0, 4,5,0,0,0,0))
1458 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1460 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1461 const struct btrfs_delayed_ref_head
*head_ref
,
1464 TP_ARGS(ref
, head_ref
, action
),
1467 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1468 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1469 ctf_integer(int, action
, action
)
1470 ctf_integer(int, is_data
, head_ref
->is_data
)
1474 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1476 add_delayed_ref_head
,
1478 btrfs_add_delayed_ref_head
,
1480 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1481 const struct btrfs_delayed_ref_head
*head_ref
,
1484 TP_ARGS(ref
, head_ref
, action
)
1487 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1489 run_delayed_ref_head
,
1491 btrfs_run_delayed_ref_head
,
1493 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1494 const struct btrfs_delayed_ref_head
*head_ref
,
1497 TP_ARGS(ref
, head_ref
, action
)
1500 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,12,0))
1501 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1503 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1504 struct btrfs_delayed_ref_head
*head_ref
,
1507 TP_ARGS(ref
, head_ref
, action
),
1510 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1511 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1512 ctf_integer(int, action
, action
)
1513 ctf_integer(int, is_data
, head_ref
->is_data
)
1517 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1519 add_delayed_ref_head
,
1521 btrfs_add_delayed_ref_head
,
1523 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1524 struct btrfs_delayed_ref_head
*head_ref
,
1527 TP_ARGS(ref
, head_ref
, action
)
1530 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1532 run_delayed_ref_head
,
1534 btrfs_run_delayed_ref_head
,
1536 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1537 struct btrfs_delayed_ref_head
*head_ref
,
1540 TP_ARGS(ref
, head_ref
, action
)
1544 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_ref_head
,
1546 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1547 struct btrfs_delayed_ref_head
*head_ref
,
1550 TP_ARGS(ref
, head_ref
, action
),
1553 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1554 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1555 ctf_integer(int, action
, action
)
1556 ctf_integer(int, is_data
, head_ref
->is_data
)
1561 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1563 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1565 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const struct map_lookup
*map
,
1566 u64 offset
, u64 size
),
1568 TP_ARGS(fs_info
, map
, offset
, size
),
1571 ctf_integer(int, num_stripes
, map
->num_stripes
)
1572 ctf_integer(u64
, type
, map
->type
)
1573 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1574 ctf_integer(u64
, offset
, offset
)
1575 ctf_integer(u64
, size
, size
)
1576 ctf_integer(u64
, root_objectid
, fs_info
->chunk_root
->root_key
.objectid
)
1580 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1582 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const struct map_lookup
*map
,
1583 u64 offset
, u64 size
),
1585 TP_ARGS(fs_info
, map
, offset
, size
)
1588 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1590 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const struct map_lookup
*map
,
1591 u64 offset
, u64 size
),
1593 TP_ARGS(fs_info
, map
, offset
, size
)
1596 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0))
1598 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1600 TP_PROTO(struct btrfs_fs_info
*fs_info
, struct map_lookup
*map
,
1601 u64 offset
, u64 size
),
1603 TP_ARGS(fs_info
, map
, offset
, size
),
1606 ctf_integer(int, num_stripes
, map
->num_stripes
)
1607 ctf_integer(u64
, type
, map
->type
)
1608 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1609 ctf_integer(u64
, offset
, offset
)
1610 ctf_integer(u64
, size
, size
)
1611 ctf_integer(u64
, root_objectid
, fs_info
->chunk_root
->root_key
.objectid
)
1615 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1617 TP_PROTO(struct btrfs_fs_info
*fs_info
, struct map_lookup
*map
,
1618 u64 offset
, u64 size
),
1620 TP_ARGS(fs_info
, map
, offset
, size
)
1623 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1625 TP_PROTO(struct btrfs_fs_info
*fs_info
, struct map_lookup
*map
,
1626 u64 offset
, u64 size
),
1628 TP_ARGS(fs_info
, map
, offset
, size
)
1631 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1632 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1633 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1634 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1636 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1638 TP_PROTO(const struct btrfs_root
*root
, const struct map_lookup
*map
,
1639 u64 offset
, u64 size
),
1641 TP_ARGS(root
, map
, offset
, size
),
1644 ctf_integer(int, num_stripes
, map
->num_stripes
)
1645 ctf_integer(u64
, type
, map
->type
)
1646 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1647 ctf_integer(u64
, offset
, offset
)
1648 ctf_integer(u64
, size
, size
)
1649 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1653 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1655 TP_PROTO(const struct btrfs_root
*root
, const struct map_lookup
*map
,
1656 u64 offset
, u64 size
),
1658 TP_ARGS(root
, map
, offset
, size
)
1661 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1663 TP_PROTO(const struct btrfs_root
*root
, const struct map_lookup
*map
,
1664 u64 offset
, u64 size
),
1666 TP_ARGS(root
, map
, offset
, size
)
1669 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) */
1671 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1673 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
1674 u64 offset
, u64 size
),
1676 TP_ARGS(root
, map
, offset
, size
),
1679 ctf_integer(int, num_stripes
, map
->num_stripes
)
1680 ctf_integer(u64
, type
, map
->type
)
1681 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1682 ctf_integer(u64
, offset
, offset
)
1683 ctf_integer(u64
, size
, size
)
1684 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1688 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1690 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
1691 u64 offset
, u64 size
),
1693 TP_ARGS(root
, map
, offset
, size
)
1696 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1698 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
1699 u64 offset
, u64 size
),
1701 TP_ARGS(root
, map
, offset
, size
)
1704 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) */
1706 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
1707 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1708 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1709 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1710 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1711 LTTNG_TRACEPOINT_EVENT(btrfs_cow_block
,
1713 TP_PROTO(const struct btrfs_root
*root
, const struct extent_buffer
*buf
,
1714 const struct extent_buffer
*cow
),
1716 TP_ARGS(root
, buf
, cow
),
1719 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1720 ctf_integer(u64
, buf_start
, buf
->start
)
1721 ctf_integer(int, refs
, atomic_read(&buf
->refs
))
1722 ctf_integer(u64
, cow_start
, cow
->start
)
1723 ctf_integer(int, buf_level
, btrfs_header_level(buf
))
1724 ctf_integer(int, cow_level
, btrfs_header_level(cow
))
1728 LTTNG_TRACEPOINT_EVENT(btrfs_cow_block
,
1730 TP_PROTO(struct btrfs_root
*root
, struct extent_buffer
*buf
,
1731 struct extent_buffer
*cow
),
1733 TP_ARGS(root
, buf
, cow
),
1736 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1737 ctf_integer(u64
, buf_start
, buf
->start
)
1738 ctf_integer(int, refs
, atomic_read(&buf
->refs
))
1739 ctf_integer(u64
, cow_start
, cow
->start
)
1740 ctf_integer(int, buf_level
, btrfs_header_level(buf
))
1741 ctf_integer(int, cow_level
, btrfs_header_level(cow
))
1746 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
1747 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
1749 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const char *type
, u64 val
,
1750 u64 bytes
, int reserve
),
1752 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
1755 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1756 ctf_string(type
, type
)
1757 ctf_integer(u64
, val
, val
)
1758 ctf_integer(u64
, bytes
, bytes
)
1759 ctf_integer(int, reserve
, reserve
)
1762 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
1763 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1764 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1765 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1766 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1767 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
1769 TP_PROTO(const struct btrfs_fs_info
*fs_info
, char *type
, u64 val
,
1770 u64 bytes
, int reserve
),
1772 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
1775 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1776 ctf_string(type
, type
)
1777 ctf_integer(u64
, val
, val
)
1778 ctf_integer(u64
, bytes
, bytes
)
1779 ctf_integer(int, reserve
, reserve
)
1782 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,3,0))
1783 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
1785 TP_PROTO(struct btrfs_fs_info
*fs_info
, char *type
, u64 val
,
1786 u64 bytes
, int reserve
),
1788 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
1791 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1792 ctf_string(type
, type
)
1793 ctf_integer(u64
, val
, val
)
1794 ctf_integer(u64
, bytes
, bytes
)
1795 ctf_integer(int, reserve
, reserve
)
1800 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1802 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1804 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1806 TP_ARGS(fs_info
, start
, len
),
1809 ctf_integer(u64
, start
, start
)
1810 ctf_integer(u64
, len
, len
)
1814 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1816 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1818 TP_ARGS(fs_info
, start
, len
)
1821 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1823 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1825 TP_ARGS(fs_info
, start
, len
)
1828 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0))
1830 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1832 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1834 TP_ARGS(fs_info
, start
, len
),
1837 ctf_integer(u64
, start
, start
)
1838 ctf_integer(u64
, len
, len
)
1842 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1844 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1846 TP_ARGS(fs_info
, start
, len
)
1849 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1851 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1853 TP_ARGS(fs_info
, start
, len
)
1856 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1857 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1858 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1859 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1861 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1863 TP_PROTO(const struct btrfs_root
*root
, u64 start
, u64 len
),
1865 TP_ARGS(root
, start
, len
),
1868 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1869 ctf_integer(u64
, start
, start
)
1870 ctf_integer(u64
, len
, len
)
1874 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1876 TP_PROTO(const struct btrfs_root
*root
, u64 start
, u64 len
),
1878 TP_ARGS(root
, start
, len
)
1881 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1883 TP_PROTO(const struct btrfs_root
*root
, u64 start
, u64 len
),
1885 TP_ARGS(root
, start
, len
)
1888 #else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) */
1890 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1892 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
1894 TP_ARGS(root
, start
, len
),
1897 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1898 ctf_integer(u64
, start
, start
)
1899 ctf_integer(u64
, len
, len
)
1903 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1905 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
1907 TP_ARGS(root
, start
, len
)
1910 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1912 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
1914 TP_ARGS(root
, start
, len
)
1917 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) */
1919 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,10,0) || \
1920 LTTNG_KERNEL_RANGE(5,9,5, 5,10,0) || \
1921 LTTNG_KERNEL_RANGE(5,4,78, 5,5,0) || \
1922 LTTNG_UBUNTU_KERNEL_RANGE(5,8,18,44, 5,9,0,0))
1923 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1925 btrfs_find_free_extent
,
1927 TP_PROTO(const struct btrfs_root
*root
, u64 num_bytes
, u64 empty_size
,
1930 TP_ARGS(root
, num_bytes
, empty_size
, data
),
1933 ctf_array(u8
, fsid
, root
->lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1934 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1935 ctf_integer(u64
, num_bytes
, num_bytes
)
1936 ctf_integer(u64
, empty_size
, empty_size
)
1937 ctf_integer(u64
, data
, data
)
1941 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
1943 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1945 btrfs_find_free_extent
,
1947 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
1950 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
1953 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1954 ctf_integer(u64
, num_bytes
, num_bytes
)
1955 ctf_integer(u64
, empty_size
, empty_size
)
1956 ctf_integer(u64
, data
, data
)
1960 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,18,0))
1962 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1964 btrfs_find_free_extent
,
1966 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
1969 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
1972 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1973 ctf_integer(u64
, num_bytes
, num_bytes
)
1974 ctf_integer(u64
, empty_size
, empty_size
)
1975 ctf_integer(u64
, data
, data
)
1979 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
1981 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1983 btrfs_find_free_extent
,
1985 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
1988 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
1991 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1992 ctf_integer(u64
, num_bytes
, num_bytes
)
1993 ctf_integer(u64
, empty_size
, empty_size
)
1994 ctf_integer(u64
, data
, data
)
1998 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0))
2000 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
2002 btrfs_find_free_extent
,
2004 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
2007 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
2010 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
2011 ctf_integer(u64
, num_bytes
, num_bytes
)
2012 ctf_integer(u64
, empty_size
, empty_size
)
2013 ctf_integer(u64
, data
, data
)
2017 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
2018 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
2019 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
2020 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
2022 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
2024 btrfs_find_free_extent
,
2026 TP_PROTO(const struct btrfs_root
*root
, u64 num_bytes
, u64 empty_size
,
2029 TP_ARGS(root
, num_bytes
, empty_size
, data
),
2032 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2033 ctf_integer(u64
, num_bytes
, num_bytes
)
2034 ctf_integer(u64
, empty_size
, empty_size
)
2035 ctf_integer(u64
, data
, data
)
2038 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,3,0))
2040 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
2042 btrfs_find_free_extent
,
2044 TP_PROTO(struct btrfs_root
*root
, u64 num_bytes
, u64 empty_size
,
2047 TP_ARGS(root
, num_bytes
, empty_size
, data
),
2050 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2051 ctf_integer(u64
, num_bytes
, num_bytes
)
2052 ctf_integer(u64
, empty_size
, empty_size
)
2053 ctf_integer(u64
, data
, data
)
2058 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
2059 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2061 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
2064 TP_ARGS(block_group
, start
, len
),
2067 ctf_array(u8
, fsid
, block_group
->lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
2068 ctf_integer(u64
, bg_objectid
, block_group
->start
)
2069 ctf_integer(u64
, flags
, block_group
->flags
)
2070 ctf_integer(u64
, start
, start
)
2071 ctf_integer(u64
, len
, len
)
2075 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2077 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
2080 TP_ARGS(block_group
, start
, len
)
2083 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2085 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
2088 TP_ARGS(block_group
, start
, len
)
2091 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,18,0))
2093 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2095 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
2098 TP_ARGS(block_group
, start
, len
),
2101 ctf_array(u8
, fsid
, block_group
->lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
2102 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2103 ctf_integer(u64
, flags
, block_group
->flags
)
2104 ctf_integer(u64
, start
, start
)
2105 ctf_integer(u64
, len
, len
)
2109 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2111 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
2114 TP_ARGS(block_group
, start
, len
)
2117 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2119 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
2122 TP_ARGS(block_group
, start
, len
)
2125 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
2127 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2129 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
2130 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2133 TP_ARGS(fs_info
, block_group
, start
, len
),
2136 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
2137 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2138 ctf_integer(u64
, flags
, block_group
->flags
)
2139 ctf_integer(u64
, start
, start
)
2140 ctf_integer(u64
, len
, len
)
2144 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2146 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
2147 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2150 TP_ARGS(fs_info
, block_group
, start
, len
)
2153 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2155 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
2156 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2159 TP_ARGS(fs_info
, block_group
, start
, len
)
2162 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0))
2164 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2166 TP_PROTO(struct btrfs_fs_info
*fs_info
,
2167 struct btrfs_block_group_cache
*block_group
, u64 start
,
2170 TP_ARGS(fs_info
, block_group
, start
, len
),
2173 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2174 ctf_integer(u64
, flags
, block_group
->flags
)
2175 ctf_integer(u64
, start
, start
)
2176 ctf_integer(u64
, len
, len
)
2180 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2182 TP_PROTO(struct btrfs_fs_info
*fs_info
,
2183 struct btrfs_block_group_cache
*block_group
, u64 start
,
2186 TP_ARGS(fs_info
, block_group
, start
, len
)
2189 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2191 TP_PROTO(struct btrfs_fs_info
*fs_info
,
2192 struct btrfs_block_group_cache
*block_group
, u64 start
,
2195 TP_ARGS(fs_info
, block_group
, start
, len
)
2197 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
2198 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
2199 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
2200 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
2202 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2204 TP_PROTO(const struct btrfs_root
*root
,
2205 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2208 TP_ARGS(root
, block_group
, start
, len
),
2211 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2212 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2213 ctf_integer(u64
, flags
, block_group
->flags
)
2214 ctf_integer(u64
, start
, start
)
2215 ctf_integer(u64
, len
, len
)
2219 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2221 TP_PROTO(const struct btrfs_root
*root
,
2222 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2225 TP_ARGS(root
, block_group
, start
, len
)
2228 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2230 TP_PROTO(const struct btrfs_root
*root
,
2231 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2234 TP_ARGS(root
, block_group
, start
, len
)
2237 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,3,0))
2239 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2241 TP_PROTO(struct btrfs_root
*root
,
2242 struct btrfs_block_group_cache
*block_group
, u64 start
,
2245 TP_ARGS(root
, block_group
, start
, len
),
2248 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2249 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2250 ctf_integer(u64
, flags
, block_group
->flags
)
2251 ctf_integer(u64
, start
, start
)
2252 ctf_integer(u64
, len
, len
)
2256 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2258 TP_PROTO(struct btrfs_root
*root
,
2259 struct btrfs_block_group_cache
*block_group
, u64 start
,
2262 TP_ARGS(root
, block_group
, start
, len
)
2265 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2267 TP_PROTO(struct btrfs_root
*root
,
2268 struct btrfs_block_group_cache
*block_group
, u64 start
,
2271 TP_ARGS(root
, block_group
, start
, len
)
2274 #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) */
2276 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
2277 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
2279 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
2280 u64 bytes
, u64 empty_size
, u64 min_bytes
),
2282 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
2285 ctf_integer(u64
, bg_objectid
, block_group
->start
)
2286 ctf_integer(u64
, flags
, block_group
->flags
)
2287 ctf_integer(u64
, start
, start
)
2288 ctf_integer(u64
, bytes
, bytes
)
2289 ctf_integer(u64
, empty_size
, empty_size
)
2290 ctf_integer(u64
, min_bytes
, min_bytes
)
2294 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
2296 TP_PROTO(const struct btrfs_block_group
*block_group
),
2298 TP_ARGS(block_group
),
2301 ctf_integer(u64
, bg_objectid
, block_group
->start
)
2305 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
2307 TP_PROTO(const struct btrfs_block_group
*block_group
,
2308 const struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
2310 TP_ARGS(block_group
, cluster
, size
, bitmap
),
2313 ctf_integer(u64
, bg_objectid
, block_group
->start
)
2314 ctf_integer(u64
, flags
, block_group
->flags
)
2315 ctf_integer(u64
, start
, cluster
->window_start
)
2316 ctf_integer(u64
, max_size
, cluster
->max_size
)
2317 ctf_integer(u64
, size
, size
)
2318 ctf_integer(int, bitmap
, bitmap
)
2321 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
2322 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
2323 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
2324 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
2325 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
2326 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
2328 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
2329 u64 bytes
, u64 empty_size
, u64 min_bytes
),
2331 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
2334 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2335 ctf_integer(u64
, flags
, block_group
->flags
)
2336 ctf_integer(u64
, start
, start
)
2337 ctf_integer(u64
, bytes
, bytes
)
2338 ctf_integer(u64
, empty_size
, empty_size
)
2339 ctf_integer(u64
, min_bytes
, min_bytes
)
2343 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
2345 TP_PROTO(const struct btrfs_block_group_cache
*block_group
),
2347 TP_ARGS(block_group
),
2350 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2354 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
2356 TP_PROTO(const struct btrfs_block_group_cache
*block_group
,
2357 const struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
2359 TP_ARGS(block_group
, cluster
, size
, bitmap
),
2362 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2363 ctf_integer(u64
, flags
, block_group
->flags
)
2364 ctf_integer(u64
, start
, cluster
->window_start
)
2365 ctf_integer(u64
, max_size
, cluster
->max_size
)
2366 ctf_integer(u64
, size
, size
)
2367 ctf_integer(int, bitmap
, bitmap
)
2370 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,3,0))
2371 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
2373 TP_PROTO(struct btrfs_block_group_cache
*block_group
, u64 start
,
2374 u64 bytes
, u64 empty_size
, u64 min_bytes
),
2376 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
2379 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2380 ctf_integer(u64
, flags
, block_group
->flags
)
2381 ctf_integer(u64
, start
, start
)
2382 ctf_integer(u64
, bytes
, bytes
)
2383 ctf_integer(u64
, empty_size
, empty_size
)
2384 ctf_integer(u64
, min_bytes
, min_bytes
)
2388 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
2390 TP_PROTO(struct btrfs_block_group_cache
*block_group
),
2392 TP_ARGS(block_group
),
2395 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2399 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
2401 TP_PROTO(struct btrfs_block_group_cache
*block_group
,
2402 struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
2404 TP_ARGS(block_group
, cluster
, size
, bitmap
),
2407 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2408 ctf_integer(u64
, flags
, block_group
->flags
)
2409 ctf_integer(u64
, start
, cluster
->window_start
)
2410 ctf_integer(u64
, max_size
, cluster
->max_size
)
2411 ctf_integer(u64
, size
, size
)
2412 ctf_integer(int, bitmap
, bitmap
)
2417 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \
2418 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
2419 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
2420 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
2421 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
2422 LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state
,
2424 btrfs_alloc_extent_state
,
2426 TP_PROTO(const struct extent_state
*state
, gfp_t mask
, unsigned long IP
),
2428 TP_ARGS(state
, mask
, IP
),
2431 ctf_integer_hex(const struct extent_state
*, state
, state
)
2432 ctf_integer(gfp_t
, mask
, mask
)
2433 ctf_integer(unsigned long, ip
, IP
)
2437 LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state
,
2439 btrfs_free_extent_state
,
2441 TP_PROTO(const struct extent_state
*state
, unsigned long IP
),
2446 ctf_integer_hex(const struct extent_state
*, state
, state
)
2447 ctf_integer(unsigned long, ip
, IP
)
2450 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,4,0))
2451 LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state
,
2453 btrfs_alloc_extent_state
,
2455 TP_PROTO(struct extent_state
*state
, gfp_t mask
, unsigned long IP
),
2457 TP_ARGS(state
, mask
, IP
),
2460 ctf_integer_hex(struct extent_state
*, state
, state
)
2461 ctf_integer(gfp_t
, mask
, mask
)
2462 ctf_integer(unsigned long, ip
, IP
)
2466 LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state
,
2468 btrfs_free_extent_state
,
2470 TP_PROTO(struct extent_state
*state
, unsigned long IP
),
2475 ctf_integer_hex(struct extent_state
*, state
, state
)
2476 ctf_integer(unsigned long, ip
, IP
)
2481 #endif /* LTTNG_TRACE_BTRFS_H */
2483 /* This part must be outside protection */
2484 #include <probes/define_trace.h>