1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM ext4
5 #if !defined(LTTNG_TRACE_EXT4_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_EXT4_H
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/writeback.h>
10 #include <linux/version.h>
12 #ifndef _TRACE_EXT4_DEF_
13 #define _TRACE_EXT4_DEF_
14 struct ext4_allocation_context
;
15 struct ext4_allocation_request
;
16 struct ext4_prealloc_space
;
17 struct ext4_inode_info
;
19 struct ext4_map_blocks
;
20 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
25 #define EXT4_I(inode) (container_of(inode, struct ext4_inode_info, vfs_inode))
26 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
27 #define TP_MODE_T __u16
29 #define TP_MODE_T umode_t
32 LTTNG_TRACEPOINT_EVENT(ext4_free_inode
,
33 TP_PROTO(struct inode
*inode
),
38 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
39 ctf_integer(ino_t
, ino
, inode
->i_ino
)
40 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
41 ctf_integer(uid_t
, uid
, i_uid_read(inode
))
42 ctf_integer(gid_t
, gid
, i_gid_read(inode
))
44 ctf_integer(uid_t
, uid
, inode
->i_uid
)
45 ctf_integer(gid_t
, gid
, inode
->i_gid
)
47 ctf_integer(__u64
, blocks
, inode
->i_blocks
)
48 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
52 LTTNG_TRACEPOINT_EVENT(ext4_request_inode
,
53 TP_PROTO(struct inode
*dir
, int mode
),
58 ctf_integer(dev_t
, dev
, dir
->i_sb
->s_dev
)
59 ctf_integer(ino_t
, dir
, dir
->i_ino
)
60 ctf_integer(TP_MODE_T
, mode
, mode
)
64 LTTNG_TRACEPOINT_EVENT(ext4_allocate_inode
,
65 TP_PROTO(struct inode
*inode
, struct inode
*dir
, int mode
),
67 TP_ARGS(inode
, dir
, mode
),
70 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
71 ctf_integer(ino_t
, ino
, inode
->i_ino
)
72 ctf_integer(ino_t
, dir
, dir
->i_ino
)
73 ctf_integer(TP_MODE_T
, mode
, mode
)
77 LTTNG_TRACEPOINT_EVENT(ext4_evict_inode
,
78 TP_PROTO(struct inode
*inode
),
83 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
84 ctf_integer(ino_t
, ino
, inode
->i_ino
)
85 ctf_integer(int, nlink
, inode
->i_nlink
)
89 LTTNG_TRACEPOINT_EVENT(ext4_drop_inode
,
90 TP_PROTO(struct inode
*inode
, int drop
),
95 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
96 ctf_integer(ino_t
, ino
, inode
->i_ino
)
97 ctf_integer(int, drop
, drop
)
101 LTTNG_TRACEPOINT_EVENT(ext4_mark_inode_dirty
,
102 TP_PROTO(struct inode
*inode
, unsigned long IP
),
107 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
108 ctf_integer(ino_t
, ino
, inode
->i_ino
)
109 ctf_integer(unsigned long, ip
, IP
)
113 LTTNG_TRACEPOINT_EVENT(ext4_begin_ordered_truncate
,
114 TP_PROTO(struct inode
*inode
, loff_t new_size
),
116 TP_ARGS(inode
, new_size
),
119 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
120 ctf_integer(ino_t
, ino
, inode
->i_ino
)
121 ctf_integer(loff_t
, new_size
, new_size
)
125 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__write_begin
,
127 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
130 TP_ARGS(inode
, pos
, len
, flags
),
133 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
134 ctf_integer(ino_t
, ino
, inode
->i_ino
)
135 ctf_integer(loff_t
, pos
, pos
)
136 ctf_integer(unsigned int, len
, len
)
137 ctf_integer(unsigned int, flags
, flags
)
141 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_begin
, ext4_write_begin
,
143 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
146 TP_ARGS(inode
, pos
, len
, flags
)
149 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_begin
, ext4_da_write_begin
,
151 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
154 TP_ARGS(inode
, pos
, len
, flags
)
157 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__write_end
,
158 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
159 unsigned int copied
),
161 TP_ARGS(inode
, pos
, len
, copied
),
164 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
165 ctf_integer(ino_t
, ino
, inode
->i_ino
)
166 ctf_integer(loff_t
, pos
, pos
)
167 ctf_integer(unsigned int, len
, len
)
168 ctf_integer(unsigned int, copied
, copied
)
172 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_ordered_write_end
,
174 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
175 unsigned int copied
),
177 TP_ARGS(inode
, pos
, len
, copied
)
180 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_writeback_write_end
,
182 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
183 unsigned int copied
),
185 TP_ARGS(inode
, pos
, len
, copied
)
188 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_journalled_write_end
,
190 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
191 unsigned int copied
),
193 TP_ARGS(inode
, pos
, len
, copied
)
196 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_da_write_end
,
198 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
199 unsigned int copied
),
201 TP_ARGS(inode
, pos
, len
, copied
)
204 LTTNG_TRACEPOINT_EVENT(ext4_da_writepages
,
205 TP_PROTO(struct inode
*inode
, struct writeback_control
*wbc
),
210 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
211 ctf_integer(ino_t
, ino
, inode
->i_ino
)
212 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
213 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
214 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
215 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
216 ctf_integer(pgoff_t
, writeback_index
, inode
->i_mapping
->writeback_index
)
217 ctf_integer(int, sync_mode
, wbc
->sync_mode
)
218 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
219 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
223 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
225 LTTNG_TRACEPOINT_EVENT(ext4_da_write_pages
,
226 TP_PROTO(struct inode
*inode
, pgoff_t first_page
,
227 struct writeback_control
*wbc
),
229 TP_ARGS(inode
, first_page
, wbc
),
232 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
233 ctf_integer(ino_t
, ino
, inode
->i_ino
)
234 ctf_integer(pgoff_t
, first_page
, first_page
)
235 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
236 ctf_integer(int, sync_mode
, wbc
->sync_mode
)
242 LTTNG_TRACEPOINT_EVENT(ext4_da_write_pages
,
243 TP_PROTO(struct inode
*inode
, struct mpage_da_data
*mpd
),
248 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
249 ctf_integer(ino_t
, ino
, inode
->i_ino
)
250 ctf_integer(__u64
, b_blocknr
, mpd
->b_blocknr
)
251 ctf_integer(__u32
, b_size
, mpd
->b_size
)
252 ctf_integer(__u32
, b_state
, mpd
->b_state
)
253 ctf_integer(unsigned long, first_page
, mpd
->first_page
)
254 ctf_integer(int, io_done
, mpd
->io_done
)
255 ctf_integer(int, pages_written
, mpd
->pages_written
)
256 ctf_integer(int, sync_mode
, mpd
->wbc
->sync_mode
)
262 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
264 LTTNG_TRACEPOINT_EVENT(ext4_da_write_pages_extent
,
265 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
),
270 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
271 ctf_integer(ino_t
, ino
, inode
->i_ino
)
272 ctf_integer(__u64
, lblk
, map
->m_lblk
)
273 ctf_integer(__u32
, len
, map
->m_len
)
274 ctf_integer(__u32
, flags
, map
->m_flags
)
280 LTTNG_TRACEPOINT_EVENT(ext4_da_writepages_result
,
281 TP_PROTO(struct inode
*inode
, struct writeback_control
*wbc
,
282 int ret
, int pages_written
),
284 TP_ARGS(inode
, wbc
, ret
, pages_written
),
287 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
288 ctf_integer(ino_t
, ino
, inode
->i_ino
)
289 ctf_integer(int, ret
, ret
)
290 ctf_integer(int, pages_written
, pages_written
)
291 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
292 ctf_integer(pgoff_t
, writeback_index
, inode
->i_mapping
->writeback_index
)
293 ctf_integer(int, sync_mode
, wbc
->sync_mode
)
297 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__page_op
,
298 TP_PROTO(struct page
*page
),
303 ctf_integer(dev_t
, dev
, page
->mapping
->host
->i_sb
->s_dev
)
304 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
305 ctf_integer(pgoff_t
, index
, page
->index
)
309 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__page_op
, ext4_writepage
,
311 TP_PROTO(struct page
*page
),
316 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__page_op
, ext4_readpage
,
318 TP_PROTO(struct page
*page
),
323 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__page_op
, ext4_releasepage
,
325 TP_PROTO(struct page
*page
),
330 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
332 LTTNG_TRACEPOINT_EVENT_CLASS(ext4_invalidatepage_op
,
333 TP_PROTO(struct page
*page
, unsigned int offset
, unsigned int length
),
335 TP_ARGS(page
, offset
, length
),
338 ctf_integer(dev_t
, dev
, page
->mapping
->host
->i_sb
->s_dev
)
339 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
340 ctf_integer(pgoff_t
, index
, page
->index
)
341 ctf_integer(unsigned int, offset
, offset
)
342 ctf_integer(unsigned int, length
, length
)
346 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4_invalidatepage_op
, ext4_invalidatepage
,
347 TP_PROTO(struct page
*page
, unsigned int offset
, unsigned int length
),
349 TP_ARGS(page
, offset
, length
)
352 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4_invalidatepage_op
, ext4_journalled_invalidatepage
,
353 TP_PROTO(struct page
*page
, unsigned int offset
, unsigned int length
),
355 TP_ARGS(page
, offset
, length
)
360 LTTNG_TRACEPOINT_EVENT(ext4_invalidatepage
,
361 TP_PROTO(struct page
*page
, unsigned long offset
),
363 TP_ARGS(page
, offset
),
366 ctf_integer(dev_t
, dev
, page
->mapping
->host
->i_sb
->s_dev
)
367 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
368 ctf_integer(pgoff_t
, index
, page
->index
)
369 ctf_integer(unsigned long, offset
, offset
)
376 LTTNG_TRACEPOINT_EVENT(ext4_discard_blocks
,
377 TP_PROTO(struct super_block
*sb
, unsigned long long blk
,
378 unsigned long long count
),
380 TP_ARGS(sb
, blk
, count
),
383 ctf_integer(dev_t
, dev
, sb
->s_dev
)
384 ctf_integer(__u64
, blk
, blk
)
385 ctf_integer(__u64
, count
, count
)
389 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__mb_new_pa
,
390 TP_PROTO(struct ext4_allocation_context
*ac
,
391 struct ext4_prealloc_space
*pa
),
396 ctf_integer(dev_t
, dev
, ac
->ac_sb
->s_dev
)
397 ctf_integer(ino_t
, ino
, ac
->ac_inode
->i_ino
)
398 ctf_integer(__u64
, pa_pstart
, pa
->pa_pstart
)
399 ctf_integer(__u64
, pa_lstart
, pa
->pa_lstart
)
400 ctf_integer(__u32
, pa_len
, pa
->pa_len
)
404 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mb_new_pa
, ext4_mb_new_inode_pa
,
406 TP_PROTO(struct ext4_allocation_context
*ac
,
407 struct ext4_prealloc_space
*pa
),
412 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mb_new_pa
, ext4_mb_new_group_pa
,
414 TP_PROTO(struct ext4_allocation_context
*ac
,
415 struct ext4_prealloc_space
*pa
),
420 LTTNG_TRACEPOINT_EVENT(ext4_mb_release_inode_pa
,
422 struct ext4_prealloc_space
*pa
,
423 unsigned long long block
, unsigned int count
),
425 TP_ARGS(pa
, block
, count
),
428 ctf_integer(dev_t
, dev
, pa
->pa_inode
->i_sb
->s_dev
)
429 ctf_integer(ino_t
, ino
, pa
->pa_inode
->i_ino
)
430 ctf_integer(__u64
, block
, block
)
431 ctf_integer(__u32
, count
, count
)
435 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
436 LTTNG_TRACEPOINT_EVENT(ext4_mb_release_group_pa
,
438 TP_PROTO(struct super_block
*sb
, struct ext4_prealloc_space
*pa
),
443 ctf_integer(dev_t
, dev
, sb
->s_dev
)
444 ctf_integer(__u64
, pa_pstart
, pa
->pa_pstart
)
445 ctf_integer(__u32
, pa_len
, pa
->pa_len
)
449 LTTNG_TRACEPOINT_EVENT(ext4_mb_release_group_pa
,
451 TP_PROTO(struct ext4_prealloc_space
*pa
),
456 ctf_integer(dev_t
, dev
, pa
->pa_inode
->i_sb
->s_dev
)
457 ctf_integer(__u64
, pa_pstart
, pa
->pa_pstart
)
458 ctf_integer(__u32
, pa_len
, pa
->pa_len
)
463 LTTNG_TRACEPOINT_EVENT(ext4_discard_preallocations
,
464 TP_PROTO(struct inode
*inode
),
469 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
470 ctf_integer(ino_t
, ino
, inode
->i_ino
)
474 LTTNG_TRACEPOINT_EVENT(ext4_mb_discard_preallocations
,
475 TP_PROTO(struct super_block
*sb
, int needed
),
480 ctf_integer(dev_t
, dev
, sb
->s_dev
)
481 ctf_integer(int, needed
, needed
)
485 LTTNG_TRACEPOINT_EVENT(ext4_request_blocks
,
486 TP_PROTO(struct ext4_allocation_request
*ar
),
491 ctf_integer(dev_t
, dev
, ar
->inode
->i_sb
->s_dev
)
492 ctf_integer(ino_t
, ino
, ar
->inode
->i_ino
)
493 ctf_integer(unsigned int, len
, ar
->len
)
494 ctf_integer(__u32
, logical
, ar
->logical
)
495 ctf_integer(__u32
, lleft
, ar
->lleft
)
496 ctf_integer(__u32
, lright
, ar
->lright
)
497 ctf_integer(__u64
, goal
, ar
->goal
)
498 ctf_integer(__u64
, pleft
, ar
->pleft
)
499 ctf_integer(__u64
, pright
, ar
->pright
)
500 ctf_integer(unsigned int, flags
, ar
->flags
)
504 LTTNG_TRACEPOINT_EVENT(ext4_allocate_blocks
,
505 TP_PROTO(struct ext4_allocation_request
*ar
, unsigned long long block
),
510 ctf_integer(dev_t
, dev
, ar
->inode
->i_sb
->s_dev
)
511 ctf_integer(ino_t
, ino
, ar
->inode
->i_ino
)
512 ctf_integer(__u64
, block
, block
)
513 ctf_integer(unsigned int, len
, ar
->len
)
514 ctf_integer(__u32
, logical
, ar
->logical
)
515 ctf_integer(__u32
, lleft
, ar
->lleft
)
516 ctf_integer(__u32
, lright
, ar
->lright
)
517 ctf_integer(__u64
, goal
, ar
->goal
)
518 ctf_integer(__u64
, pleft
, ar
->pleft
)
519 ctf_integer(__u64
, pright
, ar
->pright
)
520 ctf_integer(unsigned int, flags
, ar
->flags
)
524 LTTNG_TRACEPOINT_EVENT(ext4_free_blocks
,
525 TP_PROTO(struct inode
*inode
, __u64 block
, unsigned long count
,
528 TP_ARGS(inode
, block
, count
, flags
),
531 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
532 ctf_integer(ino_t
, ino
, inode
->i_ino
)
533 ctf_integer(__u64
, block
, block
)
534 ctf_integer(unsigned long, count
, count
)
535 ctf_integer(int, flags
, flags
)
536 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
540 LTTNG_TRACEPOINT_EVENT(ext4_sync_file_enter
,
541 TP_PROTO(struct file
*file
, int datasync
),
543 TP_ARGS(file
, datasync
),
546 ctf_integer(dev_t
, dev
, file
->f_path
.dentry
->d_inode
->i_sb
->s_dev
)
547 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
548 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
549 ctf_integer(int, datasync
, datasync
)
553 LTTNG_TRACEPOINT_EVENT(ext4_sync_file_exit
,
554 TP_PROTO(struct inode
*inode
, int ret
),
559 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
560 ctf_integer(ino_t
, ino
, inode
->i_ino
)
561 ctf_integer(int, ret
, ret
)
565 LTTNG_TRACEPOINT_EVENT(ext4_sync_fs
,
566 TP_PROTO(struct super_block
*sb
, int wait
),
571 ctf_integer(dev_t
, dev
, sb
->s_dev
)
572 ctf_integer(int, wait
, wait
)
577 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
578 LTTNG_TRACEPOINT_EVENT(ext4_alloc_da_blocks
,
579 TP_PROTO(struct inode
*inode
),
584 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
585 ctf_integer(ino_t
, ino
, inode
->i_ino
)
586 ctf_integer(unsigned int, data_blocks
, EXT4_I(inode
)->i_reserved_data_blocks
)
590 LTTNG_TRACEPOINT_EVENT(ext4_alloc_da_blocks
,
591 TP_PROTO(struct inode
*inode
),
596 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
597 ctf_integer(ino_t
, ino
, inode
->i_ino
)
598 ctf_integer(unsigned int, data_blocks
, EXT4_I(inode
)->i_reserved_data_blocks
)
599 ctf_integer(unsigned int, meta_blocks
, EXT4_I(inode
)->i_reserved_meta_blocks
)
604 LTTNG_TRACEPOINT_EVENT(ext4_mballoc_alloc
,
605 TP_PROTO(struct ext4_allocation_context
*ac
),
610 ctf_integer(dev_t
, dev
, ac
->ac_inode
->i_sb
->s_dev
)
611 ctf_integer(ino_t
, ino
, ac
->ac_inode
->i_ino
)
612 ctf_integer(__u32
, orig_logical
, ac
->ac_o_ex
.fe_logical
)
613 ctf_integer(int, orig_start
, ac
->ac_o_ex
.fe_start
)
614 ctf_integer(__u32
, orig_group
, ac
->ac_o_ex
.fe_group
)
615 ctf_integer(int, orig_len
, ac
->ac_o_ex
.fe_len
)
616 ctf_integer(__u32
, goal_logical
, ac
->ac_g_ex
.fe_logical
)
617 ctf_integer(int, goal_start
, ac
->ac_g_ex
.fe_start
)
618 ctf_integer(__u32
, goal_group
, ac
->ac_g_ex
.fe_group
)
619 ctf_integer(int, goal_len
, ac
->ac_g_ex
.fe_len
)
620 ctf_integer(__u32
, result_logical
, ac
->ac_f_ex
.fe_logical
)
621 ctf_integer(int, result_start
, ac
->ac_f_ex
.fe_start
)
622 ctf_integer(__u32
, result_group
, ac
->ac_f_ex
.fe_group
)
623 ctf_integer(int, result_len
, ac
->ac_f_ex
.fe_len
)
624 ctf_integer(__u16
, found
, ac
->ac_found
)
625 ctf_integer(__u16
, groups
, ac
->ac_groups_scanned
)
626 ctf_integer(__u16
, buddy
, ac
->ac_buddy
)
627 ctf_integer(__u16
, flags
, ac
->ac_flags
)
628 ctf_integer(__u16
, tail
, ac
->ac_tail
)
629 ctf_integer(__u8
, cr
, ac
->ac_criteria
)
633 LTTNG_TRACEPOINT_EVENT(ext4_mballoc_prealloc
,
634 TP_PROTO(struct ext4_allocation_context
*ac
),
639 ctf_integer(dev_t
, dev
, ac
->ac_inode
->i_sb
->s_dev
)
640 ctf_integer(ino_t
, ino
, ac
->ac_inode
->i_ino
)
641 ctf_integer(__u32
, orig_logical
, ac
->ac_o_ex
.fe_logical
)
642 ctf_integer(int, orig_start
, ac
->ac_o_ex
.fe_start
)
643 ctf_integer(__u32
, orig_group
, ac
->ac_o_ex
.fe_group
)
644 ctf_integer(int, orig_len
, ac
->ac_o_ex
.fe_len
)
645 ctf_integer(__u32
, result_logical
, ac
->ac_b_ex
.fe_logical
)
646 ctf_integer(int, result_start
, ac
->ac_b_ex
.fe_start
)
647 ctf_integer(__u32
, result_group
, ac
->ac_b_ex
.fe_group
)
648 ctf_integer(int, result_len
, ac
->ac_b_ex
.fe_len
)
652 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__mballoc
,
653 TP_PROTO(struct super_block
*sb
,
659 TP_ARGS(sb
, inode
, group
, start
, len
),
662 ctf_integer(dev_t
, dev
, sb
->s_dev
)
663 ctf_integer(ino_t
, ino
, inode
? inode
->i_ino
: 0)
664 ctf_integer(int, result_start
, start
)
665 ctf_integer(__u32
, result_group
, group
)
666 ctf_integer(int, result_len
, len
)
670 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mballoc
, ext4_mballoc_discard
,
672 TP_PROTO(struct super_block
*sb
,
678 TP_ARGS(sb
, inode
, group
, start
, len
)
681 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mballoc
, ext4_mballoc_free
,
683 TP_PROTO(struct super_block
*sb
,
689 TP_ARGS(sb
, inode
, group
, start
, len
)
692 LTTNG_TRACEPOINT_EVENT(ext4_forget
,
693 TP_PROTO(struct inode
*inode
, int is_metadata
, __u64 block
),
695 TP_ARGS(inode
, is_metadata
, block
),
698 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
699 ctf_integer(ino_t
, ino
, inode
->i_ino
)
700 ctf_integer(__u64
, block
, block
)
701 ctf_integer(int, is_metadata
, is_metadata
)
702 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
706 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
707 LTTNG_TRACEPOINT_EVENT(ext4_da_update_reserve_space
,
708 TP_PROTO(struct inode
*inode
, int used_blocks
, int quota_claim
),
710 TP_ARGS(inode
, used_blocks
, quota_claim
),
713 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
714 ctf_integer(ino_t
, ino
, inode
->i_ino
)
715 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
716 ctf_integer(int, used_blocks
, used_blocks
)
717 ctf_integer(int, reserved_data_blocks
,
718 EXT4_I(inode
)->i_reserved_data_blocks
)
719 ctf_integer(int, quota_claim
, quota_claim
)
720 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
723 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
724 LTTNG_TRACEPOINT_EVENT(ext4_da_update_reserve_space
,
725 TP_PROTO(struct inode
*inode
, int used_blocks
, int quota_claim
),
727 TP_ARGS(inode
, used_blocks
, quota_claim
),
730 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
731 ctf_integer(ino_t
, ino
, inode
->i_ino
)
732 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
733 ctf_integer(int, used_blocks
, used_blocks
)
734 ctf_integer(int, reserved_data_blocks
,
735 EXT4_I(inode
)->i_reserved_data_blocks
)
736 ctf_integer(int, reserved_meta_blocks
,
737 EXT4_I(inode
)->i_reserved_meta_blocks
)
738 ctf_integer(int, allocated_meta_blocks
,
739 EXT4_I(inode
)->i_allocated_meta_blocks
)
740 ctf_integer(int, quota_claim
, quota_claim
)
741 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
745 LTTNG_TRACEPOINT_EVENT(ext4_da_update_reserve_space
,
746 TP_PROTO(struct inode
*inode
, int used_blocks
),
748 TP_ARGS(inode
, used_blocks
),
751 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
752 ctf_integer(ino_t
, ino
, inode
->i_ino
)
753 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
754 ctf_integer(int, used_blocks
, used_blocks
)
755 ctf_integer(int, reserved_data_blocks
,
756 EXT4_I(inode
)->i_reserved_data_blocks
)
757 ctf_integer(int, reserved_meta_blocks
,
758 EXT4_I(inode
)->i_reserved_meta_blocks
)
759 ctf_integer(int, allocated_meta_blocks
,
760 EXT4_I(inode
)->i_allocated_meta_blocks
)
761 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
766 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
767 LTTNG_TRACEPOINT_EVENT(ext4_da_reserve_space
,
768 TP_PROTO(struct inode
*inode
),
773 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
774 ctf_integer(ino_t
, ino
, inode
->i_ino
)
775 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
776 ctf_integer(int, reserved_data_blocks
,
777 EXT4_I(inode
)->i_reserved_data_blocks
)
778 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
781 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
782 LTTNG_TRACEPOINT_EVENT(ext4_da_reserve_space
,
783 TP_PROTO(struct inode
*inode
),
788 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
789 ctf_integer(ino_t
, ino
, inode
->i_ino
)
790 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
791 ctf_integer(int, reserved_data_blocks
,
792 EXT4_I(inode
)->i_reserved_data_blocks
)
793 ctf_integer(int, reserved_meta_blocks
,
794 EXT4_I(inode
)->i_reserved_meta_blocks
)
795 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
799 LTTNG_TRACEPOINT_EVENT(ext4_da_reserve_space
,
800 TP_PROTO(struct inode
*inode
, int md_needed
),
802 TP_ARGS(inode
, md_needed
),
805 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
806 ctf_integer(ino_t
, ino
, inode
->i_ino
)
807 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
808 ctf_integer(int, md_needed
, md_needed
)
809 ctf_integer(int, reserved_data_blocks
,
810 EXT4_I(inode
)->i_reserved_data_blocks
)
811 ctf_integer(int, reserved_meta_blocks
,
812 EXT4_I(inode
)->i_reserved_meta_blocks
)
813 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
818 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
819 LTTNG_TRACEPOINT_EVENT(ext4_da_release_space
,
820 TP_PROTO(struct inode
*inode
, int freed_blocks
),
822 TP_ARGS(inode
, freed_blocks
),
825 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
826 ctf_integer(ino_t
, ino
, inode
->i_ino
)
827 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
828 ctf_integer(int, freed_blocks
, freed_blocks
)
829 ctf_integer(int, reserved_data_blocks
,
830 EXT4_I(inode
)->i_reserved_data_blocks
)
831 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
835 LTTNG_TRACEPOINT_EVENT(ext4_da_release_space
,
836 TP_PROTO(struct inode
*inode
, int freed_blocks
),
838 TP_ARGS(inode
, freed_blocks
),
841 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
842 ctf_integer(ino_t
, ino
, inode
->i_ino
)
843 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
844 ctf_integer(int, freed_blocks
, freed_blocks
)
845 ctf_integer(int, reserved_data_blocks
,
846 EXT4_I(inode
)->i_reserved_data_blocks
)
847 ctf_integer(int, reserved_meta_blocks
,
848 EXT4_I(inode
)->i_reserved_meta_blocks
)
849 ctf_integer(int, allocated_meta_blocks
,
850 EXT4_I(inode
)->i_allocated_meta_blocks
)
851 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
856 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__bitmap_load
,
857 TP_PROTO(struct super_block
*sb
, unsigned long group
),
862 ctf_integer(dev_t
, dev
, sb
->s_dev
)
863 ctf_integer(__u32
, group
, group
)
867 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_mb_bitmap_load
,
869 TP_PROTO(struct super_block
*sb
, unsigned long group
),
874 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_mb_buddy_bitmap_load
,
876 TP_PROTO(struct super_block
*sb
, unsigned long group
),
881 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_read_block_bitmap_load
,
883 TP_PROTO(struct super_block
*sb
, unsigned long group
),
888 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_load_inode_bitmap
,
890 TP_PROTO(struct super_block
*sb
, unsigned long group
),
895 LTTNG_TRACEPOINT_EVENT(ext4_direct_IO_enter
,
896 TP_PROTO(struct inode
*inode
, loff_t offset
, unsigned long len
, int rw
),
898 TP_ARGS(inode
, offset
, len
, rw
),
901 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
902 ctf_integer(ino_t
, ino
, inode
->i_ino
)
903 ctf_integer(loff_t
, pos
, offset
)
904 ctf_integer(unsigned long, len
, len
)
905 ctf_integer(int, rw
, rw
)
909 LTTNG_TRACEPOINT_EVENT(ext4_direct_IO_exit
,
910 TP_PROTO(struct inode
*inode
, loff_t offset
, unsigned long len
,
913 TP_ARGS(inode
, offset
, len
, rw
, ret
),
916 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
917 ctf_integer(ino_t
, ino
, inode
->i_ino
)
918 ctf_integer(loff_t
, pos
, offset
)
919 ctf_integer(unsigned long, len
, len
)
920 ctf_integer(int, rw
, rw
)
921 ctf_integer(int, ret
, ret
)
925 LTTNG_TRACEPOINT_EVENT(ext4_fallocate_exit
,
926 TP_PROTO(struct inode
*inode
, loff_t offset
,
927 unsigned int max_blocks
, int ret
),
929 TP_ARGS(inode
, offset
, max_blocks
, ret
),
932 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
933 ctf_integer(ino_t
, ino
, inode
->i_ino
)
934 ctf_integer(loff_t
, pos
, offset
)
935 ctf_integer(unsigned int, blocks
, max_blocks
)
936 ctf_integer(int, ret
, ret
)
940 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0))
942 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__fallocate_mode
,
943 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
945 TP_ARGS(inode
, offset
, len
, mode
),
948 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
949 ctf_integer(ino_t
, ino
, inode
->i_ino
)
950 ctf_integer(loff_t
, pos
, offset
)
951 ctf_integer(loff_t
, len
, len
)
952 ctf_integer(int, mode
, mode
)
956 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__fallocate_mode
, ext4_fallocate_enter
,
958 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
960 TP_ARGS(inode
, offset
, len
, mode
)
963 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__fallocate_mode
, ext4_punch_hole
,
965 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
967 TP_ARGS(inode
, offset
, len
, mode
)
970 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__fallocate_mode
, ext4_zero_range
,
972 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
974 TP_ARGS(inode
, offset
, len
, mode
)
977 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)) */
979 LTTNG_TRACEPOINT_EVENT(ext4_fallocate_enter
,
980 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
982 TP_ARGS(inode
, offset
, len
, mode
),
985 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
986 ctf_integer(ino_t
, ino
, inode
->i_ino
)
987 ctf_integer(loff_t
, pos
, offset
)
988 ctf_integer(loff_t
, len
, len
)
989 ctf_integer(int, mode
, mode
)
993 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
995 LTTNG_TRACEPOINT_EVENT(ext4_punch_hole
,
996 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
),
998 TP_ARGS(inode
, offset
, len
),
1001 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1002 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1003 ctf_integer(loff_t
, pos
, offset
)
1004 ctf_integer(loff_t
, len
, len
)
1008 #endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) */
1010 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)) */
1012 LTTNG_TRACEPOINT_EVENT(ext4_unlink_enter
,
1013 TP_PROTO(struct inode
*parent
, struct dentry
*dentry
),
1015 TP_ARGS(parent
, dentry
),
1018 ctf_integer(dev_t
, dev
, dentry
->d_inode
->i_sb
->s_dev
)
1019 ctf_integer(ino_t
, ino
, dentry
->d_inode
->i_ino
)
1020 ctf_integer(ino_t
, parent
, parent
->i_ino
)
1021 ctf_integer(loff_t
, size
, dentry
->d_inode
->i_size
)
1025 LTTNG_TRACEPOINT_EVENT(ext4_unlink_exit
,
1026 TP_PROTO(struct dentry
*dentry
, int ret
),
1028 TP_ARGS(dentry
, ret
),
1031 ctf_integer(dev_t
, dev
, dentry
->d_inode
->i_sb
->s_dev
)
1032 ctf_integer(ino_t
, ino
, dentry
->d_inode
->i_ino
)
1033 ctf_integer(int, ret
, ret
)
1037 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__truncate
,
1038 TP_PROTO(struct inode
*inode
),
1043 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1044 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1045 ctf_integer(unsigned int, blocks
, inode
->i_blocks
)
1049 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__truncate
, ext4_truncate_enter
,
1051 TP_PROTO(struct inode
*inode
),
1056 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__truncate
, ext4_truncate_exit
,
1058 TP_PROTO(struct inode
*inode
),
1063 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
1064 /* 'ux' is the uninitialized extent. */
1065 LTTNG_TRACEPOINT_EVENT(ext4_ext_convert_to_initialized_enter
,
1066 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
,
1067 struct ext4_extent
*ux
),
1069 TP_ARGS(inode
, map
, ux
),
1072 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1073 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1074 ctf_integer(ext4_lblk_t
, m_lblk
, map
->m_lblk
)
1075 ctf_integer(unsigned, m_len
, map
->m_len
)
1076 ctf_integer(ext4_lblk_t
, u_lblk
, le32_to_cpu(ux
->ee_block
))
1077 ctf_integer(unsigned, u_len
, ext4_ext_get_actual_len(ux
))
1078 ctf_integer(ext4_fsblk_t
, u_pblk
, ext4_ext_pblock(ux
))
1083 * 'ux' is the uninitialized extent.
1084 * 'ix' is the initialized extent to which blocks are transferred.
1086 LTTNG_TRACEPOINT_EVENT(ext4_ext_convert_to_initialized_fastpath
,
1087 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
,
1088 struct ext4_extent
*ux
, struct ext4_extent
*ix
),
1090 TP_ARGS(inode
, map
, ux
, ix
),
1093 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1094 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1095 ctf_integer(ext4_lblk_t
, m_lblk
, map
->m_lblk
)
1096 ctf_integer(unsigned, m_len
, map
->m_len
)
1097 ctf_integer(ext4_lblk_t
, u_lblk
, le32_to_cpu(ux
->ee_block
))
1098 ctf_integer(unsigned, u_len
, ext4_ext_get_actual_len(ux
))
1099 ctf_integer(ext4_fsblk_t
, u_pblk
, ext4_ext_pblock(ux
))
1100 ctf_integer(ext4_lblk_t
, i_lblk
, le32_to_cpu(ix
->ee_block
))
1101 ctf_integer(unsigned, i_len
, ext4_ext_get_actual_len(ix
))
1102 ctf_integer(ext4_fsblk_t
, i_pblk
, ext4_ext_pblock(ix
))
1107 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_enter
,
1108 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1109 unsigned int len
, unsigned int flags
),
1111 TP_ARGS(inode
, lblk
, len
, flags
),
1114 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1115 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1116 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1117 ctf_integer(unsigned int, len
, len
)
1118 ctf_integer(unsigned int, flags
, flags
)
1122 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_enter
, ext4_ext_map_blocks_enter
,
1123 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1124 unsigned len
, unsigned flags
),
1126 TP_ARGS(inode
, lblk
, len
, flags
)
1129 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_enter
, ext4_ind_map_blocks_enter
,
1130 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1131 unsigned len
, unsigned flags
),
1133 TP_ARGS(inode
, lblk
, len
, flags
)
1136 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1138 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_exit
,
1139 TP_PROTO(struct inode
*inode
, unsigned flags
, struct ext4_map_blocks
*map
,
1142 TP_ARGS(inode
, flags
, map
, ret
),
1145 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1146 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1147 ctf_integer(unsigned int, flags
, flags
)
1148 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1149 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1150 ctf_integer(unsigned int, len
, map
->m_len
)
1151 ctf_integer(unsigned int, mflags
, map
->m_flags
)
1152 ctf_integer(int, ret
, ret
)
1156 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ext_map_blocks_exit
,
1157 TP_PROTO(struct inode
*inode
, unsigned flags
,
1158 struct ext4_map_blocks
*map
, int ret
),
1160 TP_ARGS(inode
, flags
, map
, ret
)
1163 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ind_map_blocks_exit
,
1164 TP_PROTO(struct inode
*inode
, unsigned flags
,
1165 struct ext4_map_blocks
*map
, int ret
),
1167 TP_ARGS(inode
, flags
, map
, ret
)
1170 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
1172 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_exit
,
1173 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int ret
),
1175 TP_ARGS(inode
, map
, ret
),
1178 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1179 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1180 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1181 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1182 ctf_integer(unsigned int, len
, map
->m_len
)
1183 ctf_integer(unsigned int, mflags
, map
->m_flags
)
1184 ctf_integer(int, ret
, ret
)
1188 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ext_map_blocks_exit
,
1189 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int ret
),
1191 TP_ARGS(inode
, map
, ret
)
1194 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ind_map_blocks_exit
,
1195 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int ret
),
1197 TP_ARGS(inode
, map
, ret
)
1200 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1202 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_exit
,
1203 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1204 ext4_fsblk_t pblk
, unsigned int len
, int ret
),
1206 TP_ARGS(inode
, lblk
, pblk
, len
, ret
),
1209 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1210 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1211 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1212 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1213 ctf_integer(unsigned int, len
, len
)
1214 ctf_integer(int, ret
, ret
)
1218 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ext_map_blocks_exit
,
1219 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1220 ext4_fsblk_t pblk
, unsigned len
, int ret
),
1222 TP_ARGS(inode
, lblk
, pblk
, len
, ret
)
1225 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ind_map_blocks_exit
,
1226 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1227 ext4_fsblk_t pblk
, unsigned len
, int ret
),
1229 TP_ARGS(inode
, lblk
, pblk
, len
, ret
)
1232 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1234 LTTNG_TRACEPOINT_EVENT(ext4_ext_load_extent
,
1235 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, ext4_fsblk_t pblk
),
1237 TP_ARGS(inode
, lblk
, pblk
),
1240 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1241 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1242 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1243 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1247 LTTNG_TRACEPOINT_EVENT(ext4_load_inode
,
1248 TP_PROTO(struct inode
*inode
),
1253 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1254 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1258 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1260 LTTNG_TRACEPOINT_EVENT(ext4_journal_start
,
1261 TP_PROTO(struct super_block
*sb
, int blocks
, int rsv_blocks
,
1264 TP_ARGS(sb
, blocks
, rsv_blocks
, IP
),
1267 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1268 ctf_integer(unsigned long, ip
, IP
)
1269 ctf_integer(int, blocks
, blocks
)
1270 ctf_integer(int, rsv_blocks
, rsv_blocks
)
1274 LTTNG_TRACEPOINT_EVENT(ext4_journal_start_reserved
,
1275 TP_PROTO(struct super_block
*sb
, int blocks
, unsigned long IP
),
1277 TP_ARGS(sb
, blocks
, IP
),
1280 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1281 ctf_integer(unsigned long, ip
, IP
)
1282 ctf_integer(int, blocks
, blocks
)
1286 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
1288 LTTNG_TRACEPOINT_EVENT(ext4_journal_start
,
1289 TP_PROTO(struct super_block
*sb
, int nblocks
, unsigned long IP
),
1291 TP_ARGS(sb
, nblocks
, IP
),
1294 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1295 ctf_integer(unsigned long, ip
, IP
)
1296 ctf_integer(int, nblocks
, nblocks
)
1300 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__trim
,
1301 TP_PROTO(struct super_block
*sb
,
1303 ext4_grpblk_t start
,
1306 TP_ARGS(sb
, group
, start
, len
),
1309 ctf_integer(int, dev_major
, MAJOR(sb
->s_dev
))
1310 ctf_integer(int, dev_minor
, MINOR(sb
->s_dev
))
1311 ctf_integer(__u32
, group
, group
)
1312 ctf_integer(int, start
, start
)
1313 ctf_integer(int, len
, len
)
1317 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__trim
, ext4_trim_extent
,
1319 TP_PROTO(struct super_block
*sb
,
1321 ext4_grpblk_t start
,
1324 TP_ARGS(sb
, group
, start
, len
)
1327 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__trim
, ext4_trim_all_free
,
1329 TP_PROTO(struct super_block
*sb
,
1331 ext4_grpblk_t start
,
1334 TP_ARGS(sb
, group
, start
, len
)
1338 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
1340 LTTNG_TRACEPOINT_EVENT(ext4_ext_handle_uninitialized_extents
,
1341 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
1342 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int flags
,
1343 unsigned int allocated
, ext4_fsblk_t newblock
),
1345 TP_ARGS(inode
, map
, flags
, allocated
, newblock
),
1346 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1347 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
,
1348 unsigned int allocated
, ext4_fsblk_t newblock
),
1350 TP_ARGS(inode
, map
, allocated
, newblock
),
1351 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1354 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1355 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1356 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
1357 ctf_integer(int, flags
, flags
)
1358 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1359 ctf_integer(int, flags
, map
->m_flags
)
1360 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1361 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1362 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1363 ctf_integer(unsigned int, len
, map
->m_len
)
1364 ctf_integer(unsigned int, allocated
, allocated
)
1365 ctf_integer(ext4_fsblk_t
, newblk
, newblock
)
1369 LTTNG_TRACEPOINT_EVENT(ext4_get_implied_cluster_alloc_exit
,
1370 TP_PROTO(struct super_block
*sb
, struct ext4_map_blocks
*map
, int ret
),
1372 TP_ARGS(sb
, map
, ret
),
1375 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1376 ctf_integer(unsigned int, flags
, map
->m_flags
)
1377 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1378 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1379 ctf_integer(unsigned int, len
, map
->m_len
)
1380 ctf_integer(int, ret
, ret
)
1384 LTTNG_TRACEPOINT_EVENT(ext4_ext_put_in_cache
,
1385 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, unsigned int len
,
1386 ext4_fsblk_t start
),
1388 TP_ARGS(inode
, lblk
, len
, start
),
1391 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1392 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1393 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1394 ctf_integer(unsigned int, len
, len
)
1395 ctf_integer(ext4_fsblk_t
, start
, start
)
1399 LTTNG_TRACEPOINT_EVENT(ext4_ext_in_cache
,
1400 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, int ret
),
1402 TP_ARGS(inode
, lblk
, ret
),
1405 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1406 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1407 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1408 ctf_integer(int, ret
, ret
)
1412 LTTNG_TRACEPOINT_EVENT(ext4_find_delalloc_range
,
1413 TP_PROTO(struct inode
*inode
, ext4_lblk_t from
, ext4_lblk_t to
,
1414 int reverse
, int found
, ext4_lblk_t found_blk
),
1416 TP_ARGS(inode
, from
, to
, reverse
, found
, found_blk
),
1419 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1420 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1421 ctf_integer(ext4_lblk_t
, from
, from
)
1422 ctf_integer(ext4_lblk_t
, to
, to
)
1423 ctf_integer(int, reverse
, reverse
)
1424 ctf_integer(int, found
, found
)
1425 ctf_integer(ext4_lblk_t
, found_blk
, found_blk
)
1429 LTTNG_TRACEPOINT_EVENT(ext4_get_reserved_cluster_alloc
,
1430 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, unsigned int len
),
1432 TP_ARGS(inode
, lblk
, len
),
1435 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1436 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1437 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1438 ctf_integer(unsigned int, len
, len
)
1442 LTTNG_TRACEPOINT_EVENT(ext4_ext_show_extent
,
1443 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, ext4_fsblk_t pblk
,
1444 unsigned short len
),
1446 TP_ARGS(inode
, lblk
, pblk
, len
),
1449 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1450 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1451 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1452 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1453 ctf_integer(unsigned short, len
, len
)
1457 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
1459 LTTNG_TRACEPOINT_EVENT(ext4_remove_blocks
,
1460 TP_PROTO(struct inode
*inode
, struct ext4_extent
*ex
,
1461 ext4_lblk_t from
, ext4_fsblk_t to
,
1462 struct partial_cluster
*pc
),
1464 TP_ARGS(inode
, ex
, from
, to
, pc
),
1467 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1468 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1469 ctf_integer(ext4_lblk_t
, from
, from
)
1470 ctf_integer(ext4_lblk_t
, to
, to
)
1471 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1472 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1473 ctf_integer(unsigned short, ee_len
, ext4_ext_get_actual_len(ex
))
1474 ctf_integer(ext4_fsblk_t
, pc_pclu
, pc
->pclu
)
1475 ctf_integer(ext4_lblk_t
, pc_lblk
, pc
->lblk
)
1476 ctf_integer(int, pc_state
, pc
->state
)
1480 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1482 LTTNG_TRACEPOINT_EVENT(ext4_remove_blocks
,
1483 TP_PROTO(struct inode
*inode
, struct ext4_extent
*ex
,
1484 ext4_lblk_t from
, ext4_fsblk_t to
,
1485 long long partial_cluster
),
1487 TP_ARGS(inode
, ex
, from
, to
, partial_cluster
),
1490 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1491 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1492 ctf_integer(ext4_lblk_t
, from
, from
)
1493 ctf_integer(ext4_lblk_t
, to
, to
)
1494 ctf_integer(long long, partial
, partial_cluster
)
1495 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1496 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1497 ctf_integer(unsigned short, ee_len
, ext4_ext_get_actual_len(ex
))
1503 LTTNG_TRACEPOINT_EVENT(ext4_remove_blocks
,
1504 TP_PROTO(struct inode
*inode
, struct ext4_extent
*ex
,
1505 ext4_lblk_t from
, ext4_fsblk_t to
,
1506 ext4_fsblk_t partial_cluster
),
1508 TP_ARGS(inode
, ex
, from
, to
, partial_cluster
),
1511 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1512 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1513 ctf_integer(ext4_lblk_t
, from
, from
)
1514 ctf_integer(ext4_lblk_t
, to
, to
)
1515 ctf_integer(ext4_fsblk_t
, partial
, partial_cluster
)
1516 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1517 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1518 ctf_integer(unsigned short, ee_len
, ext4_ext_get_actual_len(ex
))
1524 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
1526 LTTNG_TRACEPOINT_EVENT(ext4_ext_rm_leaf
,
1527 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
,
1528 struct ext4_extent
*ex
,
1529 struct partial_cluster
*pc
),
1531 TP_ARGS(inode
, start
, ex
, pc
),
1534 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1535 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1536 ctf_integer(ext4_lblk_t
, start
, start
)
1537 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1538 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1539 ctf_integer(short, ee_len
, ext4_ext_get_actual_len(ex
))
1540 ctf_integer(ext4_fsblk_t
, pc_pclu
, pc
->pclu
)
1541 ctf_integer(ext4_lblk_t
, pc_lblk
, pc
->lblk
)
1542 ctf_integer(int, pc_state
, pc
->state
)
1546 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1548 LTTNG_TRACEPOINT_EVENT(ext4_ext_rm_leaf
,
1549 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
,
1550 struct ext4_extent
*ex
,
1551 long long partial_cluster
),
1553 TP_ARGS(inode
, start
, ex
, partial_cluster
),
1556 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1557 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1558 ctf_integer(long long, partial
, partial_cluster
)
1559 ctf_integer(ext4_lblk_t
, start
, start
)
1560 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1561 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1562 ctf_integer(short, ee_len
, ext4_ext_get_actual_len(ex
))
1568 LTTNG_TRACEPOINT_EVENT(ext4_ext_rm_leaf
,
1569 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
,
1570 struct ext4_extent
*ex
, ext4_fsblk_t partial_cluster
),
1572 TP_ARGS(inode
, start
, ex
, partial_cluster
),
1575 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1576 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1577 ctf_integer(long long, partial
, partial_cluster
)
1578 ctf_integer(ext4_lblk_t
, start
, start
)
1579 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1580 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1581 ctf_integer(short, ee_len
, ext4_ext_get_actual_len(ex
))
1587 LTTNG_TRACEPOINT_EVENT(ext4_ext_rm_idx
,
1588 TP_PROTO(struct inode
*inode
, ext4_fsblk_t pblk
),
1590 TP_ARGS(inode
, pblk
),
1593 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1594 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1595 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1599 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1601 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space
,
1602 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
,
1603 ext4_lblk_t end
, int depth
),
1605 TP_ARGS(inode
, start
, end
, depth
),
1608 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1609 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1610 ctf_integer(ext4_lblk_t
, start
, start
)
1611 ctf_integer(ext4_lblk_t
, end
, end
)
1612 ctf_integer(int, depth
, depth
)
1618 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space
,
1619 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
, int depth
),
1621 TP_ARGS(inode
, start
, depth
),
1624 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1625 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1626 ctf_integer(ext4_lblk_t
, start
, start
)
1627 ctf_integer(int, depth
, depth
)
1633 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
1635 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space_done
,
1636 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
, ext4_lblk_t end
,
1637 int depth
, struct partial_cluster
*pc
, __le16 eh_entries
),
1639 TP_ARGS(inode
, start
, end
, depth
, pc
, eh_entries
),
1642 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1643 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1644 ctf_integer(ext4_lblk_t
, start
, start
)
1645 ctf_integer(ext4_lblk_t
, end
, end
)
1646 ctf_integer(int, depth
, depth
)
1647 ctf_integer(unsigned short, eh_entries
, le16_to_cpu(eh_entries
))
1648 ctf_integer(ext4_fsblk_t
, pc_pclu
, pc
->pclu
)
1649 ctf_integer(ext4_lblk_t
, pc_lblk
, pc
->lblk
)
1650 ctf_integer(int, pc_state
, pc
->state
)
1654 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1656 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space_done
,
1657 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
, ext4_lblk_t end
,
1658 int depth
, long long partial
, __le16 eh_entries
),
1660 TP_ARGS(inode
, start
, end
, depth
, partial
, eh_entries
),
1663 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1664 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1665 ctf_integer(ext4_lblk_t
, start
, start
)
1666 ctf_integer(ext4_lblk_t
, end
, end
)
1667 ctf_integer(int, depth
, depth
)
1668 ctf_integer(long long, partial
, partial
)
1669 ctf_integer(unsigned short, eh_entries
, le16_to_cpu(eh_entries
))
1675 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space_done
,
1676 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
, int depth
,
1677 ext4_lblk_t partial
, unsigned short eh_entries
),
1679 TP_ARGS(inode
, start
, depth
, partial
, eh_entries
),
1682 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1683 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1684 ctf_integer(ext4_lblk_t
, start
, start
)
1685 ctf_integer(int, depth
, depth
)
1686 ctf_integer(ext4_lblk_t
, partial
, partial
)
1687 ctf_integer(unsigned short, eh_entries
, eh_entries
)
1695 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
1697 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__es_extent
,
1698 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1703 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1704 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1705 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1706 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1707 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1708 ctf_integer(char, status
, ext4_es_status(es
))
1712 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__es_extent
, ext4_es_insert_extent
,
1713 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1718 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__es_extent
, ext4_es_cache_extent
,
1719 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1724 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1726 LTTNG_TRACEPOINT_EVENT(ext4_es_insert_extent
,
1727 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1732 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1733 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1734 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1735 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1736 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1737 ctf_integer(char, status
, ext4_es_status(es
) >> 60)
1741 LTTNG_TRACEPOINT_EVENT(ext4_es_remove_extent
,
1742 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, ext4_lblk_t len
),
1744 TP_ARGS(inode
, lblk
, len
),
1747 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1748 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1749 ctf_integer(loff_t
, lblk
, lblk
)
1750 ctf_integer(loff_t
, len
, len
)
1754 LTTNG_TRACEPOINT_EVENT(ext4_es_find_delayed_extent_range_enter
,
1755 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
),
1757 TP_ARGS(inode
, lblk
),
1760 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1761 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1762 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1766 LTTNG_TRACEPOINT_EVENT(ext4_es_find_delayed_extent_range_exit
,
1767 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1772 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1773 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1774 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1775 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1776 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1777 ctf_integer(char, status
, ext4_es_status(es
) >> 60)
1781 LTTNG_TRACEPOINT_EVENT(ext4_es_lookup_extent_enter
,
1782 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
),
1784 TP_ARGS(inode
, lblk
),
1787 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1788 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1789 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1793 LTTNG_TRACEPOINT_EVENT(ext4_es_lookup_extent_exit
,
1794 TP_PROTO(struct inode
*inode
, struct extent_status
*es
,
1797 TP_ARGS(inode
, es
, found
),
1800 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1801 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1802 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1803 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1804 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1805 ctf_integer(char, status
, ext4_es_status(es
) >> 60)
1806 ctf_integer(int, found
, found
)
1810 LTTNG_TRACEPOINT_EVENT(ext4_es_shrink_enter
,
1811 TP_PROTO(struct super_block
*sb
, int nr_to_scan
, int cache_cnt
),
1813 TP_ARGS(sb
, nr_to_scan
, cache_cnt
),
1816 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1817 ctf_integer(int, nr_to_scan
, nr_to_scan
)
1818 ctf_integer(int, cache_cnt
, cache_cnt
)
1822 LTTNG_TRACEPOINT_EVENT(ext4_es_shrink_exit
,
1823 TP_PROTO(struct super_block
*sb
, int shrunk_nr
, int cache_cnt
),
1825 TP_ARGS(sb
, shrunk_nr
, cache_cnt
),
1828 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1829 ctf_integer(int, shrunk_nr
, shrunk_nr
)
1830 ctf_integer(int, cache_cnt
, cache_cnt
)
1836 #endif /* LTTNG_TRACE_EXT4_H */
1838 /* This part must be outside protection */
1839 #include <probes/define_trace.h>