diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-05-17 03:00:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-05-17 03:00:00 -0400 |
commit | f307333e14f6b18045eb4198fe646d9b6028f3ed (patch) | |
tree | 71611b08a95f4f07de9b4c19100474188027e62e /include/trace | |
parent | 5a58ec8766e0ce98fd585eb404b3e56935afafe6 (diff) |
ext4: Add new tracepoints to track mballoc's buddy bitmap loads
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/ext4.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index 2aa6aa3e8f61..99fbf1d0a6b9 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h | |||
@@ -974,6 +974,39 @@ TRACE_EVENT(ext4_da_release_space, | |||
974 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) | 974 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) |
975 | ); | 975 | ); |
976 | 976 | ||
977 | DECLARE_EVENT_CLASS(ext4__bitmap_load, | ||
978 | TP_PROTO(struct super_block *sb, unsigned long group), | ||
979 | |||
980 | TP_ARGS(sb, group), | ||
981 | |||
982 | TP_STRUCT__entry( | ||
983 | __field( dev_t, dev ) | ||
984 | __field( __u32, group ) | ||
985 | |||
986 | ), | ||
987 | |||
988 | TP_fast_assign( | ||
989 | __entry->dev = sb->s_dev; | ||
990 | __entry->group = group; | ||
991 | ), | ||
992 | |||
993 | TP_printk("dev %s group %u", | ||
994 | jbd2_dev_to_name(__entry->dev), __entry->group) | ||
995 | ); | ||
996 | |||
997 | DEFINE_EVENT(ext4__bitmap_load, ext4_mb_bitmap_load, | ||
998 | |||
999 | TP_PROTO(struct super_block *sb, unsigned long group), | ||
1000 | |||
1001 | TP_ARGS(sb, group) | ||
1002 | ); | ||
1003 | |||
1004 | DEFINE_EVENT(ext4__bitmap_load, ext4_mb_buddy_bitmap_load, | ||
1005 | |||
1006 | TP_PROTO(struct super_block *sb, unsigned long group), | ||
1007 | |||
1008 | TP_ARGS(sb, group) | ||
1009 | ); | ||
977 | 1010 | ||
978 | #endif /* _TRACE_EXT4_H */ | 1011 | #endif /* _TRACE_EXT4_H */ |
979 | 1012 | ||