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 <linux/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 (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0))
24 struct btrfs_block_group
;
25 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
26 struct btrfs_block_group_cache
;
28 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
29 struct btrfs_free_cluster
;
33 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
38 #define BTRFS_UUID_SIZE 16
40 #if (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
293 #if (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
350 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
352 TP_PROTO(const struct inode
*inode
,
353 const struct btrfs_ordered_extent
*ordered
),
355 TP_ARGS(inode
, ordered
),
358 ctf_integer(ino_t
, ino
, inode
->i_ino
)
359 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
360 ctf_integer(u64
, start
, ordered
->start
)
361 ctf_integer(u64
, len
, ordered
->len
)
362 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
363 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
364 ctf_integer(unsigned long, flags
, ordered
->flags
)
365 ctf_integer(int, compress_type
, ordered
->compress_type
)
366 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
367 ctf_integer(u64
, root_objectid
,
368 BTRFS_I(inode
)->root
->root_key
.objectid
)
371 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
372 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
374 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
376 TP_ARGS(inode
, ordered
),
379 ctf_integer(ino_t
, ino
, inode
->i_ino
)
380 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
381 ctf_integer(u64
, start
, ordered
->start
)
382 ctf_integer(u64
, len
, ordered
->len
)
383 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
384 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
385 ctf_integer(unsigned long, flags
, ordered
->flags
)
386 ctf_integer(int, compress_type
, ordered
->compress_type
)
387 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
388 ctf_integer(u64
, root_objectid
,
389 BTRFS_I(inode
)->root
->root_key
.objectid
)
392 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
393 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
394 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
395 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
396 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
398 TP_PROTO(const struct inode
*inode
, const struct btrfs_ordered_extent
*ordered
),
400 TP_ARGS(inode
, ordered
),
403 ctf_integer(ino_t
, ino
, inode
->i_ino
)
404 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
405 ctf_integer(u64
, start
, ordered
->start
)
406 ctf_integer(u64
, len
, ordered
->len
)
407 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
408 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
409 ctf_integer(unsigned long, flags
, ordered
->flags
)
410 ctf_integer(int, compress_type
, ordered
->compress_type
)
411 ctf_integer(int, refs
, atomic_read(&ordered
->refs
))
412 ctf_integer(u64
, root_objectid
,
413 BTRFS_I(inode
)->root
->root_key
.objectid
)
417 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
419 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
421 TP_ARGS(inode
, ordered
),
424 ctf_integer(ino_t
, ino
, inode
->i_ino
)
425 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
426 ctf_integer(u64
, start
, ordered
->start
)
427 ctf_integer(u64
, len
, ordered
->len
)
428 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
429 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
430 ctf_integer(unsigned long, flags
, ordered
->flags
)
431 ctf_integer(int, compress_type
, ordered
->compress_type
)
432 ctf_integer(int, refs
, atomic_read(&ordered
->refs
))
433 ctf_integer(u64
, root_objectid
,
434 BTRFS_I(inode
)->root
->root_key
.objectid
)
439 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
440 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
441 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
442 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
443 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
444 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_add
,
446 TP_PROTO(const struct inode
*inode
,
447 const struct btrfs_ordered_extent
*ordered
),
449 TP_ARGS(inode
, ordered
)
452 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_remove
,
454 TP_PROTO(const struct inode
*inode
,
455 const struct btrfs_ordered_extent
*ordered
),
457 TP_ARGS(inode
, ordered
)
460 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_start
,
462 TP_PROTO(const struct inode
*inode
,
463 const struct btrfs_ordered_extent
*ordered
),
465 TP_ARGS(inode
, ordered
)
468 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_put
,
470 TP_PROTO(const struct inode
*inode
,
471 const struct btrfs_ordered_extent
*ordered
),
473 TP_ARGS(inode
, ordered
)
476 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__writepage
,
478 TP_PROTO(const struct page
*page
, const struct inode
*inode
,
479 const struct writeback_control
*wbc
),
481 TP_ARGS(page
, inode
, wbc
),
484 ctf_integer(ino_t
, ino
, inode
->i_ino
)
485 ctf_integer(pgoff_t
, index
, page
->index
)
486 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
487 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
488 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
489 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
490 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
491 ctf_integer(char, for_reclaim
, wbc
->for_reclaim
)
492 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
493 ctf_integer(pgoff_t
, writeback_index
,
494 inode
->i_mapping
->writeback_index
)
495 ctf_integer(u64
, root_objectid
,
496 BTRFS_I(inode
)->root
->root_key
.objectid
)
500 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs__writepage
,
504 btrfs__extent_writepage
,
506 TP_PROTO(const struct page
*page
, const struct inode
*inode
,
507 const struct writeback_control
*wbc
),
509 TP_ARGS(page
, inode
, wbc
)
512 LTTNG_TRACEPOINT_EVENT(btrfs_writepage_end_io_hook
,
514 TP_PROTO(const struct page
*page
, u64 start
, u64 end
, int uptodate
),
516 TP_ARGS(page
, start
, end
, uptodate
),
519 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
520 ctf_integer(pgoff_t
, index
, page
->index
)
521 ctf_integer(u64
, start
, start
)
522 ctf_integer(u64
, end
, end
)
523 ctf_integer(int, uptodate
, uptodate
)
524 ctf_integer(u64
, root_objectid
,
525 BTRFS_I(page
->mapping
->host
)->root
->root_key
.objectid
)
529 LTTNG_TRACEPOINT_EVENT(btrfs_sync_file
,
531 TP_PROTO(const struct file
*file
, int datasync
),
533 TP_ARGS(file
, datasync
),
536 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
537 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
538 ctf_integer(int, datasync
, datasync
)
539 ctf_integer(u64
, root_objectid
,
540 BTRFS_I(file
->f_path
.dentry
->d_inode
)->root
->root_key
.objectid
)
544 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_add
,
546 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
548 TP_ARGS(inode
, ordered
)
551 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_remove
,
553 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
555 TP_ARGS(inode
, ordered
)
558 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_start
,
560 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
562 TP_ARGS(inode
, ordered
)
565 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_put
,
567 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
569 TP_ARGS(inode
, ordered
)
572 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__writepage
,
574 TP_PROTO(struct page
*page
, struct inode
*inode
,
575 struct writeback_control
*wbc
),
577 TP_ARGS(page
, inode
, wbc
),
580 ctf_integer(ino_t
, ino
, inode
->i_ino
)
581 ctf_integer(pgoff_t
, index
, page
->index
)
582 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
583 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
584 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
585 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
586 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
587 ctf_integer(char, nonblocking
, wbc
->nonblocking
)
589 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
590 ctf_integer(char, for_reclaim
, wbc
->for_reclaim
)
591 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
592 ctf_integer(pgoff_t
, writeback_index
,
593 inode
->i_mapping
->writeback_index
)
594 ctf_integer(u64
, root_objectid
,
595 BTRFS_I(inode
)->root
->root_key
.objectid
)
599 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs__writepage
,
603 btrfs__extent_writepage
,
605 TP_PROTO(struct page
*page
, struct inode
*inode
,
606 struct writeback_control
*wbc
),
608 TP_ARGS(page
, inode
, wbc
)
611 LTTNG_TRACEPOINT_EVENT(btrfs_writepage_end_io_hook
,
613 TP_PROTO(struct page
*page
, u64 start
, u64 end
, int uptodate
),
615 TP_ARGS(page
, start
, end
, uptodate
),
618 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
619 ctf_integer(pgoff_t
, index
, page
->index
)
620 ctf_integer(u64
, start
, start
)
621 ctf_integer(u64
, end
, end
)
622 ctf_integer(int, uptodate
, uptodate
)
623 ctf_integer(u64
, root_objectid
,
624 BTRFS_I(page
->mapping
->host
)->root
->root_key
.objectid
)
628 LTTNG_TRACEPOINT_EVENT(btrfs_sync_file
,
630 TP_PROTO(struct file
*file
, int datasync
),
632 TP_ARGS(file
, datasync
),
635 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
636 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
637 ctf_integer(int, datasync
, datasync
)
638 ctf_integer(u64
, root_objectid
,
639 BTRFS_I(file
->f_path
.dentry
->d_inode
)->root
->root_key
.objectid
)
644 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
645 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
646 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
647 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
648 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
649 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
650 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
651 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
652 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
654 TP_PROTO(const struct btrfs_fs_info
*fs_info
, int wait
),
656 TP_ARGS(fs_info
, wait
),
659 ctf_integer(int, wait
, wait
)
662 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
663 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
665 TP_PROTO(struct btrfs_fs_info
*fs_info
, int wait
),
667 TP_ARGS(fs_info
, wait
),
670 ctf_integer(int, wait
, wait
)
674 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
681 ctf_integer(int, wait
, wait
)
686 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0))
687 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
689 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
690 const struct btrfs_block_group
*block_group
, int create
),
692 TP_ARGS(fs_info
, block_group
, create
),
695 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
696 ctf_integer(u64
, offset
, block_group
->start
)
697 ctf_integer(u64
, size
, block_group
->length
)
698 ctf_integer(u64
, flags
, block_group
->flags
)
699 ctf_integer(u64
, bytes_used
, block_group
->used
)
700 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
701 ctf_integer(int, create
, create
)
704 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
705 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
706 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
707 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
708 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
709 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
711 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
712 const struct btrfs_block_group_cache
*block_group
, int create
),
714 TP_ARGS(fs_info
, block_group
, create
),
717 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
718 ctf_integer(u64
, offset
, block_group
->key
.objectid
)
719 ctf_integer(u64
, size
, block_group
->key
.offset
)
720 ctf_integer(u64
, flags
, block_group
->flags
)
721 ctf_integer(u64
, bytes_used
, btrfs_block_group_used(&block_group
->item
))
722 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
723 ctf_integer(int, create
, create
)
727 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
729 TP_PROTO(struct btrfs_fs_info
*fs_info
,
730 struct btrfs_block_group_cache
*block_group
, int create
),
732 TP_ARGS(fs_info
, block_group
, create
),
735 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
736 ctf_integer(u64
, offset
, block_group
->key
.objectid
)
737 ctf_integer(u64
, size
, block_group
->key
.offset
)
738 ctf_integer(u64
, flags
, block_group
->flags
)
739 ctf_integer(u64
, bytes_used
, btrfs_block_group_used(&block_group
->item
))
740 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
741 ctf_integer(int, create
, create
)
746 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
747 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
748 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
749 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
750 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
751 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
752 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
753 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
754 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
756 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
757 const struct btrfs_delayed_ref_node
*ref
,
758 const struct btrfs_delayed_tree_ref
*full_ref
,
761 TP_ARGS(fs_info
, ref
, full_ref
, action
),
764 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
765 ctf_integer(u64
, bytenr
, ref
->bytenr
)
766 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
767 ctf_integer(int, action
, action
)
768 ctf_integer(u64
, parent
, full_ref
->parent
)
769 ctf_integer(u64
, ref_root
, full_ref
->root
)
770 ctf_integer(int, level
, full_ref
->level
)
771 ctf_integer(int, type
, ref
->type
)
772 ctf_integer(u64
, seq
, ref
->seq
)
776 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
778 add_delayed_tree_ref
,
780 btrfs_add_delayed_tree_ref
,
782 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
783 const struct btrfs_delayed_ref_node
*ref
,
784 const struct btrfs_delayed_tree_ref
*full_ref
,
787 TP_ARGS(fs_info
, ref
, full_ref
, action
)
790 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
792 run_delayed_tree_ref
,
794 btrfs_run_delayed_tree_ref
,
796 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
797 const struct btrfs_delayed_ref_node
*ref
,
798 const struct btrfs_delayed_tree_ref
*full_ref
,
801 TP_ARGS(fs_info
, ref
, full_ref
, action
)
803 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
804 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
806 TP_PROTO(struct btrfs_fs_info
*fs_info
,
807 struct btrfs_delayed_ref_node
*ref
,
808 struct btrfs_delayed_tree_ref
*full_ref
,
811 TP_ARGS(fs_info
, ref
, full_ref
, action
),
814 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
815 ctf_integer(u64
, bytenr
, ref
->bytenr
)
816 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
817 ctf_integer(int, action
, action
)
818 ctf_integer(u64
, parent
, full_ref
->parent
)
819 ctf_integer(u64
, ref_root
, full_ref
->root
)
820 ctf_integer(int, level
, full_ref
->level
)
821 ctf_integer(int, type
, ref
->type
)
822 ctf_integer(u64
, seq
, ref
->seq
)
826 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
828 add_delayed_tree_ref
,
830 btrfs_add_delayed_tree_ref
,
832 TP_PROTO(struct btrfs_fs_info
*fs_info
,
833 struct btrfs_delayed_ref_node
*ref
,
834 struct btrfs_delayed_tree_ref
*full_ref
,
837 TP_ARGS(fs_info
, ref
, full_ref
, action
)
840 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
842 run_delayed_tree_ref
,
844 btrfs_run_delayed_tree_ref
,
846 TP_PROTO(struct btrfs_fs_info
*fs_info
,
847 struct btrfs_delayed_ref_node
*ref
,
848 struct btrfs_delayed_tree_ref
*full_ref
,
851 TP_ARGS(fs_info
, ref
, full_ref
, action
)
853 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,103,92,0,0, 4,5,0,0,0,0))
854 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
856 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
857 const struct btrfs_delayed_tree_ref
*full_ref
,
860 TP_ARGS(ref
, full_ref
, action
),
863 ctf_integer(u64
, bytenr
, ref
->bytenr
)
864 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
865 ctf_integer(int, action
, action
)
866 ctf_integer(u64
, parent
, full_ref
->parent
)
867 ctf_integer(u64
, ref_root
, full_ref
->root
)
868 ctf_integer(int, level
, full_ref
->level
)
869 ctf_integer(int, type
, ref
->type
)
870 ctf_integer(u64
, seq
, ref
->seq
)
874 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
876 add_delayed_tree_ref
,
878 btrfs_add_delayed_tree_ref
,
880 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
881 const struct btrfs_delayed_tree_ref
*full_ref
,
884 TP_ARGS(ref
, full_ref
, action
)
887 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
889 run_delayed_tree_ref
,
891 btrfs_run_delayed_tree_ref
,
893 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
894 const struct btrfs_delayed_tree_ref
*full_ref
,
897 TP_ARGS(ref
, full_ref
, action
)
899 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
900 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref
,
902 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
903 struct btrfs_delayed_tree_ref
*full_ref
,
906 TP_ARGS(ref
, full_ref
, action
),
909 ctf_integer(u64
, bytenr
, ref
->bytenr
)
910 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
911 ctf_integer(int, action
, action
)
912 ctf_integer(u64
, parent
, full_ref
->parent
)
913 ctf_integer(u64
, ref_root
, full_ref
->root
)
914 ctf_integer(int, level
, full_ref
->level
)
915 ctf_integer(int, type
, ref
->type
)
916 ctf_integer(u64
, seq
, ref
->seq
)
920 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
922 add_delayed_tree_ref
,
924 btrfs_add_delayed_tree_ref
,
926 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
927 struct btrfs_delayed_tree_ref
*full_ref
,
930 TP_ARGS(ref
, full_ref
, action
)
933 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_tree_ref
,
935 run_delayed_tree_ref
,
937 btrfs_run_delayed_tree_ref
,
939 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
940 struct btrfs_delayed_tree_ref
*full_ref
,
943 TP_ARGS(ref
, full_ref
, action
)
945 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0))
946 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref
,
948 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
949 struct btrfs_delayed_tree_ref
*full_ref
,
952 TP_ARGS(ref
, full_ref
, action
),
955 ctf_integer(u64
, bytenr
, ref
->bytenr
)
956 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
957 ctf_integer(int, action
, action
)
958 ctf_integer(u64
, parent
, full_ref
->parent
)
959 ctf_integer(u64
, ref_root
, full_ref
->root
)
960 ctf_integer(int, level
, full_ref
->level
)
961 ctf_integer(int, type
, ref
->type
)
962 ctf_integer(u64
, seq
, ref
->seq
)
966 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref
,
968 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
969 struct btrfs_delayed_tree_ref
*full_ref
,
972 TP_ARGS(ref
, full_ref
, action
),
975 ctf_integer(u64
, bytenr
, ref
->bytenr
)
976 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
977 ctf_integer(int, action
, action
)
978 ctf_integer(u64
, parent
, full_ref
->parent
)
979 ctf_integer(u64
, ref_root
, full_ref
->root
)
980 ctf_integer(int, level
, full_ref
->level
)
981 ctf_integer(int, type
, ref
->type
)
986 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
987 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
988 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
989 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
990 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
991 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
992 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
993 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
994 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
996 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
997 const struct btrfs_delayed_ref_node
*ref
,
998 const struct btrfs_delayed_data_ref
*full_ref
,
1001 TP_ARGS(fs_info
, ref
, full_ref
, action
),
1004 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1005 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1006 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1007 ctf_integer(int, action
, action
)
1008 ctf_integer(u64
, parent
, full_ref
->parent
)
1009 ctf_integer(u64
, ref_root
, full_ref
->root
)
1010 ctf_integer(u64
, owner
, full_ref
->objectid
)
1011 ctf_integer(u64
, offset
, full_ref
->offset
)
1012 ctf_integer(int, type
, ref
->type
)
1013 ctf_integer(u64
, seq
, ref
->seq
)
1017 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1019 add_delayed_data_ref
,
1021 btrfs_add_delayed_data_ref
,
1023 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1024 const struct btrfs_delayed_ref_node
*ref
,
1025 const struct btrfs_delayed_data_ref
*full_ref
,
1028 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1031 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1033 run_delayed_data_ref
,
1035 btrfs_run_delayed_data_ref
,
1037 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1038 const struct btrfs_delayed_ref_node
*ref
,
1039 const struct btrfs_delayed_data_ref
*full_ref
,
1042 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1044 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
1045 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
1047 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1048 struct btrfs_delayed_ref_node
*ref
,
1049 struct btrfs_delayed_data_ref
*full_ref
,
1052 TP_ARGS(fs_info
, ref
, full_ref
, action
),
1055 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1056 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1057 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1058 ctf_integer(int, action
, action
)
1059 ctf_integer(u64
, parent
, full_ref
->parent
)
1060 ctf_integer(u64
, ref_root
, full_ref
->root
)
1061 ctf_integer(u64
, owner
, full_ref
->objectid
)
1062 ctf_integer(u64
, offset
, full_ref
->offset
)
1063 ctf_integer(int, type
, ref
->type
)
1064 ctf_integer(u64
, seq
, ref
->seq
)
1068 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1070 add_delayed_data_ref
,
1072 btrfs_add_delayed_data_ref
,
1074 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1075 struct btrfs_delayed_ref_node
*ref
,
1076 struct btrfs_delayed_data_ref
*full_ref
,
1079 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1082 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1084 run_delayed_data_ref
,
1086 btrfs_run_delayed_data_ref
,
1088 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1089 struct btrfs_delayed_ref_node
*ref
,
1090 struct btrfs_delayed_data_ref
*full_ref
,
1093 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1095 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,103,92,0,0, 4,5,0,0,0,0))
1096 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
1098 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1099 const struct btrfs_delayed_data_ref
*full_ref
,
1102 TP_ARGS(ref
, full_ref
, action
),
1105 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1106 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1107 ctf_integer(int, action
, action
)
1108 ctf_integer(u64
, parent
, full_ref
->parent
)
1109 ctf_integer(u64
, ref_root
, full_ref
->root
)
1110 ctf_integer(u64
, owner
, full_ref
->objectid
)
1111 ctf_integer(u64
, offset
, full_ref
->offset
)
1112 ctf_integer(int, type
, ref
->type
)
1113 ctf_integer(u64
, seq
, ref
->seq
)
1117 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1119 add_delayed_data_ref
,
1121 btrfs_add_delayed_data_ref
,
1123 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1124 const struct btrfs_delayed_data_ref
*full_ref
,
1127 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1130 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1132 run_delayed_data_ref
,
1134 btrfs_run_delayed_data_ref
,
1136 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1137 const struct btrfs_delayed_data_ref
*full_ref
,
1140 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1142 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
1143 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref
,
1145 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1146 struct btrfs_delayed_data_ref
*full_ref
,
1149 TP_ARGS(ref
, full_ref
, action
),
1152 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1153 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1154 ctf_integer(int, action
, action
)
1155 ctf_integer(u64
, parent
, full_ref
->parent
)
1156 ctf_integer(u64
, ref_root
, full_ref
->root
)
1157 ctf_integer(u64
, owner
, full_ref
->objectid
)
1158 ctf_integer(u64
, offset
, full_ref
->offset
)
1159 ctf_integer(int, type
, ref
->type
)
1160 ctf_integer(u64
, seq
, ref
->seq
)
1164 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1166 add_delayed_data_ref
,
1168 btrfs_add_delayed_data_ref
,
1170 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1171 struct btrfs_delayed_data_ref
*full_ref
,
1174 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1177 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_data_ref
,
1179 run_delayed_data_ref
,
1181 btrfs_run_delayed_data_ref
,
1183 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1184 struct btrfs_delayed_data_ref
*full_ref
,
1187 TP_ARGS(fs_info
, ref
, full_ref
, action
)
1189 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0))
1190 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_data_ref
,
1192 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1193 struct btrfs_delayed_data_ref
*full_ref
,
1196 TP_ARGS(ref
, full_ref
, action
),
1199 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1200 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1201 ctf_integer(int, action
, action
)
1202 ctf_integer(u64
, parent
, full_ref
->parent
)
1203 ctf_integer(u64
, ref_root
, full_ref
->root
)
1204 ctf_integer(u64
, owner
, full_ref
->objectid
)
1205 ctf_integer(u64
, offset
, full_ref
->offset
)
1206 ctf_integer(int, type
, ref
->type
)
1207 ctf_integer(u64
, seq
, ref
->seq
)
1211 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_data_ref
,
1213 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1214 struct btrfs_delayed_data_ref
*full_ref
,
1217 TP_ARGS(ref
, full_ref
, action
),
1220 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1221 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1222 ctf_integer(int, action
, action
)
1223 ctf_integer(u64
, parent
, full_ref
->parent
)
1224 ctf_integer(u64
, ref_root
, full_ref
->root
)
1225 ctf_integer(u64
, owner
, full_ref
->objectid
)
1226 ctf_integer(u64
, offset
, full_ref
->offset
)
1227 ctf_integer(int, type
, ref
->type
)
1232 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0))
1233 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1235 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1236 const struct btrfs_delayed_ref_head
*head_ref
,
1239 TP_ARGS(fs_info
, head_ref
, action
),
1242 ctf_integer(u64
, bytenr
, head_ref
->bytenr
)
1243 ctf_integer(u64
, num_bytes
, head_ref
->num_bytes
)
1244 ctf_integer(int, action
, action
)
1245 ctf_integer(int, is_data
, head_ref
->is_data
)
1249 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1251 add_delayed_ref_head
,
1253 btrfs_add_delayed_ref_head
,
1255 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1256 const struct btrfs_delayed_ref_head
*head_ref
,
1259 TP_ARGS(fs_info
, head_ref
, action
)
1262 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1264 run_delayed_ref_head
,
1266 btrfs_run_delayed_ref_head
,
1268 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1269 const struct btrfs_delayed_ref_head
*head_ref
,
1272 TP_ARGS(fs_info
, head_ref
, action
)
1275 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
1276 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1277 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1278 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1279 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,4,103,7,0,0) || \
1280 LTTNG_SLE_KERNEL_RANGE(4,4,114,94,0,0, 4,4,114,95,0,0) || \
1281 LTTNG_SLE_KERNEL_RANGE(4,4,120,94,0,0, 4,4,120,95,0,0) || \
1282 LTTNG_SLE_KERNEL_RANGE(4,4,126,94,0,0, 4,5,0,0,0,0))
1284 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1286 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1287 const struct btrfs_delayed_ref_node
*ref
,
1288 const struct btrfs_delayed_ref_head
*head_ref
,
1291 TP_ARGS(fs_info
, ref
, head_ref
, action
),
1294 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1295 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1296 ctf_integer(int, action
, action
)
1297 ctf_integer(int, is_data
, head_ref
->is_data
)
1301 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1303 add_delayed_ref_head
,
1305 btrfs_add_delayed_ref_head
,
1307 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1308 const struct btrfs_delayed_ref_node
*ref
,
1309 const struct btrfs_delayed_ref_head
*head_ref
,
1312 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1315 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1317 run_delayed_ref_head
,
1319 btrfs_run_delayed_ref_head
,
1321 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1322 const struct btrfs_delayed_ref_node
*ref
,
1323 const struct btrfs_delayed_ref_head
*head_ref
,
1326 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1329 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
1330 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1332 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1333 struct btrfs_delayed_ref_node
*ref
,
1334 struct btrfs_delayed_ref_head
*head_ref
,
1337 TP_ARGS(fs_info
, ref
, head_ref
, action
),
1340 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1341 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1342 ctf_integer(int, action
, action
)
1343 ctf_integer(int, is_data
, head_ref
->is_data
)
1347 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1349 add_delayed_ref_head
,
1351 btrfs_add_delayed_ref_head
,
1353 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1354 struct btrfs_delayed_ref_node
*ref
,
1355 struct btrfs_delayed_ref_head
*head_ref
,
1358 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1361 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1363 run_delayed_ref_head
,
1365 btrfs_run_delayed_ref_head
,
1367 TP_PROTO(struct btrfs_fs_info
*fs_info
,
1368 struct btrfs_delayed_ref_node
*ref
,
1369 struct btrfs_delayed_ref_head
*head_ref
,
1372 TP_ARGS(fs_info
, ref
, head_ref
, action
)
1375 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,103,92,0,0, 4,5,0,0,0,0))
1376 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1378 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1379 const struct btrfs_delayed_ref_head
*head_ref
,
1382 TP_ARGS(ref
, head_ref
, action
),
1385 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1386 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1387 ctf_integer(int, action
, action
)
1388 ctf_integer(int, is_data
, head_ref
->is_data
)
1392 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1394 add_delayed_ref_head
,
1396 btrfs_add_delayed_ref_head
,
1398 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1399 const struct btrfs_delayed_ref_head
*head_ref
,
1402 TP_ARGS(ref
, head_ref
, action
)
1405 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1407 run_delayed_ref_head
,
1409 btrfs_run_delayed_ref_head
,
1411 TP_PROTO(const struct btrfs_delayed_ref_node
*ref
,
1412 const struct btrfs_delayed_ref_head
*head_ref
,
1415 TP_ARGS(ref
, head_ref
, action
)
1418 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
1419 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_ref_head
,
1421 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1422 struct btrfs_delayed_ref_head
*head_ref
,
1425 TP_ARGS(ref
, head_ref
, action
),
1428 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1429 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1430 ctf_integer(int, action
, action
)
1431 ctf_integer(int, is_data
, head_ref
->is_data
)
1435 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1437 add_delayed_ref_head
,
1439 btrfs_add_delayed_ref_head
,
1441 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1442 struct btrfs_delayed_ref_head
*head_ref
,
1445 TP_ARGS(ref
, head_ref
, action
)
1448 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs_delayed_ref_head
,
1450 run_delayed_ref_head
,
1452 btrfs_run_delayed_ref_head
,
1454 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1455 struct btrfs_delayed_ref_head
*head_ref
,
1458 TP_ARGS(ref
, head_ref
, action
)
1462 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_ref_head
,
1464 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
1465 struct btrfs_delayed_ref_head
*head_ref
,
1468 TP_ARGS(ref
, head_ref
, action
),
1471 ctf_integer(u64
, bytenr
, ref
->bytenr
)
1472 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
1473 ctf_integer(int, action
, action
)
1474 ctf_integer(int, is_data
, head_ref
->is_data
)
1479 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
1481 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1483 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const struct map_lookup
*map
,
1484 u64 offset
, u64 size
),
1486 TP_ARGS(fs_info
, map
, offset
, size
),
1489 ctf_integer(int, num_stripes
, map
->num_stripes
)
1490 ctf_integer(u64
, type
, map
->type
)
1491 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1492 ctf_integer(u64
, offset
, offset
)
1493 ctf_integer(u64
, size
, size
)
1494 ctf_integer(u64
, root_objectid
, fs_info
->chunk_root
->root_key
.objectid
)
1498 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1500 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const struct map_lookup
*map
,
1501 u64 offset
, u64 size
),
1503 TP_ARGS(fs_info
, map
, offset
, size
)
1506 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1508 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const struct map_lookup
*map
,
1509 u64 offset
, u64 size
),
1511 TP_ARGS(fs_info
, map
, offset
, size
)
1514 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
1516 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1518 TP_PROTO(struct btrfs_fs_info
*fs_info
, struct map_lookup
*map
,
1519 u64 offset
, u64 size
),
1521 TP_ARGS(fs_info
, map
, offset
, size
),
1524 ctf_integer(int, num_stripes
, map
->num_stripes
)
1525 ctf_integer(u64
, type
, map
->type
)
1526 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1527 ctf_integer(u64
, offset
, offset
)
1528 ctf_integer(u64
, size
, size
)
1529 ctf_integer(u64
, root_objectid
, fs_info
->chunk_root
->root_key
.objectid
)
1533 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1535 TP_PROTO(struct btrfs_fs_info
*fs_info
, struct map_lookup
*map
,
1536 u64 offset
, u64 size
),
1538 TP_ARGS(fs_info
, map
, offset
, size
)
1541 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1543 TP_PROTO(struct btrfs_fs_info
*fs_info
, struct map_lookup
*map
,
1544 u64 offset
, u64 size
),
1546 TP_ARGS(fs_info
, map
, offset
, size
)
1549 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1550 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1551 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1552 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1554 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1556 TP_PROTO(const struct btrfs_root
*root
, const struct map_lookup
*map
,
1557 u64 offset
, u64 size
),
1559 TP_ARGS(root
, map
, offset
, size
),
1562 ctf_integer(int, num_stripes
, map
->num_stripes
)
1563 ctf_integer(u64
, type
, map
->type
)
1564 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1565 ctf_integer(u64
, offset
, offset
)
1566 ctf_integer(u64
, size
, size
)
1567 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1571 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1573 TP_PROTO(const struct btrfs_root
*root
, const struct map_lookup
*map
,
1574 u64 offset
, u64 size
),
1576 TP_ARGS(root
, map
, offset
, size
)
1579 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1581 TP_PROTO(const struct btrfs_root
*root
, const struct map_lookup
*map
,
1582 u64 offset
, u64 size
),
1584 TP_ARGS(root
, map
, offset
, size
)
1587 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
1589 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
1591 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
1592 u64 offset
, u64 size
),
1594 TP_ARGS(root
, map
, offset
, size
),
1597 ctf_integer(int, num_stripes
, map
->num_stripes
)
1598 ctf_integer(u64
, type
, map
->type
)
1599 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
1600 ctf_integer(u64
, offset
, offset
)
1601 ctf_integer(u64
, size
, size
)
1602 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1606 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
1608 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
1609 u64 offset
, u64 size
),
1611 TP_ARGS(root
, map
, offset
, size
)
1614 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
1616 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
1617 u64 offset
, u64 size
),
1619 TP_ARGS(root
, map
, offset
, size
)
1622 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
1624 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
1625 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1626 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1627 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1628 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1629 LTTNG_TRACEPOINT_EVENT(btrfs_cow_block
,
1631 TP_PROTO(const struct btrfs_root
*root
, const struct extent_buffer
*buf
,
1632 const struct extent_buffer
*cow
),
1634 TP_ARGS(root
, buf
, cow
),
1637 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1638 ctf_integer(u64
, buf_start
, buf
->start
)
1639 ctf_integer(int, refs
, atomic_read(&buf
->refs
))
1640 ctf_integer(u64
, cow_start
, cow
->start
)
1641 ctf_integer(int, buf_level
, btrfs_header_level(buf
))
1642 ctf_integer(int, cow_level
, btrfs_header_level(cow
))
1646 LTTNG_TRACEPOINT_EVENT(btrfs_cow_block
,
1648 TP_PROTO(struct btrfs_root
*root
, struct extent_buffer
*buf
,
1649 struct extent_buffer
*cow
),
1651 TP_ARGS(root
, buf
, cow
),
1654 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1655 ctf_integer(u64
, buf_start
, buf
->start
)
1656 ctf_integer(int, refs
, atomic_read(&buf
->refs
))
1657 ctf_integer(u64
, cow_start
, cow
->start
)
1658 ctf_integer(int, buf_level
, btrfs_header_level(buf
))
1659 ctf_integer(int, cow_level
, btrfs_header_level(cow
))
1664 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0))
1665 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
1667 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const char *type
, u64 val
,
1668 u64 bytes
, int reserve
),
1670 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
1673 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1674 ctf_string(type
, type
)
1675 ctf_integer(u64
, val
, val
)
1676 ctf_integer(u64
, bytes
, bytes
)
1677 ctf_integer(int, reserve
, reserve
)
1680 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
1681 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1682 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1683 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1684 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1685 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
1687 TP_PROTO(const struct btrfs_fs_info
*fs_info
, char *type
, u64 val
,
1688 u64 bytes
, int reserve
),
1690 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
1693 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1694 ctf_string(type
, type
)
1695 ctf_integer(u64
, val
, val
)
1696 ctf_integer(u64
, bytes
, bytes
)
1697 ctf_integer(int, reserve
, reserve
)
1700 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
1701 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
1703 TP_PROTO(struct btrfs_fs_info
*fs_info
, char *type
, u64 val
,
1704 u64 bytes
, int reserve
),
1706 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
1709 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1710 ctf_string(type
, type
)
1711 ctf_integer(u64
, val
, val
)
1712 ctf_integer(u64
, bytes
, bytes
)
1713 ctf_integer(int, reserve
, reserve
)
1718 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
1720 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1722 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1724 TP_ARGS(fs_info
, start
, len
),
1727 ctf_integer(u64
, start
, start
)
1728 ctf_integer(u64
, len
, len
)
1732 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1734 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1736 TP_ARGS(fs_info
, start
, len
)
1739 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1741 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1743 TP_ARGS(fs_info
, start
, len
)
1746 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
1748 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1750 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1752 TP_ARGS(fs_info
, start
, len
),
1755 ctf_integer(u64
, start
, start
)
1756 ctf_integer(u64
, len
, len
)
1760 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1762 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1764 TP_ARGS(fs_info
, start
, len
)
1767 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1769 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 start
, u64 len
),
1771 TP_ARGS(fs_info
, start
, len
)
1774 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
1775 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
1776 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
1777 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
1779 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1781 TP_PROTO(const struct btrfs_root
*root
, u64 start
, u64 len
),
1783 TP_ARGS(root
, start
, len
),
1786 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1787 ctf_integer(u64
, start
, start
)
1788 ctf_integer(u64
, len
, len
)
1792 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1794 TP_PROTO(const struct btrfs_root
*root
, u64 start
, u64 len
),
1796 TP_ARGS(root
, start
, len
)
1799 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1801 TP_PROTO(const struct btrfs_root
*root
, u64 start
, u64 len
),
1803 TP_ARGS(root
, start
, len
)
1806 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
1808 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
1810 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
1812 TP_ARGS(root
, start
, len
),
1815 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1816 ctf_integer(u64
, start
, start
)
1817 ctf_integer(u64
, len
, len
)
1821 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
1823 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
1825 TP_ARGS(root
, start
, len
)
1828 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
1830 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
1832 TP_ARGS(root
, start
, len
)
1835 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
1837 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0))
1838 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1840 btrfs_find_free_extent
,
1842 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
1845 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
1848 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1849 ctf_integer(u64
, num_bytes
, num_bytes
)
1850 ctf_integer(u64
, empty_size
, empty_size
)
1851 ctf_integer(u64
, data
, data
)
1855 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
1857 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
1860 TP_ARGS(block_group
, start
, len
),
1863 ctf_array(u8
, fsid
, block_group
->lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1864 ctf_integer(u64
, bg_objectid
, block_group
->start
)
1865 ctf_integer(u64
, flags
, block_group
->flags
)
1866 ctf_integer(u64
, start
, start
)
1867 ctf_integer(u64
, len
, len
)
1871 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
1873 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
1876 TP_ARGS(block_group
, start
, len
)
1879 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
1881 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
1884 TP_ARGS(block_group
, start
, len
)
1887 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,18,0))
1888 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1890 btrfs_find_free_extent
,
1892 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
1895 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
1898 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1899 ctf_integer(u64
, num_bytes
, num_bytes
)
1900 ctf_integer(u64
, empty_size
, empty_size
)
1901 ctf_integer(u64
, data
, data
)
1905 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
1907 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
1910 TP_ARGS(block_group
, start
, len
),
1913 ctf_array(u8
, fsid
, block_group
->lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1914 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1915 ctf_integer(u64
, flags
, block_group
->flags
)
1916 ctf_integer(u64
, start
, start
)
1917 ctf_integer(u64
, len
, len
)
1921 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
1923 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
1926 TP_ARGS(block_group
, start
, len
)
1929 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
1931 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
1934 TP_ARGS(block_group
, start
, len
)
1937 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
1938 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1940 btrfs_find_free_extent
,
1942 TP_PROTO(const struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
1945 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
1948 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1949 ctf_integer(u64
, num_bytes
, num_bytes
)
1950 ctf_integer(u64
, empty_size
, empty_size
)
1951 ctf_integer(u64
, data
, data
)
1955 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
1957 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1958 const struct btrfs_block_group_cache
*block_group
, u64 start
,
1961 TP_ARGS(fs_info
, block_group
, start
, len
),
1964 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
1965 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1966 ctf_integer(u64
, flags
, block_group
->flags
)
1967 ctf_integer(u64
, start
, start
)
1968 ctf_integer(u64
, len
, len
)
1972 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
1974 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1975 const struct btrfs_block_group_cache
*block_group
, u64 start
,
1978 TP_ARGS(fs_info
, block_group
, start
, len
)
1981 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
1983 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
1984 const struct btrfs_block_group_cache
*block_group
, u64 start
,
1987 TP_ARGS(fs_info
, block_group
, start
, len
)
1990 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
1992 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1994 btrfs_find_free_extent
,
1996 TP_PROTO(struct btrfs_fs_info
*fs_info
, u64 num_bytes
, u64 empty_size
,
1999 TP_ARGS(fs_info
, num_bytes
, empty_size
, data
),
2002 ctf_array(u8
, fsid
, lttng_fs_info_fsid
, BTRFS_UUID_SIZE
)
2003 ctf_integer(u64
, num_bytes
, num_bytes
)
2004 ctf_integer(u64
, empty_size
, empty_size
)
2005 ctf_integer(u64
, data
, data
)
2009 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2011 TP_PROTO(struct btrfs_fs_info
*fs_info
,
2012 struct btrfs_block_group_cache
*block_group
, u64 start
,
2015 TP_ARGS(fs_info
, block_group
, start
, len
),
2018 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2019 ctf_integer(u64
, flags
, block_group
->flags
)
2020 ctf_integer(u64
, start
, start
)
2021 ctf_integer(u64
, len
, len
)
2025 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2027 TP_PROTO(struct btrfs_fs_info
*fs_info
,
2028 struct btrfs_block_group_cache
*block_group
, u64 start
,
2031 TP_ARGS(fs_info
, block_group
, start
, len
)
2034 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2036 TP_PROTO(struct btrfs_fs_info
*fs_info
,
2037 struct btrfs_block_group_cache
*block_group
, u64 start
,
2040 TP_ARGS(fs_info
, block_group
, start
, len
)
2042 #elif (LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
2043 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
2044 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
2045 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
2047 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
2049 btrfs_find_free_extent
,
2051 TP_PROTO(const struct btrfs_root
*root
, u64 num_bytes
, u64 empty_size
,
2054 TP_ARGS(root
, num_bytes
, empty_size
, data
),
2057 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2058 ctf_integer(u64
, num_bytes
, num_bytes
)
2059 ctf_integer(u64
, empty_size
, empty_size
)
2060 ctf_integer(u64
, data
, data
)
2064 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2066 TP_PROTO(const struct btrfs_root
*root
,
2067 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2070 TP_ARGS(root
, block_group
, start
, len
),
2073 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2074 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2075 ctf_integer(u64
, flags
, block_group
->flags
)
2076 ctf_integer(u64
, start
, start
)
2077 ctf_integer(u64
, len
, len
)
2081 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2083 TP_PROTO(const struct btrfs_root
*root
,
2084 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2087 TP_ARGS(root
, block_group
, start
, len
)
2090 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2092 TP_PROTO(const struct btrfs_root
*root
,
2093 const struct btrfs_block_group_cache
*block_group
, u64 start
,
2096 TP_ARGS(root
, block_group
, start
, len
)
2099 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
2101 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
2103 btrfs_find_free_extent
,
2105 TP_PROTO(struct btrfs_root
*root
, u64 num_bytes
, u64 empty_size
,
2108 TP_ARGS(root
, num_bytes
, empty_size
, data
),
2111 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2112 ctf_integer(u64
, num_bytes
, num_bytes
)
2113 ctf_integer(u64
, empty_size
, empty_size
)
2114 ctf_integer(u64
, data
, data
)
2118 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
2120 TP_PROTO(struct btrfs_root
*root
,
2121 struct btrfs_block_group_cache
*block_group
, u64 start
,
2124 TP_ARGS(root
, block_group
, start
, len
),
2127 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
2128 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2129 ctf_integer(u64
, flags
, block_group
->flags
)
2130 ctf_integer(u64
, start
, start
)
2131 ctf_integer(u64
, len
, len
)
2135 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
2137 TP_PROTO(struct btrfs_root
*root
,
2138 struct btrfs_block_group_cache
*block_group
, u64 start
,
2141 TP_ARGS(root
, block_group
, start
, len
)
2144 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
2146 TP_PROTO(struct btrfs_root
*root
,
2147 struct btrfs_block_group_cache
*block_group
, u64 start
,
2150 TP_ARGS(root
, block_group
, start
, len
)
2153 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
2155 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0))
2156 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
2158 TP_PROTO(const struct btrfs_block_group
*block_group
, u64 start
,
2159 u64 bytes
, u64 empty_size
, u64 min_bytes
),
2161 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
2164 ctf_integer(u64
, bg_objectid
, block_group
->start
)
2165 ctf_integer(u64
, flags
, block_group
->flags
)
2166 ctf_integer(u64
, start
, start
)
2167 ctf_integer(u64
, bytes
, bytes
)
2168 ctf_integer(u64
, empty_size
, empty_size
)
2169 ctf_integer(u64
, min_bytes
, min_bytes
)
2173 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
2175 TP_PROTO(const struct btrfs_block_group
*block_group
),
2177 TP_ARGS(block_group
),
2180 ctf_integer(u64
, bg_objectid
, block_group
->start
)
2184 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
2186 TP_PROTO(const struct btrfs_block_group
*block_group
,
2187 const struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
2189 TP_ARGS(block_group
, cluster
, size
, bitmap
),
2192 ctf_integer(u64
, bg_objectid
, block_group
->start
)
2193 ctf_integer(u64
, flags
, block_group
->flags
)
2194 ctf_integer(u64
, start
, cluster
->window_start
)
2195 ctf_integer(u64
, max_size
, cluster
->max_size
)
2196 ctf_integer(u64
, size
, size
)
2197 ctf_integer(int, bitmap
, bitmap
)
2200 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
2201 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
2202 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
2203 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
2204 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
2205 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
2207 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
2208 u64 bytes
, u64 empty_size
, u64 min_bytes
),
2210 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
2213 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2214 ctf_integer(u64
, flags
, block_group
->flags
)
2215 ctf_integer(u64
, start
, start
)
2216 ctf_integer(u64
, bytes
, bytes
)
2217 ctf_integer(u64
, empty_size
, empty_size
)
2218 ctf_integer(u64
, min_bytes
, min_bytes
)
2222 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
2224 TP_PROTO(const struct btrfs_block_group_cache
*block_group
),
2226 TP_ARGS(block_group
),
2229 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2233 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
2235 TP_PROTO(const struct btrfs_block_group_cache
*block_group
,
2236 const struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
2238 TP_ARGS(block_group
, cluster
, size
, bitmap
),
2241 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2242 ctf_integer(u64
, flags
, block_group
->flags
)
2243 ctf_integer(u64
, start
, cluster
->window_start
)
2244 ctf_integer(u64
, max_size
, cluster
->max_size
)
2245 ctf_integer(u64
, size
, size
)
2246 ctf_integer(int, bitmap
, bitmap
)
2249 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
2250 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
2252 TP_PROTO(struct btrfs_block_group_cache
*block_group
, u64 start
,
2253 u64 bytes
, u64 empty_size
, u64 min_bytes
),
2255 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
2258 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2259 ctf_integer(u64
, flags
, block_group
->flags
)
2260 ctf_integer(u64
, start
, start
)
2261 ctf_integer(u64
, bytes
, bytes
)
2262 ctf_integer(u64
, empty_size
, empty_size
)
2263 ctf_integer(u64
, min_bytes
, min_bytes
)
2267 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
2269 TP_PROTO(struct btrfs_block_group_cache
*block_group
),
2271 TP_ARGS(block_group
),
2274 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2278 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
2280 TP_PROTO(struct btrfs_block_group_cache
*block_group
,
2281 struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
2283 TP_ARGS(block_group
, cluster
, size
, bitmap
),
2286 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
2287 ctf_integer(u64
, flags
, block_group
->flags
)
2288 ctf_integer(u64
, start
, cluster
->window_start
)
2289 ctf_integer(u64
, max_size
, cluster
->max_size
)
2290 ctf_integer(u64
, size
, size
)
2291 ctf_integer(int, bitmap
, bitmap
)
2296 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) || \
2297 LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \
2298 LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \
2299 LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \
2300 LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0))
2301 LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state
,
2303 btrfs_alloc_extent_state
,
2305 TP_PROTO(const struct extent_state
*state
, gfp_t mask
, unsigned long IP
),
2307 TP_ARGS(state
, mask
, IP
),
2310 ctf_integer_hex(const struct extent_state
*, state
, state
)
2311 ctf_integer(gfp_t
, mask
, mask
)
2312 ctf_integer(unsigned long, ip
, IP
)
2316 LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state
,
2318 btrfs_free_extent_state
,
2320 TP_PROTO(const struct extent_state
*state
, unsigned long IP
),
2325 ctf_integer_hex(const struct extent_state
*, state
, state
)
2326 ctf_integer(unsigned long, ip
, IP
)
2329 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
2330 LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state
,
2332 btrfs_alloc_extent_state
,
2334 TP_PROTO(struct extent_state
*state
, gfp_t mask
, unsigned long IP
),
2336 TP_ARGS(state
, mask
, IP
),
2339 ctf_integer_hex(struct extent_state
*, state
, state
)
2340 ctf_integer(gfp_t
, mask
, mask
)
2341 ctf_integer(unsigned long, ip
, IP
)
2345 LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state
,
2347 btrfs_free_extent_state
,
2349 TP_PROTO(struct extent_state
*state
, unsigned long IP
),
2354 ctf_integer_hex(struct extent_state
*, state
, state
)
2355 ctf_integer(unsigned long, ip
, IP
)
2360 #endif /* LTTNG_TRACE_BTRFS_H */
2362 /* This part must be outside protection */
2363 #include <probes/define_trace.h>