diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 13:26:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 13:26:37 -0400 |
commit | e4ce30f3779c2ddaa7dfaa4042209e5dbacbada5 (patch) | |
tree | cc64c1dcd16b5dbf71ebc8338b339e6fb04abaee /include/trace | |
parent | b899ebeb05da4287ce845976727e3e83dadd25d5 (diff) | |
parent | 14ece1028b3ed53ffec1b1213ffc6acaf79ad77c (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: (40 commits)
ext4: Make fsync sync new parent directories in no-journal mode
ext4: Drop whitespace at end of lines
ext4: Fix compat EXT4_IOC_ADD_GROUP
ext4: Conditionally define compat ioctl numbers
tracing: Convert more ext4 events to DEFINE_EVENT
ext4: Add new tracepoints to track mballoc's buddy bitmap loads
ext4: Add a missing trace hook
ext4: restart ext4_ext_remove_space() after transaction restart
ext4: Clear the EXT4_EOFBLOCKS_FL flag only when warranted
ext4: Avoid crashing on NULL ptr dereference on a filesystem error
ext4: Use bitops to read/modify i_flags in struct ext4_inode_info
ext4: Convert calls of ext4_error() to EXT4_ERROR_INODE()
ext4: Convert callers of ext4_get_blocks() to use ext4_map_blocks()
ext4: Add new abstraction ext4_map_blocks() underneath ext4_get_blocks()
ext4: Use our own write_cache_pages()
ext4: Show journal_checksum option
ext4: Fix for ext4_mb_collect_stats()
ext4: check for a good block group before loading buddy pages
ext4: Prevent creation of files larger than RLIMIT_FSIZE using fallocate
ext4: Remove extraneous newlines in ext4_msg() calls
...
Fixed up trivial conflict in fs/ext4/fsync.c
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/ext4.h | 94 |
1 files changed, 50 insertions, 44 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index 2aa6aa3e8f61..5d60ad4ebf78 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h | |||
@@ -353,7 +353,7 @@ TRACE_EVENT(ext4_discard_blocks, | |||
353 | jbd2_dev_to_name(__entry->dev), __entry->blk, __entry->count) | 353 | jbd2_dev_to_name(__entry->dev), __entry->blk, __entry->count) |
354 | ); | 354 | ); |
355 | 355 | ||
356 | TRACE_EVENT(ext4_mb_new_inode_pa, | 356 | DECLARE_EVENT_CLASS(ext4__mb_new_pa, |
357 | TP_PROTO(struct ext4_allocation_context *ac, | 357 | TP_PROTO(struct ext4_allocation_context *ac, |
358 | struct ext4_prealloc_space *pa), | 358 | struct ext4_prealloc_space *pa), |
359 | 359 | ||
@@ -381,32 +381,20 @@ TRACE_EVENT(ext4_mb_new_inode_pa, | |||
381 | __entry->pa_pstart, __entry->pa_len, __entry->pa_lstart) | 381 | __entry->pa_pstart, __entry->pa_len, __entry->pa_lstart) |
382 | ); | 382 | ); |
383 | 383 | ||
384 | TRACE_EVENT(ext4_mb_new_group_pa, | 384 | DEFINE_EVENT(ext4__mb_new_pa, ext4_mb_new_inode_pa, |
385 | |||
385 | TP_PROTO(struct ext4_allocation_context *ac, | 386 | TP_PROTO(struct ext4_allocation_context *ac, |
386 | struct ext4_prealloc_space *pa), | 387 | struct ext4_prealloc_space *pa), |
387 | 388 | ||
388 | TP_ARGS(ac, pa), | 389 | TP_ARGS(ac, pa) |
389 | 390 | ); | |
390 | TP_STRUCT__entry( | ||
391 | __field( dev_t, dev ) | ||
392 | __field( ino_t, ino ) | ||
393 | __field( __u64, pa_pstart ) | ||
394 | __field( __u32, pa_len ) | ||
395 | __field( __u64, pa_lstart ) | ||
396 | 391 | ||
397 | ), | 392 | DEFINE_EVENT(ext4__mb_new_pa, ext4_mb_new_group_pa, |
398 | 393 | ||
399 | TP_fast_assign( | 394 | TP_PROTO(struct ext4_allocation_context *ac, |
400 | __entry->dev = ac->ac_sb->s_dev; | 395 | struct ext4_prealloc_space *pa), |
401 | __entry->ino = ac->ac_inode->i_ino; | ||
402 | __entry->pa_pstart = pa->pa_pstart; | ||
403 | __entry->pa_len = pa->pa_len; | ||
404 | __entry->pa_lstart = pa->pa_lstart; | ||
405 | ), | ||
406 | 396 | ||
407 | TP_printk("dev %s ino %lu pstart %llu len %u lstart %llu", | 397 | TP_ARGS(ac, pa) |
408 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | ||
409 | __entry->pa_pstart, __entry->pa_len, __entry->pa_lstart) | ||
410 | ); | 398 | ); |
411 | 399 | ||
412 | TRACE_EVENT(ext4_mb_release_inode_pa, | 400 | TRACE_EVENT(ext4_mb_release_inode_pa, |
@@ -790,7 +778,7 @@ TRACE_EVENT(ext4_mballoc_prealloc, | |||
790 | __entry->result_len, __entry->result_logical) | 778 | __entry->result_len, __entry->result_logical) |
791 | ); | 779 | ); |
792 | 780 | ||
793 | TRACE_EVENT(ext4_mballoc_discard, | 781 | DECLARE_EVENT_CLASS(ext4__mballoc, |
794 | TP_PROTO(struct ext4_allocation_context *ac), | 782 | TP_PROTO(struct ext4_allocation_context *ac), |
795 | 783 | ||
796 | TP_ARGS(ac), | 784 | TP_ARGS(ac), |
@@ -819,33 +807,18 @@ TRACE_EVENT(ext4_mballoc_discard, | |||
819 | __entry->result_len, __entry->result_logical) | 807 | __entry->result_len, __entry->result_logical) |
820 | ); | 808 | ); |
821 | 809 | ||
822 | TRACE_EVENT(ext4_mballoc_free, | 810 | DEFINE_EVENT(ext4__mballoc, ext4_mballoc_discard, |
811 | |||
823 | TP_PROTO(struct ext4_allocation_context *ac), | 812 | TP_PROTO(struct ext4_allocation_context *ac), |
824 | 813 | ||
825 | TP_ARGS(ac), | 814 | TP_ARGS(ac) |
815 | ); | ||
826 | 816 | ||
827 | TP_STRUCT__entry( | 817 | DEFINE_EVENT(ext4__mballoc, ext4_mballoc_free, |
828 | __field( dev_t, dev ) | ||
829 | __field( ino_t, ino ) | ||
830 | __field( __u32, result_logical ) | ||
831 | __field( int, result_start ) | ||
832 | __field( __u32, result_group ) | ||
833 | __field( int, result_len ) | ||
834 | ), | ||
835 | 818 | ||
836 | TP_fast_assign( | 819 | TP_PROTO(struct ext4_allocation_context *ac), |
837 | __entry->dev = ac->ac_inode->i_sb->s_dev; | ||
838 | __entry->ino = ac->ac_inode->i_ino; | ||
839 | __entry->result_logical = ac->ac_b_ex.fe_logical; | ||
840 | __entry->result_start = ac->ac_b_ex.fe_start; | ||
841 | __entry->result_group = ac->ac_b_ex.fe_group; | ||
842 | __entry->result_len = ac->ac_b_ex.fe_len; | ||
843 | ), | ||
844 | 820 | ||
845 | TP_printk("dev %s inode %lu extent %u/%d/%u@%u ", | 821 | TP_ARGS(ac) |
846 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | ||
847 | __entry->result_group, __entry->result_start, | ||
848 | __entry->result_len, __entry->result_logical) | ||
849 | ); | 822 | ); |
850 | 823 | ||
851 | TRACE_EVENT(ext4_forget, | 824 | TRACE_EVENT(ext4_forget, |
@@ -974,6 +947,39 @@ TRACE_EVENT(ext4_da_release_space, | |||
974 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) | 947 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) |
975 | ); | 948 | ); |
976 | 949 | ||
950 | DECLARE_EVENT_CLASS(ext4__bitmap_load, | ||
951 | TP_PROTO(struct super_block *sb, unsigned long group), | ||
952 | |||
953 | TP_ARGS(sb, group), | ||
954 | |||
955 | TP_STRUCT__entry( | ||
956 | __field( dev_t, dev ) | ||
957 | __field( __u32, group ) | ||
958 | |||
959 | ), | ||
960 | |||
961 | TP_fast_assign( | ||
962 | __entry->dev = sb->s_dev; | ||
963 | __entry->group = group; | ||
964 | ), | ||
965 | |||
966 | TP_printk("dev %s group %u", | ||
967 | jbd2_dev_to_name(__entry->dev), __entry->group) | ||
968 | ); | ||
969 | |||
970 | DEFINE_EVENT(ext4__bitmap_load, ext4_mb_bitmap_load, | ||
971 | |||
972 | TP_PROTO(struct super_block *sb, unsigned long group), | ||
973 | |||
974 | TP_ARGS(sb, group) | ||
975 | ); | ||
976 | |||
977 | DEFINE_EVENT(ext4__bitmap_load, ext4_mb_buddy_bitmap_load, | ||
978 | |||
979 | TP_PROTO(struct super_block *sb, unsigned long group), | ||
980 | |||
981 | TP_ARGS(sb, group) | ||
982 | ); | ||
977 | 983 | ||
978 | #endif /* _TRACE_EXT4_H */ | 984 | #endif /* _TRACE_EXT4_H */ |
979 | 985 | ||