diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-10 12:33:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-10 12:33:29 -0500 |
commit | 4515c3069da5bfb6f08dbfca499464b4cbdfcb50 (patch) | |
tree | 0f067045a0e31f126aebcf3087028639ceb237b4 /include/trace | |
parent | a5eba3f66f812cbc076a1170b3f888ad63f850b2 (diff) | |
parent | fab3a549e204172236779f502eccb4f9bf0dc87d (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (47 commits)
ext4: Fix potential fiemap deadlock (mmap_sem vs. i_data_sem)
ext4: Do not override ext2 or ext3 if built they are built as modules
jbd2: Export jbd2_log_start_commit to fix ext4 build
ext4: Fix insufficient checks in EXT4_IOC_MOVE_EXT
ext4: Wait for proper transaction commit on fsync
ext4: fix incorrect block reservation on quota transfer.
ext4: quota macros cleanup
ext4: ext4_get_reserved_space() must return bytes instead of blocks
ext4: remove blocks from inode prealloc list on failure
ext4: wait for log to commit when umounting
ext4: Avoid data / filesystem corruption when write fails to copy data
ext4: Use ext4 file system driver for ext2/ext3 file system mounts
ext4: Return the PTR_ERR of the correct pointer in setup_new_group_blocks()
jbd2: Add ENOMEM checking in and for jbd2_journal_write_metadata_buffer()
ext4: remove unused parameter wbc from __ext4_journalled_writepage()
ext4: remove encountered_congestion trace
ext4: move_extent_per_page() cleanup
ext4: initialize moved_len before calling ext4_move_extents()
ext4: Fix double-free of blocks with EXT4_IOC_MOVE_EXT
ext4: use ext4_data_block_valid() in ext4_free_blocks()
...
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/ext4.h | 54 |
1 files changed, 40 insertions, 14 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index 318f76535bd4..d0b6cd3afb2f 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h | |||
@@ -38,7 +38,7 @@ TRACE_EVENT(ext4_free_inode, | |||
38 | __entry->blocks = inode->i_blocks; | 38 | __entry->blocks = inode->i_blocks; |
39 | ), | 39 | ), |
40 | 40 | ||
41 | TP_printk("dev %s ino %lu mode %d uid %u gid %u blocks %llu", | 41 | TP_printk("dev %s ino %lu mode 0%o uid %u gid %u blocks %llu", |
42 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 42 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
43 | __entry->mode, __entry->uid, __entry->gid, | 43 | __entry->mode, __entry->uid, __entry->gid, |
44 | (unsigned long long) __entry->blocks) | 44 | (unsigned long long) __entry->blocks) |
@@ -61,7 +61,7 @@ TRACE_EVENT(ext4_request_inode, | |||
61 | __entry->mode = mode; | 61 | __entry->mode = mode; |
62 | ), | 62 | ), |
63 | 63 | ||
64 | TP_printk("dev %s dir %lu mode %d", | 64 | TP_printk("dev %s dir %lu mode 0%o", |
65 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->dir, | 65 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->dir, |
66 | __entry->mode) | 66 | __entry->mode) |
67 | ); | 67 | ); |
@@ -85,7 +85,7 @@ TRACE_EVENT(ext4_allocate_inode, | |||
85 | __entry->mode = mode; | 85 | __entry->mode = mode; |
86 | ), | 86 | ), |
87 | 87 | ||
88 | TP_printk("dev %s ino %lu dir %lu mode %d", | 88 | TP_printk("dev %s ino %lu dir %lu mode 0%o", |
89 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 89 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
90 | (unsigned long) __entry->dir, __entry->mode) | 90 | (unsigned long) __entry->dir, __entry->mode) |
91 | ); | 91 | ); |
@@ -305,7 +305,6 @@ TRACE_EVENT(ext4_da_writepages_result, | |||
305 | __field( int, ret ) | 305 | __field( int, ret ) |
306 | __field( int, pages_written ) | 306 | __field( int, pages_written ) |
307 | __field( long, pages_skipped ) | 307 | __field( long, pages_skipped ) |
308 | __field( char, encountered_congestion ) | ||
309 | __field( char, more_io ) | 308 | __field( char, more_io ) |
310 | __field( char, no_nrwrite_index_update ) | 309 | __field( char, no_nrwrite_index_update ) |
311 | __field( pgoff_t, writeback_index ) | 310 | __field( pgoff_t, writeback_index ) |
@@ -317,17 +316,16 @@ TRACE_EVENT(ext4_da_writepages_result, | |||
317 | __entry->ret = ret; | 316 | __entry->ret = ret; |
318 | __entry->pages_written = pages_written; | 317 | __entry->pages_written = pages_written; |
319 | __entry->pages_skipped = wbc->pages_skipped; | 318 | __entry->pages_skipped = wbc->pages_skipped; |
320 | __entry->encountered_congestion = wbc->encountered_congestion; | ||
321 | __entry->more_io = wbc->more_io; | 319 | __entry->more_io = wbc->more_io; |
322 | __entry->no_nrwrite_index_update = wbc->no_nrwrite_index_update; | 320 | __entry->no_nrwrite_index_update = wbc->no_nrwrite_index_update; |
323 | __entry->writeback_index = inode->i_mapping->writeback_index; | 321 | __entry->writeback_index = inode->i_mapping->writeback_index; |
324 | ), | 322 | ), |
325 | 323 | ||
326 | TP_printk("dev %s ino %lu ret %d pages_written %d pages_skipped %ld congestion %d more_io %d no_nrwrite_index_update %d writeback_index %lu", | 324 | TP_printk("dev %s ino %lu ret %d pages_written %d pages_skipped %ld more_io %d no_nrwrite_index_update %d writeback_index %lu", |
327 | jbd2_dev_to_name(__entry->dev), | 325 | jbd2_dev_to_name(__entry->dev), |
328 | (unsigned long) __entry->ino, __entry->ret, | 326 | (unsigned long) __entry->ino, __entry->ret, |
329 | __entry->pages_written, __entry->pages_skipped, | 327 | __entry->pages_written, __entry->pages_skipped, |
330 | __entry->encountered_congestion, __entry->more_io, | 328 | __entry->more_io, |
331 | __entry->no_nrwrite_index_update, | 329 | __entry->no_nrwrite_index_update, |
332 | (unsigned long) __entry->writeback_index) | 330 | (unsigned long) __entry->writeback_index) |
333 | ); | 331 | ); |
@@ -591,30 +589,32 @@ TRACE_EVENT(ext4_allocate_blocks, | |||
591 | 589 | ||
592 | TRACE_EVENT(ext4_free_blocks, | 590 | TRACE_EVENT(ext4_free_blocks, |
593 | TP_PROTO(struct inode *inode, __u64 block, unsigned long count, | 591 | TP_PROTO(struct inode *inode, __u64 block, unsigned long count, |
594 | int metadata), | 592 | int flags), |
595 | 593 | ||
596 | TP_ARGS(inode, block, count, metadata), | 594 | TP_ARGS(inode, block, count, flags), |
597 | 595 | ||
598 | TP_STRUCT__entry( | 596 | TP_STRUCT__entry( |
599 | __field( dev_t, dev ) | 597 | __field( dev_t, dev ) |
600 | __field( ino_t, ino ) | 598 | __field( ino_t, ino ) |
599 | __field( umode_t, mode ) | ||
601 | __field( __u64, block ) | 600 | __field( __u64, block ) |
602 | __field( unsigned long, count ) | 601 | __field( unsigned long, count ) |
603 | __field( int, metadata ) | 602 | __field( int, flags ) |
604 | |||
605 | ), | 603 | ), |
606 | 604 | ||
607 | TP_fast_assign( | 605 | TP_fast_assign( |
608 | __entry->dev = inode->i_sb->s_dev; | 606 | __entry->dev = inode->i_sb->s_dev; |
609 | __entry->ino = inode->i_ino; | 607 | __entry->ino = inode->i_ino; |
608 | __entry->mode = inode->i_mode; | ||
610 | __entry->block = block; | 609 | __entry->block = block; |
611 | __entry->count = count; | 610 | __entry->count = count; |
612 | __entry->metadata = metadata; | 611 | __entry->flags = flags; |
613 | ), | 612 | ), |
614 | 613 | ||
615 | TP_printk("dev %s ino %lu block %llu count %lu metadata %d", | 614 | TP_printk("dev %s ino %lu mode 0%o block %llu count %lu flags %d", |
616 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 615 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
617 | __entry->block, __entry->count, __entry->metadata) | 616 | __entry->mode, __entry->block, __entry->count, |
617 | __entry->flags) | ||
618 | ); | 618 | ); |
619 | 619 | ||
620 | TRACE_EVENT(ext4_sync_file, | 620 | TRACE_EVENT(ext4_sync_file, |
@@ -848,6 +848,32 @@ TRACE_EVENT(ext4_mballoc_free, | |||
848 | __entry->result_len, __entry->result_logical) | 848 | __entry->result_len, __entry->result_logical) |
849 | ); | 849 | ); |
850 | 850 | ||
851 | TRACE_EVENT(ext4_forget, | ||
852 | TP_PROTO(struct inode *inode, int is_metadata, __u64 block), | ||
853 | |||
854 | TP_ARGS(inode, is_metadata, block), | ||
855 | |||
856 | TP_STRUCT__entry( | ||
857 | __field( dev_t, dev ) | ||
858 | __field( ino_t, ino ) | ||
859 | __field( umode_t, mode ) | ||
860 | __field( int, is_metadata ) | ||
861 | __field( __u64, block ) | ||
862 | ), | ||
863 | |||
864 | TP_fast_assign( | ||
865 | __entry->dev = inode->i_sb->s_dev; | ||
866 | __entry->ino = inode->i_ino; | ||
867 | __entry->mode = inode->i_mode; | ||
868 | __entry->is_metadata = is_metadata; | ||
869 | __entry->block = block; | ||
870 | ), | ||
871 | |||
872 | TP_printk("dev %s ino %lu mode 0%o is_metadata %d block %llu", | ||
873 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | ||
874 | __entry->mode, __entry->is_metadata, __entry->block) | ||
875 | ); | ||
876 | |||
851 | #endif /* _TRACE_EXT4_H */ | 877 | #endif /* _TRACE_EXT4_H */ |
852 | 878 | ||
853 | /* This part must be outside protection */ | 879 | /* This part must be outside protection */ |