aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/ext4.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
index d09550bf3f95..b390e1fc4a7b 100644
--- a/include/trace/events/ext4.h
+++ b/include/trace/events/ext4.h
@@ -907,6 +907,32 @@ TRACE_EVENT(ext4_mballoc_free,
907 __entry->result_len, __entry->result_logical) 907 __entry->result_len, __entry->result_logical)
908); 908);
909 909
910TRACE_EVENT(ext4_forget,
911 TP_PROTO(struct inode *inode, int is_metadata, __u64 block),
912
913 TP_ARGS(inode, is_metadata, block),
914
915 TP_STRUCT__entry(
916 __field( dev_t, dev )
917 __field( ino_t, ino )
918 __field( umode_t, mode )
919 __field( int, is_metadata )
920 __field( __u64, block )
921 ),
922
923 TP_fast_assign(
924 __entry->dev = inode->i_sb->s_dev;
925 __entry->ino = inode->i_ino;
926 __entry->mode = inode->i_mode;
927 __entry->is_metadata = is_metadata;
928 __entry->block = block;
929 ),
930
931 TP_printk("dev %s ino %lu mode %d is_metadata %d block %llu",
932 jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino,
933 __entry->mode, __entry->is_metadata, __entry->block)
934);
935
910#endif /* _TRACE_EXT4_H */ 936#endif /* _TRACE_EXT4_H */
911 937
912/* This part must be outside protection */ 938/* This part must be outside protection */