aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-11-22 20:23:31 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-11-22 20:23:31 -0500
commit6eebee625544ac4ef1d805da942f463275bd6caa (patch)
tree3db08ee0240d6556a5affed9bb9018cbf01874aa /include/trace
parente6362609b6c71c5b802026be9cf263bbdd67a50e (diff)
ext4: print i_mode in octal in ext4 tracepoints
Inode permissions are much easier to understand if they are printed in octal. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/ext4.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
index 74f628bfdd1b..287347ca71b4 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);
@@ -930,7 +930,7 @@ TRACE_EVENT(ext4_forget,
930 __entry->block = block; 930 __entry->block = block;
931 ), 931 ),
932 932
933 TP_printk("dev %s ino %lu mode %d is_metadata %d block %llu", 933 TP_printk("dev %s ino %lu mode 0%o is_metadata %d block %llu",
934 jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, 934 jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino,
935 __entry->mode, __entry->is_metadata, __entry->block) 935 __entry->mode, __entry->is_metadata, __entry->block)
936); 936);