2 #define TRACE_SYSTEM btrfs
4 #if !defined(LTTNG_TRACE_BTRFS_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_BTRFS_H
7 #include <probes/lttng-tracepoint-event.h>
8 #include <linux/writeback.h>
9 #include <linux/version.h>
11 #ifndef _TRACE_BTRFS_DEF_
12 #define _TRACE_BTRFS_DEF_
17 struct btrfs_ordered_extent
;
18 struct btrfs_delayed_ref_node
;
19 struct btrfs_delayed_tree_ref
;
20 struct btrfs_delayed_data_ref
;
21 struct btrfs_delayed_ref_head
;
22 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
23 struct btrfs_block_group_cache
;
24 struct btrfs_free_cluster
;
28 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
33 #define BTRFS_UUID_SIZE 16
35 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
36 LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit
,
38 TP_PROTO(const struct btrfs_root
*root
),
43 ctf_integer(u64
, generation
, root
->fs_info
->generation
)
44 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
48 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__inode
,
50 TP_PROTO(const struct inode
*inode
),
55 ctf_integer(ino_t
, ino
, inode
->i_ino
)
56 ctf_integer(blkcnt_t
, blocks
, inode
->i_blocks
)
57 ctf_integer(u64
, disk_i_size
, BTRFS_I(inode
)->disk_i_size
)
58 ctf_integer(u64
, generation
, BTRFS_I(inode
)->generation
)
59 ctf_integer(u64
, last_trans
, BTRFS_I(inode
)->last_trans
)
60 ctf_integer(u64
, logged_trans
, BTRFS_I(inode
)->logged_trans
)
61 ctf_integer(u64
, root_objectid
,
62 BTRFS_I(inode
)->root
->root_key
.objectid
)
66 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_new
,
68 TP_PROTO(const struct inode
*inode
),
73 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_request
,
75 TP_PROTO(const struct inode
*inode
),
80 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_evict
,
82 TP_PROTO(const struct inode
*inode
),
87 LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit
,
89 TP_PROTO(struct btrfs_root
*root
),
94 ctf_integer(u64
, generation
, root
->fs_info
->generation
)
95 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
99 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__inode
,
101 TP_PROTO(struct inode
*inode
),
106 ctf_integer(ino_t
, ino
, inode
->i_ino
)
107 ctf_integer(blkcnt_t
, blocks
, inode
->i_blocks
)
108 ctf_integer(u64
, disk_i_size
, BTRFS_I(inode
)->disk_i_size
)
109 ctf_integer(u64
, generation
, BTRFS_I(inode
)->generation
)
110 ctf_integer(u64
, last_trans
, BTRFS_I(inode
)->last_trans
)
111 ctf_integer(u64
, logged_trans
, BTRFS_I(inode
)->logged_trans
)
112 ctf_integer(u64
, root_objectid
,
113 BTRFS_I(inode
)->root
->root_key
.objectid
)
117 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_new
,
119 TP_PROTO(struct inode
*inode
),
124 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_request
,
126 TP_PROTO(struct inode
*inode
),
131 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode
, btrfs_inode_evict
,
133 TP_PROTO(struct inode
*inode
),
139 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
141 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
143 TP_PROTO(const struct btrfs_root
*root
, const struct btrfs_inode
*inode
,
144 const struct extent_map
*map
),
146 TP_ARGS(root
, inode
, map
),
149 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
150 ctf_integer(u64
, ino
, btrfs_ino(inode
))
151 ctf_integer(u64
, start
, map
->start
)
152 ctf_integer(u64
, len
, map
->len
)
153 ctf_integer(u64
, orig_start
, map
->orig_start
)
154 ctf_integer(u64
, block_start
, map
->block_start
)
155 ctf_integer(u64
, block_len
, map
->block_len
)
156 ctf_integer(unsigned long, flags
, map
->flags
)
157 ctf_integer(int, refs
, refcount_read(&map
->refs
))
158 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
162 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
164 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
166 TP_PROTO(struct btrfs_root
*root
, struct btrfs_inode
*inode
,
167 struct extent_map
*map
),
169 TP_ARGS(root
, inode
, map
),
172 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
173 ctf_integer(u64
, ino
, btrfs_ino(inode
))
174 ctf_integer(u64
, start
, map
->start
)
175 ctf_integer(u64
, len
, map
->len
)
176 ctf_integer(u64
, orig_start
, map
->orig_start
)
177 ctf_integer(u64
, block_start
, map
->block_start
)
178 ctf_integer(u64
, block_len
, map
->block_len
)
179 ctf_integer(unsigned long, flags
, map
->flags
)
180 ctf_integer(int, refs
, refcount_read(&map
->refs
))
181 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
185 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
187 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
189 TP_PROTO(struct btrfs_root
*root
, struct btrfs_inode
*inode
,
190 struct extent_map
*map
),
192 TP_ARGS(root
, inode
, map
),
195 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
196 ctf_integer(u64
, ino
, btrfs_ino(inode
))
197 ctf_integer(u64
, start
, map
->start
)
198 ctf_integer(u64
, len
, map
->len
)
199 ctf_integer(u64
, orig_start
, map
->orig_start
)
200 ctf_integer(u64
, block_start
, map
->block_start
)
201 ctf_integer(u64
, block_len
, map
->block_len
)
202 ctf_integer(unsigned long, flags
, map
->flags
)
203 ctf_integer(int, refs
, atomic_read(&map
->refs
))
204 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
208 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
210 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
212 TP_PROTO(struct btrfs_root
*root
, struct inode
*inode
,
213 struct extent_map
*map
),
215 TP_ARGS(root
, inode
, map
),
218 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
219 ctf_integer(u64
, ino
, btrfs_ino(inode
))
220 ctf_integer(u64
, start
, map
->start
)
221 ctf_integer(u64
, len
, map
->len
)
222 ctf_integer(u64
, orig_start
, map
->orig_start
)
223 ctf_integer(u64
, block_start
, map
->block_start
)
224 ctf_integer(u64
, block_len
, map
->block_len
)
225 ctf_integer(unsigned long, flags
, map
->flags
)
226 ctf_integer(int, refs
, atomic_read(&map
->refs
))
227 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
231 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
233 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent
,
235 TP_PROTO(struct btrfs_root
*root
, struct extent_map
*map
),
240 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
241 ctf_integer(u64
, start
, map
->start
)
242 ctf_integer(u64
, len
, map
->len
)
243 ctf_integer(u64
, orig_start
, map
->orig_start
)
244 ctf_integer(u64
, block_start
, map
->block_start
)
245 ctf_integer(u64
, block_len
, map
->block_len
)
246 ctf_integer(unsigned long, flags
, map
->flags
)
247 ctf_integer(int, refs
, atomic_read(&map
->refs
))
248 ctf_integer(unsigned int, compress_type
, map
->compress_type
)
252 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
254 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
255 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
257 TP_PROTO(const struct inode
*inode
,
258 const struct btrfs_ordered_extent
*ordered
),
260 TP_ARGS(inode
, ordered
),
263 ctf_integer(ino_t
, ino
, inode
->i_ino
)
264 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
265 ctf_integer(u64
, start
, ordered
->start
)
266 ctf_integer(u64
, len
, ordered
->len
)
267 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
268 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
269 ctf_integer(unsigned long, flags
, ordered
->flags
)
270 ctf_integer(int, compress_type
, ordered
->compress_type
)
271 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
272 ctf_integer(u64
, root_objectid
,
273 BTRFS_I(inode
)->root
->root_key
.objectid
)
276 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
277 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
279 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
281 TP_ARGS(inode
, ordered
),
284 ctf_integer(ino_t
, ino
, inode
->i_ino
)
285 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
286 ctf_integer(u64
, start
, ordered
->start
)
287 ctf_integer(u64
, len
, ordered
->len
)
288 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
289 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
290 ctf_integer(unsigned long, flags
, ordered
->flags
)
291 ctf_integer(int, compress_type
, ordered
->compress_type
)
292 ctf_integer(int, refs
, refcount_read(&ordered
->refs
))
293 ctf_integer(u64
, root_objectid
,
294 BTRFS_I(inode
)->root
->root_key
.objectid
)
298 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent
,
300 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
302 TP_ARGS(inode
, ordered
),
305 ctf_integer(ino_t
, ino
, inode
->i_ino
)
306 ctf_integer(u64
, file_offset
, ordered
->file_offset
)
307 ctf_integer(u64
, start
, ordered
->start
)
308 ctf_integer(u64
, len
, ordered
->len
)
309 ctf_integer(u64
, disk_len
, ordered
->disk_len
)
310 ctf_integer(u64
, bytes_left
, ordered
->bytes_left
)
311 ctf_integer(unsigned long, flags
, ordered
->flags
)
312 ctf_integer(int, compress_type
, ordered
->compress_type
)
313 ctf_integer(int, refs
, atomic_read(&ordered
->refs
))
314 ctf_integer(u64
, root_objectid
,
315 BTRFS_I(inode
)->root
->root_key
.objectid
)
320 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
321 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_add
,
323 TP_PROTO(const struct inode
*inode
,
324 const struct btrfs_ordered_extent
*ordered
),
326 TP_ARGS(inode
, ordered
)
329 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_remove
,
331 TP_PROTO(const struct inode
*inode
,
332 const struct btrfs_ordered_extent
*ordered
),
334 TP_ARGS(inode
, ordered
)
337 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_start
,
339 TP_PROTO(const struct inode
*inode
,
340 const struct btrfs_ordered_extent
*ordered
),
342 TP_ARGS(inode
, ordered
)
345 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_put
,
347 TP_PROTO(const struct inode
*inode
,
348 const struct btrfs_ordered_extent
*ordered
),
350 TP_ARGS(inode
, ordered
)
353 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__writepage
,
355 TP_PROTO(const struct page
*page
, const struct inode
*inode
,
356 const struct writeback_control
*wbc
),
358 TP_ARGS(page
, inode
, wbc
),
361 ctf_integer(ino_t
, ino
, inode
->i_ino
)
362 ctf_integer(pgoff_t
, index
, page
->index
)
363 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
364 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
365 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
366 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
367 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
368 ctf_integer(char, for_reclaim
, wbc
->for_reclaim
)
369 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
370 ctf_integer(pgoff_t
, writeback_index
,
371 inode
->i_mapping
->writeback_index
)
372 ctf_integer(u64
, root_objectid
,
373 BTRFS_I(inode
)->root
->root_key
.objectid
)
377 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs__writepage
,
381 btrfs__extent_writepage
,
383 TP_PROTO(const struct page
*page
, const struct inode
*inode
,
384 const struct writeback_control
*wbc
),
386 TP_ARGS(page
, inode
, wbc
)
389 LTTNG_TRACEPOINT_EVENT(btrfs_writepage_end_io_hook
,
391 TP_PROTO(const struct page
*page
, u64 start
, u64 end
, int uptodate
),
393 TP_ARGS(page
, start
, end
, uptodate
),
396 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
397 ctf_integer(pgoff_t
, index
, page
->index
)
398 ctf_integer(u64
, start
, start
)
399 ctf_integer(u64
, end
, end
)
400 ctf_integer(int, uptodate
, uptodate
)
401 ctf_integer(u64
, root_objectid
,
402 BTRFS_I(page
->mapping
->host
)->root
->root_key
.objectid
)
406 LTTNG_TRACEPOINT_EVENT(btrfs_sync_file
,
408 TP_PROTO(const struct file
*file
, int datasync
),
410 TP_ARGS(file
, datasync
),
413 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
414 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
415 ctf_integer(int, datasync
, datasync
)
416 ctf_integer(u64
, root_objectid
,
417 BTRFS_I(file
->f_path
.dentry
->d_inode
)->root
->root_key
.objectid
)
421 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_add
,
423 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
425 TP_ARGS(inode
, ordered
)
428 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_remove
,
430 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
432 TP_ARGS(inode
, ordered
)
435 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_start
,
437 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
439 TP_ARGS(inode
, ordered
)
442 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent
, btrfs_ordered_extent_put
,
444 TP_PROTO(struct inode
*inode
, struct btrfs_ordered_extent
*ordered
),
446 TP_ARGS(inode
, ordered
)
449 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__writepage
,
451 TP_PROTO(struct page
*page
, struct inode
*inode
,
452 struct writeback_control
*wbc
),
454 TP_ARGS(page
, inode
, wbc
),
457 ctf_integer(ino_t
, ino
, inode
->i_ino
)
458 ctf_integer(pgoff_t
, index
, page
->index
)
459 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
460 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
461 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
462 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
463 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
464 ctf_integer(char, nonblocking
, wbc
->nonblocking
)
466 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
467 ctf_integer(char, for_reclaim
, wbc
->for_reclaim
)
468 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
469 ctf_integer(pgoff_t
, writeback_index
,
470 inode
->i_mapping
->writeback_index
)
471 ctf_integer(u64
, root_objectid
,
472 BTRFS_I(inode
)->root
->root_key
.objectid
)
476 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(btrfs__writepage
,
480 btrfs__extent_writepage
,
482 TP_PROTO(struct page
*page
, struct inode
*inode
,
483 struct writeback_control
*wbc
),
485 TP_ARGS(page
, inode
, wbc
)
488 LTTNG_TRACEPOINT_EVENT(btrfs_writepage_end_io_hook
,
490 TP_PROTO(struct page
*page
, u64 start
, u64 end
, int uptodate
),
492 TP_ARGS(page
, start
, end
, uptodate
),
495 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
496 ctf_integer(pgoff_t
, index
, page
->index
)
497 ctf_integer(u64
, start
, start
)
498 ctf_integer(u64
, end
, end
)
499 ctf_integer(int, uptodate
, uptodate
)
500 ctf_integer(u64
, root_objectid
,
501 BTRFS_I(page
->mapping
->host
)->root
->root_key
.objectid
)
505 LTTNG_TRACEPOINT_EVENT(btrfs_sync_file
,
507 TP_PROTO(struct file
*file
, int datasync
),
509 TP_ARGS(file
, datasync
),
512 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
513 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
514 ctf_integer(int, datasync
, datasync
)
515 ctf_integer(u64
, root_objectid
,
516 BTRFS_I(file
->f_path
.dentry
->d_inode
)->root
->root_key
.objectid
)
521 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
522 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
524 TP_PROTO(const struct btrfs_fs_info
*fs_info
, int wait
),
526 TP_ARGS(fs_info
, wait
),
529 ctf_integer(int, wait
, wait
)
532 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
533 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
535 TP_PROTO(struct btrfs_fs_info
*fs_info
, int wait
),
537 TP_ARGS(fs_info
, wait
),
540 ctf_integer(int, wait
, wait
)
544 LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs
,
551 ctf_integer(int, wait
, wait
)
556 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
557 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
559 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
560 const struct btrfs_block_group_cache
*block_group
, int create
),
562 TP_ARGS(fs_info
, block_group
, create
),
565 ctf_array(u8
, fsid
, fs_info
->fsid
, BTRFS_UUID_SIZE
)
566 ctf_integer(u64
, offset
, block_group
->key
.objectid
)
567 ctf_integer(u64
, size
, block_group
->key
.offset
)
568 ctf_integer(u64
, flags
, block_group
->flags
)
569 ctf_integer(u64
, bytes_used
, btrfs_block_group_used(&block_group
->item
))
570 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
571 ctf_integer(int, create
, create
)
575 LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group
,
577 TP_PROTO(struct btrfs_fs_info
*fs_info
,
578 struct btrfs_block_group_cache
*block_group
, int create
),
580 TP_ARGS(fs_info
, block_group
, create
),
583 ctf_array(u8
, fsid
, fs_info
->fsid
, BTRFS_UUID_SIZE
)
584 ctf_integer(u64
, offset
, block_group
->key
.objectid
)
585 ctf_integer(u64
, size
, block_group
->key
.offset
)
586 ctf_integer(u64
, flags
, block_group
->flags
)
587 ctf_integer(u64
, bytes_used
, btrfs_block_group_used(&block_group
->item
))
588 ctf_integer(u64
, bytes_super
, block_group
->bytes_super
)
589 ctf_integer(int, create
, create
)
594 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
595 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref
,
597 TP_PROTO(const struct btrfs_fs_info
*fs_info
,
598 const struct btrfs_delayed_ref_node
*ref
,
599 const struct btrfs_delayed_tree_ref
*full_ref
,
602 TP_ARGS(fs_info
, ref
, full_ref
, action
),
605 ctf_integer(u64
, bytenr
, ref
->bytenr
)
606 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
607 ctf_integer(int, action
, action
)
608 ctf_integer(u64
, parent
, full_ref
->parent
)
609 ctf_integer(u64
, ref_root
, full_ref
->root
)
610 ctf_integer(int, level
, full_ref
->level
)
611 ctf_integer(int, type
, ref
->type
)
612 ctf_integer(u64
, seq
, ref
->seq
)
615 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
616 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref
,
618 TP_PROTO(struct btrfs_fs_info
*fs_info
,
619 struct btrfs_delayed_ref_node
*ref
,
620 struct btrfs_delayed_tree_ref
*full_ref
,
623 TP_ARGS(fs_info
, ref
, full_ref
, action
),
626 ctf_integer(u64
, bytenr
, ref
->bytenr
)
627 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
628 ctf_integer(int, action
, action
)
629 ctf_integer(u64
, parent
, full_ref
->parent
)
630 ctf_integer(u64
, ref_root
, full_ref
->root
)
631 ctf_integer(int, level
, full_ref
->level
)
632 ctf_integer(int, type
, ref
->type
)
633 ctf_integer(u64
, seq
, ref
->seq
)
637 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref
,
639 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
640 struct btrfs_delayed_tree_ref
*full_ref
,
643 TP_ARGS(ref
, full_ref
, action
),
646 ctf_integer(u64
, bytenr
, ref
->bytenr
)
647 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
648 ctf_integer(int, action
, action
)
649 ctf_integer(u64
, parent
, full_ref
->parent
)
650 ctf_integer(u64
, ref_root
, full_ref
->root
)
651 ctf_integer(int, level
, full_ref
->level
)
652 ctf_integer(int, type
, ref
->type
)
653 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0))
654 ctf_integer(u64
, seq
, ref
->seq
)
660 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_data_ref
,
662 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
663 struct btrfs_delayed_data_ref
*full_ref
,
666 TP_ARGS(ref
, full_ref
, action
),
669 ctf_integer(u64
, bytenr
, ref
->bytenr
)
670 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
671 ctf_integer(int, action
, action
)
672 ctf_integer(u64
, parent
, full_ref
->parent
)
673 ctf_integer(u64
, ref_root
, full_ref
->root
)
674 ctf_integer(u64
, owner
, full_ref
->objectid
)
675 ctf_integer(u64
, offset
, full_ref
->offset
)
676 ctf_integer(int, type
, ref
->type
)
677 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0))
678 ctf_integer(u64
, seq
, ref
->seq
)
683 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
684 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_ref_head
,
686 TP_PROTO(struct btrfs_fs_info
*fs_info
,
687 struct btrfs_delayed_ref_node
*ref
,
688 struct btrfs_delayed_ref_head
*head_ref
,
691 TP_ARGS(fs_info
, ref
, head_ref
, action
),
694 ctf_integer(u64
, bytenr
, ref
->bytenr
)
695 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
696 ctf_integer(int, action
, action
)
697 ctf_integer(int, is_data
, head_ref
->is_data
)
702 LTTNG_TRACEPOINT_EVENT(btrfs_delayed_ref_head
,
704 TP_PROTO(struct btrfs_delayed_ref_node
*ref
,
705 struct btrfs_delayed_ref_head
*head_ref
,
708 TP_ARGS(ref
, head_ref
, action
),
711 ctf_integer(u64
, bytenr
, ref
->bytenr
)
712 ctf_integer(u64
, num_bytes
, ref
->num_bytes
)
713 ctf_integer(int, action
, action
)
714 ctf_integer(int, is_data
, head_ref
->is_data
)
719 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
721 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
723 TP_PROTO(const struct btrfs_fs_info
*fs_info
, const struct map_lookup
*map
,
724 u64 offset
, u64 size
),
726 TP_ARGS(fs_info
, map
, offset
, size
),
729 ctf_integer(int, num_stripes
, map
->num_stripes
)
730 ctf_integer(u64
, type
, map
->type
)
731 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
732 ctf_integer(u64
, offset
, offset
)
733 ctf_integer(u64
, size
, size
)
734 ctf_integer(u64
, root_objectid
, fs_info
->chunk_root
->root_key
.objectid
)
738 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
740 TP_PROTO(const struct btrfs_fs_info
*info
, const struct map_lookup
*map
,
741 u64 offset
, u64 size
),
743 TP_ARGS(info
, map
, offset
, size
)
746 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
748 TP_PROTO(const struct btrfs_fs_info
*info
, const struct map_lookup
*map
,
749 u64 offset
, u64 size
),
751 TP_ARGS(info
, map
, offset
, size
)
754 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
756 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
758 TP_PROTO(struct btrfs_fs_info
*fs_info
, struct map_lookup
*map
,
759 u64 offset
, u64 size
),
761 TP_ARGS(fs_info
, map
, offset
, size
),
764 ctf_integer(int, num_stripes
, map
->num_stripes
)
765 ctf_integer(u64
, type
, map
->type
)
766 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
767 ctf_integer(u64
, offset
, offset
)
768 ctf_integer(u64
, size
, size
)
769 ctf_integer(u64
, root_objectid
, fs_info
->chunk_root
->root_key
.objectid
)
773 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
775 TP_PROTO(struct btrfs_fs_info
*info
, struct map_lookup
*map
,
776 u64 offset
, u64 size
),
778 TP_ARGS(info
, map
, offset
, size
)
781 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
783 TP_PROTO(struct btrfs_fs_info
*info
, struct map_lookup
*map
,
784 u64 offset
, u64 size
),
786 TP_ARGS(info
, map
, offset
, size
)
789 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
791 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk
,
793 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
794 u64 offset
, u64 size
),
796 TP_ARGS(root
, map
, offset
, size
),
799 ctf_integer(int, num_stripes
, map
->num_stripes
)
800 ctf_integer(u64
, type
, map
->type
)
801 ctf_integer(int, sub_stripes
, map
->sub_stripes
)
802 ctf_integer(u64
, offset
, offset
)
803 ctf_integer(u64
, size
, size
)
804 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
808 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_alloc
,
810 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
811 u64 offset
, u64 size
),
813 TP_ARGS(root
, map
, offset
, size
)
816 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk
, btrfs_chunk_free
,
818 TP_PROTO(struct btrfs_root
*root
, struct map_lookup
*map
,
819 u64 offset
, u64 size
),
821 TP_ARGS(root
, map
, offset
, size
)
824 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
826 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
827 LTTNG_TRACEPOINT_EVENT(btrfs_cow_block
,
829 TP_PROTO(const struct btrfs_root
*root
, const struct extent_buffer
*buf
,
830 const struct extent_buffer
*cow
),
832 TP_ARGS(root
, buf
, cow
),
835 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
836 ctf_integer(u64
, buf_start
, buf
->start
)
837 ctf_integer(int, refs
, atomic_read(&buf
->refs
))
838 ctf_integer(u64
, cow_start
, cow
->start
)
839 ctf_integer(int, buf_level
, btrfs_header_level(buf
))
840 ctf_integer(int, cow_level
, btrfs_header_level(cow
))
844 LTTNG_TRACEPOINT_EVENT(btrfs_cow_block
,
846 TP_PROTO(struct btrfs_root
*root
, struct extent_buffer
*buf
,
847 struct extent_buffer
*cow
),
849 TP_ARGS(root
, buf
, cow
),
852 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
853 ctf_integer(u64
, buf_start
, buf
->start
)
854 ctf_integer(int, refs
, atomic_read(&buf
->refs
))
855 ctf_integer(u64
, cow_start
, cow
->start
)
856 ctf_integer(int, buf_level
, btrfs_header_level(buf
))
857 ctf_integer(int, cow_level
, btrfs_header_level(cow
))
862 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
863 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
865 TP_PROTO(const struct btrfs_fs_info
*fs_info
, char *type
, u64 val
,
866 u64 bytes
, int reserve
),
868 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
871 ctf_array(u8
, fsid
, fs_info
->fsid
, BTRFS_UUID_SIZE
)
872 ctf_string(type
, type
)
873 ctf_integer(u64
, val
, val
)
874 ctf_integer(u64
, bytes
, bytes
)
875 ctf_integer(int, reserve
, reserve
)
878 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
879 LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation
,
881 TP_PROTO(struct btrfs_fs_info
*fs_info
, char *type
, u64 val
,
882 u64 bytes
, int reserve
),
884 TP_ARGS(fs_info
, type
, val
, bytes
, reserve
),
887 ctf_array(u8
, fsid
, fs_info
->fsid
, BTRFS_UUID_SIZE
)
888 ctf_string(type
, type
)
889 ctf_integer(u64
, val
, val
)
890 ctf_integer(u64
, bytes
, bytes
)
891 ctf_integer(int, reserve
, reserve
)
896 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
898 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
900 TP_PROTO(const struct btrfs_fs_info
*info
, u64 start
, u64 len
),
902 TP_ARGS(info
, start
, len
),
905 ctf_integer(u64
, start
, start
)
906 ctf_integer(u64
, len
, len
)
910 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
912 TP_PROTO(const struct btrfs_fs_info
*info
, u64 start
, u64 len
),
914 TP_ARGS(info
, start
, len
)
917 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
919 TP_PROTO(const struct btrfs_fs_info
*info
, u64 start
, u64 len
),
921 TP_ARGS(info
, start
, len
)
924 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
926 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
928 TP_PROTO(struct btrfs_fs_info
*info
, u64 start
, u64 len
),
930 TP_ARGS(info
, start
, len
),
933 ctf_integer(u64
, start
, start
)
934 ctf_integer(u64
, len
, len
)
938 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
940 TP_PROTO(struct btrfs_fs_info
*info
, u64 start
, u64 len
),
942 TP_ARGS(info
, start
, len
)
945 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
947 TP_PROTO(struct btrfs_fs_info
*info
, u64 start
, u64 len
),
949 TP_ARGS(info
, start
, len
)
952 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
954 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent
,
956 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
958 TP_ARGS(root
, start
, len
),
961 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
962 ctf_integer(u64
, start
, start
)
963 ctf_integer(u64
, len
, len
)
967 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_alloc
,
969 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
971 TP_ARGS(root
, start
, len
)
974 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent
, btrfs_reserved_extent_free
,
976 TP_PROTO(struct btrfs_root
*root
, u64 start
, u64 len
),
978 TP_ARGS(root
, start
, len
)
981 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
983 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
985 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
987 btrfs_find_free_extent
,
989 TP_PROTO(const struct btrfs_fs_info
*info
, u64 num_bytes
, u64 empty_size
,
992 TP_ARGS(info
, num_bytes
, empty_size
, data
),
995 ctf_integer(u64
, num_bytes
, num_bytes
)
996 ctf_integer(u64
, empty_size
, empty_size
)
997 ctf_integer(u64
, data
, data
)
1001 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
1003 TP_PROTO(const struct btrfs_fs_info
*info
,
1004 const struct btrfs_block_group_cache
*block_group
, u64 start
,
1007 TP_ARGS(info
, block_group
, start
, len
),
1010 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1011 ctf_integer(u64
, flags
, block_group
->flags
)
1012 ctf_integer(u64
, start
, start
)
1013 ctf_integer(u64
, len
, len
)
1017 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
1019 TP_PROTO(const struct btrfs_fs_info
*info
,
1020 const struct btrfs_block_group_cache
*block_group
, u64 start
,
1023 TP_ARGS(info
, block_group
, start
, len
)
1026 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
1028 TP_PROTO(const struct btrfs_fs_info
*info
,
1029 const struct btrfs_block_group_cache
*block_group
, u64 start
,
1032 TP_ARGS(info
, block_group
, start
, len
)
1035 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
1037 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1039 btrfs_find_free_extent
,
1041 TP_PROTO(struct btrfs_fs_info
*info
, u64 num_bytes
, u64 empty_size
,
1044 TP_ARGS(info
, num_bytes
, empty_size
, data
),
1047 ctf_integer(u64
, num_bytes
, num_bytes
)
1048 ctf_integer(u64
, empty_size
, empty_size
)
1049 ctf_integer(u64
, data
, data
)
1053 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
1055 TP_PROTO(struct btrfs_fs_info
*info
,
1056 struct btrfs_block_group_cache
*block_group
, u64 start
,
1059 TP_ARGS(info
, block_group
, start
, len
),
1062 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1063 ctf_integer(u64
, flags
, block_group
->flags
)
1064 ctf_integer(u64
, start
, start
)
1065 ctf_integer(u64
, len
, len
)
1069 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
1071 TP_PROTO(struct btrfs_fs_info
*info
,
1072 struct btrfs_block_group_cache
*block_group
, u64 start
,
1075 TP_ARGS(info
, block_group
, start
, len
)
1078 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
1080 TP_PROTO(struct btrfs_fs_info
*info
,
1081 struct btrfs_block_group_cache
*block_group
, u64 start
,
1084 TP_ARGS(info
, block_group
, start
, len
)
1087 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
1089 LTTNG_TRACEPOINT_EVENT_MAP(find_free_extent
,
1091 btrfs_find_free_extent
,
1093 TP_PROTO(struct btrfs_root
*root
, u64 num_bytes
, u64 empty_size
,
1096 TP_ARGS(root
, num_bytes
, empty_size
, data
),
1099 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1100 ctf_integer(u64
, num_bytes
, num_bytes
)
1101 ctf_integer(u64
, empty_size
, empty_size
)
1102 ctf_integer(u64
, data
, data
)
1106 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent
,
1108 TP_PROTO(struct btrfs_root
*root
,
1109 struct btrfs_block_group_cache
*block_group
, u64 start
,
1112 TP_ARGS(root
, block_group
, start
, len
),
1115 ctf_integer(u64
, root_objectid
, root
->root_key
.objectid
)
1116 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1117 ctf_integer(u64
, flags
, block_group
->flags
)
1118 ctf_integer(u64
, start
, start
)
1119 ctf_integer(u64
, len
, len
)
1123 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent
,
1125 TP_PROTO(struct btrfs_root
*root
,
1126 struct btrfs_block_group_cache
*block_group
, u64 start
,
1129 TP_ARGS(root
, block_group
, start
, len
)
1132 LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent
, btrfs_reserve_extent_cluster
,
1134 TP_PROTO(struct btrfs_root
*root
,
1135 struct btrfs_block_group_cache
*block_group
, u64 start
,
1138 TP_ARGS(root
, block_group
, start
, len
)
1141 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
1143 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
1144 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
1146 TP_PROTO(const struct btrfs_block_group_cache
*block_group
, u64 start
,
1147 u64 bytes
, u64 empty_size
, u64 min_bytes
),
1149 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
1152 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1153 ctf_integer(u64
, flags
, block_group
->flags
)
1154 ctf_integer(u64
, start
, start
)
1155 ctf_integer(u64
, bytes
, bytes
)
1156 ctf_integer(u64
, empty_size
, empty_size
)
1157 ctf_integer(u64
, min_bytes
, min_bytes
)
1161 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
1163 TP_PROTO(const struct btrfs_block_group_cache
*block_group
),
1165 TP_ARGS(block_group
),
1168 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1172 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
1174 TP_PROTO(const struct btrfs_block_group_cache
*block_group
,
1175 const struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
1177 TP_ARGS(block_group
, cluster
, size
, bitmap
),
1180 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1181 ctf_integer(u64
, flags
, block_group
->flags
)
1182 ctf_integer(u64
, start
, cluster
->window_start
)
1183 ctf_integer(u64
, max_size
, cluster
->max_size
)
1184 ctf_integer(u64
, size
, size
)
1185 ctf_integer(int, bitmap
, bitmap
)
1188 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
1189 LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster
,
1191 TP_PROTO(struct btrfs_block_group_cache
*block_group
, u64 start
,
1192 u64 bytes
, u64 empty_size
, u64 min_bytes
),
1194 TP_ARGS(block_group
, start
, bytes
, empty_size
, min_bytes
),
1197 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1198 ctf_integer(u64
, flags
, block_group
->flags
)
1199 ctf_integer(u64
, start
, start
)
1200 ctf_integer(u64
, bytes
, bytes
)
1201 ctf_integer(u64
, empty_size
, empty_size
)
1202 ctf_integer(u64
, min_bytes
, min_bytes
)
1206 LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup
,
1208 TP_PROTO(struct btrfs_block_group_cache
*block_group
),
1210 TP_ARGS(block_group
),
1213 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1217 LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster
,
1219 TP_PROTO(struct btrfs_block_group_cache
*block_group
,
1220 struct btrfs_free_cluster
*cluster
, u64 size
, int bitmap
),
1222 TP_ARGS(block_group
, cluster
, size
, bitmap
),
1225 ctf_integer(u64
, bg_objectid
, block_group
->key
.objectid
)
1226 ctf_integer(u64
, flags
, block_group
->flags
)
1227 ctf_integer(u64
, start
, cluster
->window_start
)
1228 ctf_integer(u64
, max_size
, cluster
->max_size
)
1229 ctf_integer(u64
, size
, size
)
1230 ctf_integer(int, bitmap
, bitmap
)
1235 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
1236 LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state
,
1238 btrfs_alloc_extent_state
,
1240 TP_PROTO(const struct extent_state
*state
, gfp_t mask
, unsigned long IP
),
1242 TP_ARGS(state
, mask
, IP
),
1245 ctf_integer_hex(const struct extent_state
*, state
, state
)
1246 ctf_integer(gfp_t
, mask
, mask
)
1247 ctf_integer(unsigned long, ip
, IP
)
1251 LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state
,
1253 btrfs_free_extent_state
,
1255 TP_PROTO(const struct extent_state
*state
, unsigned long IP
),
1260 ctf_integer_hex(const struct extent_state
*, state
, state
)
1261 ctf_integer(unsigned long, ip
, IP
)
1264 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
1265 LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state
,
1267 btrfs_alloc_extent_state
,
1269 TP_PROTO(struct extent_state
*state
, gfp_t mask
, unsigned long IP
),
1271 TP_ARGS(state
, mask
, IP
),
1274 ctf_integer_hex(struct extent_state
*, state
, state
)
1275 ctf_integer(gfp_t
, mask
, mask
)
1276 ctf_integer(unsigned long, ip
, IP
)
1280 LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state
,
1282 btrfs_free_extent_state
,
1284 TP_PROTO(struct extent_state
*state
, unsigned long IP
),
1289 ctf_integer_hex(struct extent_state
*, state
, state
)
1290 ctf_integer(unsigned long, ip
, IP
)
1295 #endif /* LTTNG_TRACE_BTRFS_H */
1297 /* This part must be outside protection */
1298 #include <probes/define_trace.h>