2 #define TRACE_SYSTEM ext4
4 #if !defined(LTTNG_TRACE_EXT4_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_EXT4_H
7 #include <probes/lttng-tracepoint-event.h>
8 #include <linux/writeback.h>
9 #include <linux/version.h>
11 #ifndef _TRACE_EXT4_DEF_
12 #define _TRACE_EXT4_DEF_
13 struct ext4_allocation_context
;
14 struct ext4_allocation_request
;
15 struct ext4_prealloc_space
;
16 struct ext4_inode_info
;
18 struct ext4_map_blocks
;
19 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
24 #define EXT4_I(inode) (container_of(inode, struct ext4_inode_info, vfs_inode))
25 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
26 #define TP_MODE_T __u16
28 #define TP_MODE_T umode_t
31 LTTNG_TRACEPOINT_EVENT(ext4_free_inode
,
32 TP_PROTO(struct inode
*inode
),
37 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
38 ctf_integer(ino_t
, ino
, inode
->i_ino
)
39 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
40 ctf_integer(uid_t
, uid
, i_uid_read(inode
))
41 ctf_integer(gid_t
, gid
, i_gid_read(inode
))
43 ctf_integer(uid_t
, uid
, inode
->i_uid
)
44 ctf_integer(gid_t
, gid
, inode
->i_gid
)
46 ctf_integer(__u64
, blocks
, inode
->i_blocks
)
47 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
51 LTTNG_TRACEPOINT_EVENT(ext4_request_inode
,
52 TP_PROTO(struct inode
*dir
, int mode
),
57 ctf_integer(dev_t
, dev
, dir
->i_sb
->s_dev
)
58 ctf_integer(ino_t
, dir
, dir
->i_ino
)
59 ctf_integer(TP_MODE_T
, mode
, mode
)
63 LTTNG_TRACEPOINT_EVENT(ext4_allocate_inode
,
64 TP_PROTO(struct inode
*inode
, struct inode
*dir
, int mode
),
66 TP_ARGS(inode
, dir
, mode
),
69 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
70 ctf_integer(ino_t
, ino
, inode
->i_ino
)
71 ctf_integer(ino_t
, dir
, dir
->i_ino
)
72 ctf_integer(TP_MODE_T
, mode
, mode
)
76 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
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
)
126 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__write_begin
,
128 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
131 TP_ARGS(inode
, pos
, len
, flags
),
134 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
135 ctf_integer(ino_t
, ino
, inode
->i_ino
)
136 ctf_integer(loff_t
, pos
, pos
)
137 ctf_integer(unsigned int, len
, len
)
138 ctf_integer(unsigned int, flags
, flags
)
142 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_begin
, ext4_write_begin
,
144 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
147 TP_ARGS(inode
, pos
, len
, flags
)
150 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_begin
, ext4_da_write_begin
,
152 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
155 TP_ARGS(inode
, pos
, len
, flags
)
158 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__write_end
,
159 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
160 unsigned int copied
),
162 TP_ARGS(inode
, pos
, len
, copied
),
165 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
166 ctf_integer(ino_t
, ino
, inode
->i_ino
)
167 ctf_integer(loff_t
, pos
, pos
)
168 ctf_integer(unsigned int, len
, len
)
169 ctf_integer(unsigned int, copied
, copied
)
173 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_ordered_write_end
,
175 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
176 unsigned int copied
),
178 TP_ARGS(inode
, pos
, len
, copied
)
181 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_writeback_write_end
,
183 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
184 unsigned int copied
),
186 TP_ARGS(inode
, pos
, len
, copied
)
189 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_journalled_write_end
,
191 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
192 unsigned int copied
),
194 TP_ARGS(inode
, pos
, len
, copied
)
197 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__write_end
, ext4_da_write_end
,
199 TP_PROTO(struct inode
*inode
, loff_t pos
, unsigned int len
,
200 unsigned int copied
),
202 TP_ARGS(inode
, pos
, len
, copied
)
205 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,40))
206 LTTNG_TRACEPOINT_EVENT(ext4_writepage
,
207 TP_PROTO(struct inode
*inode
, struct page
*page
),
209 TP_ARGS(inode
, page
),
212 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
213 ctf_integer(ino_t
, ino
, inode
->i_ino
)
214 ctf_integer(pgoff_t
, index
, page
->index
)
219 LTTNG_TRACEPOINT_EVENT(ext4_da_writepages
,
220 TP_PROTO(struct inode
*inode
, struct writeback_control
*wbc
),
225 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
226 ctf_integer(ino_t
, ino
, inode
->i_ino
)
227 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
228 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
229 ctf_integer(loff_t
, range_start
, wbc
->range_start
)
230 ctf_integer(loff_t
, range_end
, wbc
->range_end
)
231 ctf_integer(pgoff_t
, writeback_index
, inode
->i_mapping
->writeback_index
)
232 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
233 ctf_integer(int, sync_mode
, wbc
->sync_mode
)
235 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37))
236 ctf_integer(char, nonblocking
, wbc
->nonblocking
)
238 ctf_integer(char, for_kupdate
, wbc
->for_kupdate
)
239 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39))
240 ctf_integer(char, for_reclaim
, wbc
->for_reclaim
)
242 ctf_integer(char, range_cyclic
, wbc
->range_cyclic
)
246 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
248 LTTNG_TRACEPOINT_EVENT(ext4_da_write_pages
,
249 TP_PROTO(struct inode
*inode
, pgoff_t first_page
,
250 struct writeback_control
*wbc
),
252 TP_ARGS(inode
, first_page
, wbc
),
255 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
256 ctf_integer(ino_t
, ino
, inode
->i_ino
)
257 ctf_integer(pgoff_t
, first_page
, first_page
)
258 ctf_integer(long, nr_to_write
, wbc
->nr_to_write
)
259 ctf_integer(int, sync_mode
, wbc
->sync_mode
)
265 LTTNG_TRACEPOINT_EVENT(ext4_da_write_pages
,
266 TP_PROTO(struct inode
*inode
, struct mpage_da_data
*mpd
),
271 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
272 ctf_integer(ino_t
, ino
, inode
->i_ino
)
273 ctf_integer(__u64
, b_blocknr
, mpd
->b_blocknr
)
274 ctf_integer(__u32
, b_size
, mpd
->b_size
)
275 ctf_integer(__u32
, b_state
, mpd
->b_state
)
276 ctf_integer(unsigned long, first_page
, mpd
->first_page
)
277 ctf_integer(int, io_done
, mpd
->io_done
)
278 ctf_integer(int, pages_written
, mpd
->pages_written
)
279 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
280 ctf_integer(int, sync_mode
, mpd
->wbc
->sync_mode
)
287 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
289 LTTNG_TRACEPOINT_EVENT(ext4_da_write_pages_extent
,
290 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
),
295 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
296 ctf_integer(ino_t
, ino
, inode
->i_ino
)
297 ctf_integer(__u64
, lblk
, map
->m_lblk
)
298 ctf_integer(__u32
, len
, map
->m_len
)
299 ctf_integer(__u32
, flags
, map
->m_flags
)
305 LTTNG_TRACEPOINT_EVENT(ext4_da_writepages_result
,
306 TP_PROTO(struct inode
*inode
, struct writeback_control
*wbc
,
307 int ret
, int pages_written
),
309 TP_ARGS(inode
, wbc
, ret
, pages_written
),
312 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
313 ctf_integer(ino_t
, ino
, inode
->i_ino
)
314 ctf_integer(int, ret
, ret
)
315 ctf_integer(int, pages_written
, pages_written
)
316 ctf_integer(long, pages_skipped
, wbc
->pages_skipped
)
317 ctf_integer(pgoff_t
, writeback_index
, inode
->i_mapping
->writeback_index
)
318 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
319 ctf_integer(int, sync_mode
, wbc
->sync_mode
)
321 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33))
322 ctf_integer(char, encountered_congestion
, wbc
->encountered_congestion
)
324 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
325 ctf_integer(char, more_io
, wbc
->more_io
)
327 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35))
328 ctf_integer(char, no_nrwrite_index_update
, wbc
->no_nrwrite_index_update
)
333 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
334 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__page_op
,
335 TP_PROTO(struct page
*page
),
340 ctf_integer(dev_t
, dev
, page
->mapping
->host
->i_sb
->s_dev
)
341 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
342 ctf_integer(pgoff_t
, index
, page
->index
)
346 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
347 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__page_op
, ext4_writepage
,
349 TP_PROTO(struct page
*page
),
355 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__page_op
, ext4_readpage
,
357 TP_PROTO(struct page
*page
),
362 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__page_op
, ext4_releasepage
,
364 TP_PROTO(struct page
*page
),
369 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
371 LTTNG_TRACEPOINT_EVENT_CLASS(ext4_invalidatepage_op
,
372 TP_PROTO(struct page
*page
, unsigned int offset
, unsigned int length
),
374 TP_ARGS(page
, offset
, length
),
377 ctf_integer(dev_t
, dev
, page
->mapping
->host
->i_sb
->s_dev
)
378 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
379 ctf_integer(pgoff_t
, index
, page
->index
)
380 ctf_integer(unsigned int, offset
, offset
)
381 ctf_integer(unsigned int, length
, length
)
385 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4_invalidatepage_op
, ext4_invalidatepage
,
386 TP_PROTO(struct page
*page
, unsigned int offset
, unsigned int length
),
388 TP_ARGS(page
, offset
, length
)
391 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4_invalidatepage_op
, ext4_journalled_invalidatepage
,
392 TP_PROTO(struct page
*page
, unsigned int offset
, unsigned int length
),
394 TP_ARGS(page
, offset
, length
)
399 LTTNG_TRACEPOINT_EVENT(ext4_invalidatepage
,
400 TP_PROTO(struct page
*page
, unsigned long offset
),
402 TP_ARGS(page
, offset
),
405 ctf_integer(dev_t
, dev
, page
->mapping
->host
->i_sb
->s_dev
)
406 ctf_integer(ino_t
, ino
, page
->mapping
->host
->i_ino
)
407 ctf_integer(pgoff_t
, index
, page
->index
)
408 ctf_integer(unsigned long, offset
, offset
)
417 LTTNG_TRACEPOINT_EVENT(ext4_discard_blocks
,
418 TP_PROTO(struct super_block
*sb
, unsigned long long blk
,
419 unsigned long long count
),
421 TP_ARGS(sb
, blk
, count
),
424 ctf_integer(dev_t
, dev
, sb
->s_dev
)
425 ctf_integer(__u64
, blk
, blk
)
426 ctf_integer(__u64
, count
, count
)
430 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__mb_new_pa
,
431 TP_PROTO(struct ext4_allocation_context
*ac
,
432 struct ext4_prealloc_space
*pa
),
437 ctf_integer(dev_t
, dev
, ac
->ac_sb
->s_dev
)
438 ctf_integer(ino_t
, ino
, ac
->ac_inode
->i_ino
)
439 ctf_integer(__u64
, pa_pstart
, pa
->pa_pstart
)
440 ctf_integer(__u64
, pa_lstart
, pa
->pa_lstart
)
441 ctf_integer(__u32
, pa_len
, pa
->pa_len
)
445 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mb_new_pa
, ext4_mb_new_inode_pa
,
447 TP_PROTO(struct ext4_allocation_context
*ac
,
448 struct ext4_prealloc_space
*pa
),
453 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mb_new_pa
, ext4_mb_new_group_pa
,
455 TP_PROTO(struct ext4_allocation_context
*ac
,
456 struct ext4_prealloc_space
*pa
),
461 LTTNG_TRACEPOINT_EVENT(ext4_mb_release_inode_pa
,
463 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,40))
464 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
465 struct super_block
*sb
,
467 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
468 struct super_block
*sb
,
469 struct ext4_allocation_context
*ac
,
471 struct ext4_allocation_context
*ac
,
474 struct ext4_prealloc_space
*pa
,
475 unsigned long long block
, unsigned int count
),
477 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
478 TP_ARGS(pa
, block
, count
),
479 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
480 TP_ARGS(sb
, inode
, pa
, block
, count
),
481 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
482 TP_ARGS(sb
, ac
, pa
, block
, count
),
484 TP_ARGS(ac
, pa
, block
, count
),
488 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
489 ctf_integer(dev_t
, dev
, pa
->pa_inode
->i_sb
->s_dev
)
490 ctf_integer(ino_t
, ino
, pa
->pa_inode
->i_ino
)
492 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
493 ctf_integer(dev_t
, dev
, sb
->s_dev
)
495 ctf_integer(dev_t
, dev
, ac
->ac_sb
->s_dev
)
497 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
498 ctf_integer(ino_t
, ino
, inode
->i_ino
)
500 ctf_integer(ino_t
, ino
,
501 (ac
&& ac
->ac_inode
) ? ac
->ac_inode
->i_ino
: 0)
504 ctf_integer(__u64
, block
, block
)
505 ctf_integer(__u32
, count
, count
)
509 LTTNG_TRACEPOINT_EVENT(ext4_mb_release_group_pa
,
511 #if (LTTNG_KERNEL_RANGE(2,6,40, 3,3,0))
512 TP_PROTO(struct ext4_prealloc_space
*pa
),
515 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
516 TP_PROTO(struct super_block
*sb
, struct ext4_prealloc_space
*pa
),
519 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
520 TP_PROTO(struct super_block
*sb
,
521 struct ext4_allocation_context
*ac
,
522 struct ext4_prealloc_space
*pa
),
526 TP_PROTO(struct ext4_allocation_context
*ac
,
527 struct ext4_prealloc_space
*pa
),
533 #if (LTTNG_KERNEL_RANGE(2,6,40, 3,3,0))
534 ctf_integer(dev_t
, dev
, pa
->pa_inode
->i_sb
->s_dev
)
535 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
536 ctf_integer(dev_t
, dev
, sb
->s_dev
)
538 ctf_integer(dev_t
, dev
, ac
->ac_sb
->s_dev
)
540 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37))
541 ctf_integer(ino_t
, ino
,
542 (ac
&& ac
->ac_inode
) ? ac
->ac_inode
->i_ino
: 0)
544 ctf_integer(__u64
, pa_pstart
, pa
->pa_pstart
)
545 ctf_integer(__u32
, pa_len
, pa
->pa_len
)
549 LTTNG_TRACEPOINT_EVENT(ext4_discard_preallocations
,
550 TP_PROTO(struct inode
*inode
),
555 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
556 ctf_integer(ino_t
, ino
, inode
->i_ino
)
560 LTTNG_TRACEPOINT_EVENT(ext4_mb_discard_preallocations
,
561 TP_PROTO(struct super_block
*sb
, int needed
),
566 ctf_integer(dev_t
, dev
, sb
->s_dev
)
567 ctf_integer(int, needed
, needed
)
571 LTTNG_TRACEPOINT_EVENT(ext4_request_blocks
,
572 TP_PROTO(struct ext4_allocation_request
*ar
),
577 ctf_integer(dev_t
, dev
, ar
->inode
->i_sb
->s_dev
)
578 ctf_integer(ino_t
, ino
, ar
->inode
->i_ino
)
579 ctf_integer(unsigned int, len
, ar
->len
)
580 ctf_integer(__u32
, logical
, ar
->logical
)
581 ctf_integer(__u32
, lleft
, ar
->lleft
)
582 ctf_integer(__u32
, lright
, ar
->lright
)
583 ctf_integer(__u64
, goal
, ar
->goal
)
584 ctf_integer(__u64
, pleft
, ar
->pleft
)
585 ctf_integer(__u64
, pright
, ar
->pright
)
586 ctf_integer(unsigned int, flags
, ar
->flags
)
590 LTTNG_TRACEPOINT_EVENT(ext4_allocate_blocks
,
591 TP_PROTO(struct ext4_allocation_request
*ar
, unsigned long long block
),
596 ctf_integer(dev_t
, dev
, ar
->inode
->i_sb
->s_dev
)
597 ctf_integer(ino_t
, ino
, ar
->inode
->i_ino
)
598 ctf_integer(__u64
, block
, block
)
599 ctf_integer(unsigned int, len
, ar
->len
)
600 ctf_integer(__u32
, logical
, ar
->logical
)
601 ctf_integer(__u32
, lleft
, ar
->lleft
)
602 ctf_integer(__u32
, lright
, ar
->lright
)
603 ctf_integer(__u64
, goal
, ar
->goal
)
604 ctf_integer(__u64
, pleft
, ar
->pleft
)
605 ctf_integer(__u64
, pright
, ar
->pright
)
606 ctf_integer(unsigned int, flags
, ar
->flags
)
610 LTTNG_TRACEPOINT_EVENT(ext4_free_blocks
,
611 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
612 TP_PROTO(struct inode
*inode
, __u64 block
, unsigned long count
,
615 TP_ARGS(inode
, block
, count
, flags
),
617 TP_PROTO(struct inode
*inode
, __u64 block
, unsigned long count
,
620 TP_ARGS(inode
, block
, count
, metadata
),
624 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
625 ctf_integer(ino_t
, ino
, inode
->i_ino
)
626 ctf_integer(__u64
, block
, block
)
627 ctf_integer(unsigned long, count
, count
)
628 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
629 ctf_integer(int, flags
, flags
)
630 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
632 ctf_integer(int, metadata
, metadata
)
637 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
638 LTTNG_TRACEPOINT_EVENT(ext4_sync_file_enter
,
640 LTTNG_TRACEPOINT_EVENT(ext4_sync_file
,
642 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
643 TP_PROTO(struct file
*file
, int datasync
),
645 TP_ARGS(file
, datasync
),
647 TP_PROTO(struct file
*file
, struct dentry
*dentry
, int datasync
),
649 TP_ARGS(file
, dentry
, datasync
),
653 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
654 ctf_integer(dev_t
, dev
, file
->f_path
.dentry
->d_inode
->i_sb
->s_dev
)
655 ctf_integer(ino_t
, ino
, file
->f_path
.dentry
->d_inode
->i_ino
)
656 ctf_integer(ino_t
, parent
, file
->f_path
.dentry
->d_parent
->d_inode
->i_ino
)
658 ctf_integer(dev_t
, dev
, dentry
->d_inode
->i_sb
->s_dev
)
659 ctf_integer(ino_t
, ino
, dentry
->d_inode
->i_ino
)
660 ctf_integer(ino_t
, parent
, dentry
->d_parent
->d_inode
->i_ino
)
662 ctf_integer(int, datasync
, datasync
)
666 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
667 LTTNG_TRACEPOINT_EVENT(ext4_sync_file_exit
,
668 TP_PROTO(struct inode
*inode
, int ret
),
673 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
674 ctf_integer(ino_t
, ino
, inode
->i_ino
)
675 ctf_integer(int, ret
, ret
)
680 LTTNG_TRACEPOINT_EVENT(ext4_sync_fs
,
681 TP_PROTO(struct super_block
*sb
, int wait
),
686 ctf_integer(dev_t
, dev
, sb
->s_dev
)
687 ctf_integer(int, wait
, wait
)
692 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
693 LTTNG_TRACEPOINT_EVENT(ext4_alloc_da_blocks
,
694 TP_PROTO(struct inode
*inode
),
699 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
700 ctf_integer(ino_t
, ino
, inode
->i_ino
)
701 ctf_integer(unsigned int, data_blocks
, EXT4_I(inode
)->i_reserved_data_blocks
)
705 LTTNG_TRACEPOINT_EVENT(ext4_alloc_da_blocks
,
706 TP_PROTO(struct inode
*inode
),
711 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
712 ctf_integer(ino_t
, ino
, inode
->i_ino
)
713 ctf_integer(unsigned int, data_blocks
, EXT4_I(inode
)->i_reserved_data_blocks
)
714 ctf_integer(unsigned int, meta_blocks
, EXT4_I(inode
)->i_reserved_meta_blocks
)
719 LTTNG_TRACEPOINT_EVENT(ext4_mballoc_alloc
,
720 TP_PROTO(struct ext4_allocation_context
*ac
),
725 ctf_integer(dev_t
, dev
, ac
->ac_inode
->i_sb
->s_dev
)
726 ctf_integer(ino_t
, ino
, ac
->ac_inode
->i_ino
)
727 ctf_integer(__u32
, orig_logical
, ac
->ac_o_ex
.fe_logical
)
728 ctf_integer(int, orig_start
, ac
->ac_o_ex
.fe_start
)
729 ctf_integer(__u32
, orig_group
, ac
->ac_o_ex
.fe_group
)
730 ctf_integer(int, orig_len
, ac
->ac_o_ex
.fe_len
)
731 ctf_integer(__u32
, goal_logical
, ac
->ac_g_ex
.fe_logical
)
732 ctf_integer(int, goal_start
, ac
->ac_g_ex
.fe_start
)
733 ctf_integer(__u32
, goal_group
, ac
->ac_g_ex
.fe_group
)
734 ctf_integer(int, goal_len
, ac
->ac_g_ex
.fe_len
)
735 ctf_integer(__u32
, result_logical
, ac
->ac_f_ex
.fe_logical
)
736 ctf_integer(int, result_start
, ac
->ac_f_ex
.fe_start
)
737 ctf_integer(__u32
, result_group
, ac
->ac_f_ex
.fe_group
)
738 ctf_integer(int, result_len
, ac
->ac_f_ex
.fe_len
)
739 ctf_integer(__u16
, found
, ac
->ac_found
)
740 ctf_integer(__u16
, groups
, ac
->ac_groups_scanned
)
741 ctf_integer(__u16
, buddy
, ac
->ac_buddy
)
742 ctf_integer(__u16
, flags
, ac
->ac_flags
)
743 ctf_integer(__u16
, tail
, ac
->ac_tail
)
744 ctf_integer(__u8
, cr
, ac
->ac_criteria
)
748 LTTNG_TRACEPOINT_EVENT(ext4_mballoc_prealloc
,
749 TP_PROTO(struct ext4_allocation_context
*ac
),
754 ctf_integer(dev_t
, dev
, ac
->ac_inode
->i_sb
->s_dev
)
755 ctf_integer(ino_t
, ino
, ac
->ac_inode
->i_ino
)
756 ctf_integer(__u32
, orig_logical
, ac
->ac_o_ex
.fe_logical
)
757 ctf_integer(int, orig_start
, ac
->ac_o_ex
.fe_start
)
758 ctf_integer(__u32
, orig_group
, ac
->ac_o_ex
.fe_group
)
759 ctf_integer(int, orig_len
, ac
->ac_o_ex
.fe_len
)
760 ctf_integer(__u32
, result_logical
, ac
->ac_b_ex
.fe_logical
)
761 ctf_integer(int, result_start
, ac
->ac_b_ex
.fe_start
)
762 ctf_integer(__u32
, result_group
, ac
->ac_b_ex
.fe_group
)
763 ctf_integer(int, result_len
, ac
->ac_b_ex
.fe_len
)
767 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__mballoc
,
768 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
769 TP_PROTO(struct super_block
*sb
,
775 TP_ARGS(sb
, inode
, group
, start
, len
),
777 TP_PROTO(struct ext4_allocation_context
*ac
),
783 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
784 ctf_integer(dev_t
, dev
, sb
->s_dev
)
785 ctf_integer(ino_t
, ino
, inode
? inode
->i_ino
: 0)
786 ctf_integer(int, result_start
, start
)
787 ctf_integer(__u32
, result_group
, group
)
788 ctf_integer(int, result_len
, len
)
790 ctf_integer(dev_t
, dev
, ac
->ac_sb
->s_dev
)
791 ctf_integer(ino_t
, ino
, ac
->ac_inode
? ac
->ac_inode
->i_ino
: 0)
792 ctf_integer(__u32
, result_logical
, ac
->ac_b_ex
.fe_logical
)
793 ctf_integer(int, result_start
, ac
->ac_b_ex
.fe_start
)
794 ctf_integer(__u32
, result_group
, ac
->ac_b_ex
.fe_group
)
795 ctf_integer(int, result_len
, ac
->ac_b_ex
.fe_len
)
800 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mballoc
, ext4_mballoc_discard
,
802 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
803 TP_PROTO(struct super_block
*sb
,
809 TP_ARGS(sb
, inode
, group
, start
, len
)
811 TP_PROTO(struct ext4_allocation_context
*ac
),
817 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__mballoc
, ext4_mballoc_free
,
819 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
820 TP_PROTO(struct super_block
*sb
,
826 TP_ARGS(sb
, inode
, group
, start
, len
)
828 TP_PROTO(struct ext4_allocation_context
*ac
),
834 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
835 LTTNG_TRACEPOINT_EVENT(ext4_forget
,
836 TP_PROTO(struct inode
*inode
, int is_metadata
, __u64 block
),
838 TP_ARGS(inode
, is_metadata
, block
),
841 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
842 ctf_integer(ino_t
, ino
, inode
->i_ino
)
843 ctf_integer(__u64
, block
, block
)
844 ctf_integer(int, is_metadata
, is_metadata
)
845 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
850 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
851 LTTNG_TRACEPOINT_EVENT(ext4_da_update_reserve_space
,
852 TP_PROTO(struct inode
*inode
, int used_blocks
, int quota_claim
),
854 TP_ARGS(inode
, used_blocks
, quota_claim
),
857 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
858 ctf_integer(ino_t
, ino
, inode
->i_ino
)
859 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
860 ctf_integer(int, used_blocks
, used_blocks
)
861 ctf_integer(int, reserved_data_blocks
,
862 EXT4_I(inode
)->i_reserved_data_blocks
)
863 ctf_integer(int, quota_claim
, quota_claim
)
864 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
867 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
868 LTTNG_TRACEPOINT_EVENT(ext4_da_update_reserve_space
,
869 TP_PROTO(struct inode
*inode
, int used_blocks
, int quota_claim
),
871 TP_ARGS(inode
, used_blocks
, quota_claim
),
874 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
875 ctf_integer(ino_t
, ino
, inode
->i_ino
)
876 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
877 ctf_integer(int, used_blocks
, used_blocks
)
878 ctf_integer(int, reserved_data_blocks
,
879 EXT4_I(inode
)->i_reserved_data_blocks
)
880 ctf_integer(int, reserved_meta_blocks
,
881 EXT4_I(inode
)->i_reserved_meta_blocks
)
882 ctf_integer(int, allocated_meta_blocks
,
883 EXT4_I(inode
)->i_allocated_meta_blocks
)
884 ctf_integer(int, quota_claim
, quota_claim
)
885 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
888 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
889 LTTNG_TRACEPOINT_EVENT(ext4_da_update_reserve_space
,
890 TP_PROTO(struct inode
*inode
, int used_blocks
),
892 TP_ARGS(inode
, used_blocks
),
895 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
896 ctf_integer(ino_t
, ino
, inode
->i_ino
)
897 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
898 ctf_integer(int, used_blocks
, used_blocks
)
899 ctf_integer(int, reserved_data_blocks
,
900 EXT4_I(inode
)->i_reserved_data_blocks
)
901 ctf_integer(int, reserved_meta_blocks
,
902 EXT4_I(inode
)->i_reserved_meta_blocks
)
903 ctf_integer(int, allocated_meta_blocks
,
904 EXT4_I(inode
)->i_allocated_meta_blocks
)
905 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
910 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
911 LTTNG_TRACEPOINT_EVENT(ext4_da_reserve_space
,
912 TP_PROTO(struct inode
*inode
),
917 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
918 ctf_integer(ino_t
, ino
, inode
->i_ino
)
919 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
920 ctf_integer(int, reserved_data_blocks
,
921 EXT4_I(inode
)->i_reserved_data_blocks
)
922 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
925 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
926 LTTNG_TRACEPOINT_EVENT(ext4_da_reserve_space
,
927 TP_PROTO(struct inode
*inode
),
932 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
933 ctf_integer(ino_t
, ino
, inode
->i_ino
)
934 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
935 ctf_integer(int, reserved_data_blocks
,
936 EXT4_I(inode
)->i_reserved_data_blocks
)
937 ctf_integer(int, reserved_meta_blocks
,
938 EXT4_I(inode
)->i_reserved_meta_blocks
)
939 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
942 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
943 LTTNG_TRACEPOINT_EVENT(ext4_da_reserve_space
,
944 TP_PROTO(struct inode
*inode
, int md_needed
),
946 TP_ARGS(inode
, md_needed
),
949 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
950 ctf_integer(ino_t
, ino
, inode
->i_ino
)
951 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
952 ctf_integer(int, md_needed
, md_needed
)
953 ctf_integer(int, reserved_data_blocks
,
954 EXT4_I(inode
)->i_reserved_data_blocks
)
955 ctf_integer(int, reserved_meta_blocks
,
956 EXT4_I(inode
)->i_reserved_meta_blocks
)
957 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
962 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0))
963 LTTNG_TRACEPOINT_EVENT(ext4_da_release_space
,
964 TP_PROTO(struct inode
*inode
, int freed_blocks
),
966 TP_ARGS(inode
, freed_blocks
),
969 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
970 ctf_integer(ino_t
, ino
, inode
->i_ino
)
971 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
972 ctf_integer(int, freed_blocks
, freed_blocks
)
973 ctf_integer(int, reserved_data_blocks
,
974 EXT4_I(inode
)->i_reserved_data_blocks
)
975 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
978 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
979 LTTNG_TRACEPOINT_EVENT(ext4_da_release_space
,
980 TP_PROTO(struct inode
*inode
, int freed_blocks
),
982 TP_ARGS(inode
, freed_blocks
),
985 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
986 ctf_integer(ino_t
, ino
, inode
->i_ino
)
987 ctf_integer(__u64
, i_blocks
, inode
->i_blocks
)
988 ctf_integer(int, freed_blocks
, freed_blocks
)
989 ctf_integer(int, reserved_data_blocks
,
990 EXT4_I(inode
)->i_reserved_data_blocks
)
991 ctf_integer(int, reserved_meta_blocks
,
992 EXT4_I(inode
)->i_reserved_meta_blocks
)
993 ctf_integer(int, allocated_meta_blocks
,
994 EXT4_I(inode
)->i_allocated_meta_blocks
)
995 ctf_integer(TP_MODE_T
, mode
, inode
->i_mode
)
1000 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
1001 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__bitmap_load
,
1002 TP_PROTO(struct super_block
*sb
, unsigned long group
),
1007 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1008 ctf_integer(__u32
, group
, group
)
1012 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_mb_bitmap_load
,
1014 TP_PROTO(struct super_block
*sb
, unsigned long group
),
1019 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_mb_buddy_bitmap_load
,
1021 TP_PROTO(struct super_block
*sb
, unsigned long group
),
1027 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
1028 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_read_block_bitmap_load
,
1030 TP_PROTO(struct super_block
*sb
, unsigned long group
),
1035 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load
, ext4_load_inode_bitmap
,
1037 TP_PROTO(struct super_block
*sb
, unsigned long group
),
1042 LTTNG_TRACEPOINT_EVENT(ext4_direct_IO_enter
,
1043 TP_PROTO(struct inode
*inode
, loff_t offset
, unsigned long len
, int rw
),
1045 TP_ARGS(inode
, offset
, len
, rw
),
1048 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1049 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1050 ctf_integer(loff_t
, pos
, offset
)
1051 ctf_integer(unsigned long, len
, len
)
1052 ctf_integer(int, rw
, rw
)
1056 LTTNG_TRACEPOINT_EVENT(ext4_direct_IO_exit
,
1057 TP_PROTO(struct inode
*inode
, loff_t offset
, unsigned long len
,
1060 TP_ARGS(inode
, offset
, len
, rw
, ret
),
1063 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1064 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1065 ctf_integer(loff_t
, pos
, offset
)
1066 ctf_integer(unsigned long, len
, len
)
1067 ctf_integer(int, rw
, rw
)
1068 ctf_integer(int, ret
, ret
)
1072 LTTNG_TRACEPOINT_EVENT(ext4_fallocate_exit
,
1073 TP_PROTO(struct inode
*inode
, loff_t offset
,
1074 unsigned int max_blocks
, int ret
),
1076 TP_ARGS(inode
, offset
, max_blocks
, ret
),
1079 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1080 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1081 ctf_integer(loff_t
, pos
, offset
)
1082 ctf_integer(unsigned int, blocks
, max_blocks
)
1083 ctf_integer(int, ret
, ret
)
1087 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0))
1089 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__fallocate_mode
,
1090 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
1092 TP_ARGS(inode
, offset
, len
, mode
),
1095 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1096 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1097 ctf_integer(loff_t
, pos
, offset
)
1098 ctf_integer(loff_t
, len
, len
)
1099 ctf_integer(int, mode
, mode
)
1103 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__fallocate_mode
, ext4_fallocate_enter
,
1105 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
1107 TP_ARGS(inode
, offset
, len
, mode
)
1110 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__fallocate_mode
, ext4_punch_hole
,
1112 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
1114 TP_ARGS(inode
, offset
, len
, mode
)
1117 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__fallocate_mode
, ext4_zero_range
,
1119 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
1121 TP_ARGS(inode
, offset
, len
, mode
)
1124 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)) */
1126 LTTNG_TRACEPOINT_EVENT(ext4_fallocate_enter
,
1127 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
, int mode
),
1129 TP_ARGS(inode
, offset
, len
, mode
),
1132 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1133 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1134 ctf_integer(loff_t
, pos
, offset
)
1135 ctf_integer(loff_t
, len
, len
)
1136 ctf_integer(int, mode
, mode
)
1140 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1142 LTTNG_TRACEPOINT_EVENT(ext4_punch_hole
,
1143 TP_PROTO(struct inode
*inode
, loff_t offset
, loff_t len
),
1145 TP_ARGS(inode
, offset
, len
),
1148 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1149 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1150 ctf_integer(loff_t
, pos
, offset
)
1151 ctf_integer(loff_t
, len
, len
)
1155 #endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) */
1157 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)) */
1159 LTTNG_TRACEPOINT_EVENT(ext4_unlink_enter
,
1160 TP_PROTO(struct inode
*parent
, struct dentry
*dentry
),
1162 TP_ARGS(parent
, dentry
),
1165 ctf_integer(dev_t
, dev
, dentry
->d_inode
->i_sb
->s_dev
)
1166 ctf_integer(ino_t
, ino
, dentry
->d_inode
->i_ino
)
1167 ctf_integer(ino_t
, parent
, parent
->i_ino
)
1168 ctf_integer(loff_t
, size
, dentry
->d_inode
->i_size
)
1172 LTTNG_TRACEPOINT_EVENT(ext4_unlink_exit
,
1173 TP_PROTO(struct dentry
*dentry
, int ret
),
1175 TP_ARGS(dentry
, ret
),
1178 ctf_integer(dev_t
, dev
, dentry
->d_inode
->i_sb
->s_dev
)
1179 ctf_integer(ino_t
, ino
, dentry
->d_inode
->i_ino
)
1180 ctf_integer(int, ret
, ret
)
1184 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__truncate
,
1185 TP_PROTO(struct inode
*inode
),
1190 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1191 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1192 ctf_integer(unsigned int, blocks
, inode
->i_blocks
)
1196 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__truncate
, ext4_truncate_enter
,
1198 TP_PROTO(struct inode
*inode
),
1203 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__truncate
, ext4_truncate_exit
,
1205 TP_PROTO(struct inode
*inode
),
1210 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
1211 /* 'ux' is the uninitialized extent. */
1212 LTTNG_TRACEPOINT_EVENT(ext4_ext_convert_to_initialized_enter
,
1213 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
,
1214 struct ext4_extent
*ux
),
1216 TP_ARGS(inode
, map
, ux
),
1219 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1220 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1221 ctf_integer(ext4_lblk_t
, m_lblk
, map
->m_lblk
)
1222 ctf_integer(unsigned, m_len
, map
->m_len
)
1223 ctf_integer(ext4_lblk_t
, u_lblk
, le32_to_cpu(ux
->ee_block
))
1224 ctf_integer(unsigned, u_len
, ext4_ext_get_actual_len(ux
))
1225 ctf_integer(ext4_fsblk_t
, u_pblk
, ext4_ext_pblock(ux
))
1230 * 'ux' is the uninitialized extent.
1231 * 'ix' is the initialized extent to which blocks are transferred.
1233 LTTNG_TRACEPOINT_EVENT(ext4_ext_convert_to_initialized_fastpath
,
1234 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
,
1235 struct ext4_extent
*ux
, struct ext4_extent
*ix
),
1237 TP_ARGS(inode
, map
, ux
, ix
),
1240 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1241 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1242 ctf_integer(ext4_lblk_t
, m_lblk
, map
->m_lblk
)
1243 ctf_integer(unsigned, m_len
, map
->m_len
)
1244 ctf_integer(ext4_lblk_t
, u_lblk
, le32_to_cpu(ux
->ee_block
))
1245 ctf_integer(unsigned, u_len
, ext4_ext_get_actual_len(ux
))
1246 ctf_integer(ext4_fsblk_t
, u_pblk
, ext4_ext_pblock(ux
))
1247 ctf_integer(ext4_lblk_t
, i_lblk
, le32_to_cpu(ix
->ee_block
))
1248 ctf_integer(unsigned, i_len
, ext4_ext_get_actual_len(ix
))
1249 ctf_integer(ext4_fsblk_t
, i_pblk
, ext4_ext_pblock(ix
))
1254 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_enter
,
1255 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1256 unsigned int len
, unsigned int flags
),
1258 TP_ARGS(inode
, lblk
, len
, flags
),
1261 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1262 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1263 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1264 ctf_integer(unsigned int, len
, len
)
1265 ctf_integer(unsigned int, flags
, flags
)
1269 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_enter
, ext4_ext_map_blocks_enter
,
1270 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1271 unsigned len
, unsigned flags
),
1273 TP_ARGS(inode
, lblk
, len
, flags
)
1276 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_enter
, ext4_ind_map_blocks_enter
,
1277 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1278 unsigned len
, unsigned flags
),
1280 TP_ARGS(inode
, lblk
, len
, flags
)
1283 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1285 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_exit
,
1286 TP_PROTO(struct inode
*inode
, unsigned flags
, struct ext4_map_blocks
*map
,
1289 TP_ARGS(inode
, flags
, map
, ret
),
1292 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1293 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1294 ctf_integer(unsigned int, flags
, flags
)
1295 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1296 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1297 ctf_integer(unsigned int, len
, map
->m_len
)
1298 ctf_integer(unsigned int, mflags
, map
->m_flags
)
1299 ctf_integer(int, ret
, ret
)
1303 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ext_map_blocks_exit
,
1304 TP_PROTO(struct inode
*inode
, unsigned flags
,
1305 struct ext4_map_blocks
*map
, int ret
),
1307 TP_ARGS(inode
, flags
, map
, ret
)
1310 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ind_map_blocks_exit
,
1311 TP_PROTO(struct inode
*inode
, unsigned flags
,
1312 struct ext4_map_blocks
*map
, int ret
),
1314 TP_ARGS(inode
, flags
, map
, ret
)
1317 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
1319 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_exit
,
1320 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int ret
),
1322 TP_ARGS(inode
, map
, ret
),
1325 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1326 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1327 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1328 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1329 ctf_integer(unsigned int, len
, map
->m_len
)
1330 ctf_integer(unsigned int, mflags
, map
->m_flags
)
1331 ctf_integer(int, ret
, ret
)
1335 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ext_map_blocks_exit
,
1336 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int ret
),
1338 TP_ARGS(inode
, map
, ret
)
1341 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ind_map_blocks_exit
,
1342 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int ret
),
1344 TP_ARGS(inode
, map
, ret
)
1347 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1349 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__map_blocks_exit
,
1350 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1351 ext4_fsblk_t pblk
, unsigned int len
, int ret
),
1353 TP_ARGS(inode
, lblk
, pblk
, len
, ret
),
1356 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1357 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1358 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1359 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1360 ctf_integer(unsigned int, len
, len
)
1361 ctf_integer(int, ret
, ret
)
1365 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ext_map_blocks_exit
,
1366 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1367 ext4_fsblk_t pblk
, unsigned len
, int ret
),
1369 TP_ARGS(inode
, lblk
, pblk
, len
, ret
)
1372 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__map_blocks_exit
, ext4_ind_map_blocks_exit
,
1373 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
,
1374 ext4_fsblk_t pblk
, unsigned len
, int ret
),
1376 TP_ARGS(inode
, lblk
, pblk
, len
, ret
)
1379 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1381 LTTNG_TRACEPOINT_EVENT(ext4_ext_load_extent
,
1382 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, ext4_fsblk_t pblk
),
1384 TP_ARGS(inode
, lblk
, pblk
),
1387 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1388 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1389 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1390 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1394 LTTNG_TRACEPOINT_EVENT(ext4_load_inode
,
1395 TP_PROTO(struct inode
*inode
),
1400 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1401 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1406 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1408 LTTNG_TRACEPOINT_EVENT(ext4_journal_start
,
1409 TP_PROTO(struct super_block
*sb
, int blocks
, int rsv_blocks
,
1412 TP_ARGS(sb
, blocks
, rsv_blocks
, IP
),
1415 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1416 ctf_integer(unsigned long, ip
, IP
)
1417 ctf_integer(int, blocks
, blocks
)
1418 ctf_integer(int, rsv_blocks
, rsv_blocks
)
1422 LTTNG_TRACEPOINT_EVENT(ext4_journal_start_reserved
,
1423 TP_PROTO(struct super_block
*sb
, int blocks
, unsigned long IP
),
1425 TP_ARGS(sb
, blocks
, IP
),
1428 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1429 ctf_integer(unsigned long, ip
, IP
)
1430 ctf_integer(int, blocks
, blocks
)
1434 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
1436 LTTNG_TRACEPOINT_EVENT(ext4_journal_start
,
1437 TP_PROTO(struct super_block
*sb
, int nblocks
, unsigned long IP
),
1439 TP_ARGS(sb
, nblocks
, IP
),
1442 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1443 ctf_integer(unsigned long, ip
, IP
)
1444 ctf_integer(int, nblocks
, nblocks
)
1448 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__trim
,
1449 TP_PROTO(struct super_block
*sb
,
1451 ext4_grpblk_t start
,
1454 TP_ARGS(sb
, group
, start
, len
),
1457 ctf_integer(int, dev_major
, MAJOR(sb
->s_dev
))
1458 ctf_integer(int, dev_minor
, MINOR(sb
->s_dev
))
1459 ctf_integer(__u32
, group
, group
)
1460 ctf_integer(int, start
, start
)
1461 ctf_integer(int, len
, len
)
1465 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__trim
, ext4_trim_extent
,
1467 TP_PROTO(struct super_block
*sb
,
1469 ext4_grpblk_t start
,
1472 TP_ARGS(sb
, group
, start
, len
)
1475 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__trim
, ext4_trim_all_free
,
1477 TP_PROTO(struct super_block
*sb
,
1479 ext4_grpblk_t start
,
1482 TP_ARGS(sb
, group
, start
, len
)
1486 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
1488 LTTNG_TRACEPOINT_EVENT(ext4_ext_handle_uninitialized_extents
,
1489 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
1490 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
, int flags
,
1491 unsigned int allocated
, ext4_fsblk_t newblock
),
1493 TP_ARGS(inode
, map
, flags
, allocated
, newblock
),
1494 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1495 TP_PROTO(struct inode
*inode
, struct ext4_map_blocks
*map
,
1496 unsigned int allocated
, ext4_fsblk_t newblock
),
1498 TP_ARGS(inode
, map
, allocated
, newblock
),
1499 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1502 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1503 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1504 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
1505 ctf_integer(int, flags
, flags
)
1506 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1507 ctf_integer(int, flags
, map
->m_flags
)
1508 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */
1509 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1510 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1511 ctf_integer(unsigned int, len
, map
->m_len
)
1512 ctf_integer(unsigned int, allocated
, allocated
)
1513 ctf_integer(ext4_fsblk_t
, newblk
, newblock
)
1517 LTTNG_TRACEPOINT_EVENT(ext4_get_implied_cluster_alloc_exit
,
1518 TP_PROTO(struct super_block
*sb
, struct ext4_map_blocks
*map
, int ret
),
1520 TP_ARGS(sb
, map
, ret
),
1523 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1524 ctf_integer(unsigned int, flags
, map
->m_flags
)
1525 ctf_integer(ext4_lblk_t
, lblk
, map
->m_lblk
)
1526 ctf_integer(ext4_fsblk_t
, pblk
, map
->m_pblk
)
1527 ctf_integer(unsigned int, len
, map
->m_len
)
1528 ctf_integer(int, ret
, ret
)
1532 LTTNG_TRACEPOINT_EVENT(ext4_ext_put_in_cache
,
1533 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, unsigned int len
,
1534 ext4_fsblk_t start
),
1536 TP_ARGS(inode
, lblk
, len
, start
),
1539 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1540 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1541 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1542 ctf_integer(unsigned int, len
, len
)
1543 ctf_integer(ext4_fsblk_t
, start
, start
)
1547 LTTNG_TRACEPOINT_EVENT(ext4_ext_in_cache
,
1548 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, int ret
),
1550 TP_ARGS(inode
, lblk
, ret
),
1553 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1554 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1555 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1556 ctf_integer(int, ret
, ret
)
1560 LTTNG_TRACEPOINT_EVENT(ext4_find_delalloc_range
,
1561 TP_PROTO(struct inode
*inode
, ext4_lblk_t from
, ext4_lblk_t to
,
1562 int reverse
, int found
, ext4_lblk_t found_blk
),
1564 TP_ARGS(inode
, from
, to
, reverse
, found
, found_blk
),
1567 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1568 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1569 ctf_integer(ext4_lblk_t
, from
, from
)
1570 ctf_integer(ext4_lblk_t
, to
, to
)
1571 ctf_integer(int, reverse
, reverse
)
1572 ctf_integer(int, found
, found
)
1573 ctf_integer(ext4_lblk_t
, found_blk
, found_blk
)
1577 LTTNG_TRACEPOINT_EVENT(ext4_get_reserved_cluster_alloc
,
1578 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, unsigned int len
),
1580 TP_ARGS(inode
, lblk
, len
),
1583 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1584 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1585 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1586 ctf_integer(unsigned int, len
, len
)
1590 LTTNG_TRACEPOINT_EVENT(ext4_ext_show_extent
,
1591 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, ext4_fsblk_t pblk
,
1592 unsigned short len
),
1594 TP_ARGS(inode
, lblk
, pblk
, len
),
1597 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1598 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1599 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1600 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1601 ctf_integer(unsigned short, len
, len
)
1605 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1607 LTTNG_TRACEPOINT_EVENT(ext4_remove_blocks
,
1608 TP_PROTO(struct inode
*inode
, struct ext4_extent
*ex
,
1609 ext4_lblk_t from
, ext4_fsblk_t to
,
1610 long long partial_cluster
),
1612 TP_ARGS(inode
, ex
, from
, to
, partial_cluster
),
1615 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1616 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1617 ctf_integer(ext4_lblk_t
, from
, from
)
1618 ctf_integer(ext4_lblk_t
, to
, to
)
1619 ctf_integer(long long, partial
, partial_cluster
)
1620 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1621 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1622 ctf_integer(unsigned short, ee_len
, ext4_ext_get_actual_len(ex
))
1628 LTTNG_TRACEPOINT_EVENT(ext4_remove_blocks
,
1629 TP_PROTO(struct inode
*inode
, struct ext4_extent
*ex
,
1630 ext4_lblk_t from
, ext4_fsblk_t to
,
1631 ext4_fsblk_t partial_cluster
),
1633 TP_ARGS(inode
, ex
, from
, to
, partial_cluster
),
1636 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1637 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1638 ctf_integer(ext4_lblk_t
, from
, from
)
1639 ctf_integer(ext4_lblk_t
, to
, to
)
1640 ctf_integer(ext4_fsblk_t
, partial
, partial_cluster
)
1641 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1642 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1643 ctf_integer(unsigned short, ee_len
, ext4_ext_get_actual_len(ex
))
1649 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1651 LTTNG_TRACEPOINT_EVENT(ext4_ext_rm_leaf
,
1652 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
,
1653 struct ext4_extent
*ex
,
1654 long long partial_cluster
),
1656 TP_ARGS(inode
, start
, ex
, partial_cluster
),
1659 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1660 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1661 ctf_integer(long long, partial
, partial_cluster
)
1662 ctf_integer(ext4_lblk_t
, start
, start
)
1663 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1664 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1665 ctf_integer(short, ee_len
, ext4_ext_get_actual_len(ex
))
1671 LTTNG_TRACEPOINT_EVENT(ext4_ext_rm_leaf
,
1672 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
,
1673 struct ext4_extent
*ex
, ext4_fsblk_t partial_cluster
),
1675 TP_ARGS(inode
, start
, ex
, partial_cluster
),
1678 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1679 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1680 ctf_integer(long long, partial
, partial_cluster
)
1681 ctf_integer(ext4_lblk_t
, start
, start
)
1682 ctf_integer(ext4_lblk_t
, ee_lblk
, le32_to_cpu(ex
->ee_block
))
1683 ctf_integer(ext4_fsblk_t
, ee_pblk
, ext4_ext_pblock(ex
))
1684 ctf_integer(short, ee_len
, ext4_ext_get_actual_len(ex
))
1690 LTTNG_TRACEPOINT_EVENT(ext4_ext_rm_idx
,
1691 TP_PROTO(struct inode
*inode
, ext4_fsblk_t pblk
),
1693 TP_ARGS(inode
, pblk
),
1696 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1697 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1698 ctf_integer(ext4_fsblk_t
, pblk
, pblk
)
1702 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1704 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space
,
1705 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
,
1706 ext4_lblk_t end
, int depth
),
1708 TP_ARGS(inode
, start
, end
, depth
),
1711 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1712 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1713 ctf_integer(ext4_lblk_t
, start
, start
)
1714 ctf_integer(ext4_lblk_t
, end
, end
)
1715 ctf_integer(int, depth
, depth
)
1721 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space
,
1722 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
, int depth
),
1724 TP_ARGS(inode
, start
, depth
),
1727 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1728 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1729 ctf_integer(ext4_lblk_t
, start
, start
)
1730 ctf_integer(int, depth
, depth
)
1736 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1738 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space_done
,
1739 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
, ext4_lblk_t end
,
1740 int depth
, long long partial
, __le16 eh_entries
),
1742 TP_ARGS(inode
, start
, end
, depth
, partial
, eh_entries
),
1745 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1746 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1747 ctf_integer(ext4_lblk_t
, start
, start
)
1748 ctf_integer(ext4_lblk_t
, end
, end
)
1749 ctf_integer(int, depth
, depth
)
1750 ctf_integer(long long, partial
, partial
)
1751 ctf_integer(unsigned short, eh_entries
, le16_to_cpu(eh_entries
))
1757 LTTNG_TRACEPOINT_EVENT(ext4_ext_remove_space_done
,
1758 TP_PROTO(struct inode
*inode
, ext4_lblk_t start
, int depth
,
1759 ext4_lblk_t partial
, unsigned short eh_entries
),
1761 TP_ARGS(inode
, start
, depth
, partial
, eh_entries
),
1764 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1765 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1766 ctf_integer(ext4_lblk_t
, start
, start
)
1767 ctf_integer(int, depth
, depth
)
1768 ctf_integer(ext4_lblk_t
, partial
, partial
)
1769 ctf_integer(unsigned short, eh_entries
, eh_entries
)
1777 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
1779 LTTNG_TRACEPOINT_EVENT_CLASS(ext4__es_extent
,
1780 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1785 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1786 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1787 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1788 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1789 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1790 ctf_integer(char, status
, ext4_es_status(es
))
1794 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__es_extent
, ext4_es_insert_extent
,
1795 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1800 LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__es_extent
, ext4_es_cache_extent
,
1801 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1806 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
1808 LTTNG_TRACEPOINT_EVENT(ext4_es_insert_extent
,
1809 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1814 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1815 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1816 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1817 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1818 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1819 ctf_integer(char, status
, ext4_es_status(es
) >> 60)
1823 LTTNG_TRACEPOINT_EVENT(ext4_es_remove_extent
,
1824 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
, ext4_lblk_t len
),
1826 TP_ARGS(inode
, lblk
, len
),
1829 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1830 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1831 ctf_integer(loff_t
, lblk
, lblk
)
1832 ctf_integer(loff_t
, len
, len
)
1836 LTTNG_TRACEPOINT_EVENT(ext4_es_find_delayed_extent_range_enter
,
1837 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
),
1839 TP_ARGS(inode
, lblk
),
1842 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1843 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1844 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1848 LTTNG_TRACEPOINT_EVENT(ext4_es_find_delayed_extent_range_exit
,
1849 TP_PROTO(struct inode
*inode
, struct extent_status
*es
),
1854 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1855 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1856 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1857 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1858 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1859 ctf_integer(char, status
, ext4_es_status(es
) >> 60)
1863 LTTNG_TRACEPOINT_EVENT(ext4_es_lookup_extent_enter
,
1864 TP_PROTO(struct inode
*inode
, ext4_lblk_t lblk
),
1866 TP_ARGS(inode
, lblk
),
1869 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1870 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1871 ctf_integer(ext4_lblk_t
, lblk
, lblk
)
1875 LTTNG_TRACEPOINT_EVENT(ext4_es_lookup_extent_exit
,
1876 TP_PROTO(struct inode
*inode
, struct extent_status
*es
,
1879 TP_ARGS(inode
, es
, found
),
1882 ctf_integer(dev_t
, dev
, inode
->i_sb
->s_dev
)
1883 ctf_integer(ino_t
, ino
, inode
->i_ino
)
1884 ctf_integer(ext4_lblk_t
, lblk
, es
->es_lblk
)
1885 ctf_integer(ext4_lblk_t
, len
, es
->es_len
)
1886 ctf_integer(ext4_fsblk_t
, pblk
, ext4_es_pblock(es
))
1887 ctf_integer(char, status
, ext4_es_status(es
) >> 60)
1888 ctf_integer(int, found
, found
)
1892 LTTNG_TRACEPOINT_EVENT(ext4_es_shrink_enter
,
1893 TP_PROTO(struct super_block
*sb
, int nr_to_scan
, int cache_cnt
),
1895 TP_ARGS(sb
, nr_to_scan
, cache_cnt
),
1898 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1899 ctf_integer(int, nr_to_scan
, nr_to_scan
)
1900 ctf_integer(int, cache_cnt
, cache_cnt
)
1904 LTTNG_TRACEPOINT_EVENT(ext4_es_shrink_exit
,
1905 TP_PROTO(struct super_block
*sb
, int shrunk_nr
, int cache_cnt
),
1907 TP_ARGS(sb
, shrunk_nr
, cache_cnt
),
1910 ctf_integer(dev_t
, dev
, sb
->s_dev
)
1911 ctf_integer(int, shrunk_nr
, shrunk_nr
)
1912 ctf_integer(int, cache_cnt
, cache_cnt
)
1918 #endif /* LTTNG_TRACE_EXT4_H */
1920 /* This part must be outside protection */
1921 #include <probes/define_trace.h>