aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/ext4.h
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2013-05-27 23:32:35 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-05-27 23:32:35 -0400
commit61801325f790ea15ba0630a7a26bd80a0741813f (patch)
tree438513561a982066c421f823377fb96825699aae /include/trace/events/ext4.h
parent78fb9cdf035d88a39a5e5f83bb8788e4fe7c1f72 (diff)
ext4: update ext4_ext_remove_space trace point
Add "end" variable. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/trace/events/ext4.h')
-rw-r--r--include/trace/events/ext4.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
index dcfce96c08a8..bcb5a021945c 100644
--- a/include/trace/events/ext4.h
+++ b/include/trace/events/ext4.h
@@ -2027,14 +2027,16 @@ TRACE_EVENT(ext4_ext_rm_idx,
2027); 2027);
2028 2028
2029TRACE_EVENT(ext4_ext_remove_space, 2029TRACE_EVENT(ext4_ext_remove_space,
2030 TP_PROTO(struct inode *inode, ext4_lblk_t start, int depth), 2030 TP_PROTO(struct inode *inode, ext4_lblk_t start,
2031 ext4_lblk_t end, int depth),
2031 2032
2032 TP_ARGS(inode, start, depth), 2033 TP_ARGS(inode, start, end, depth),
2033 2034
2034 TP_STRUCT__entry( 2035 TP_STRUCT__entry(
2035 __field( dev_t, dev ) 2036 __field( dev_t, dev )
2036 __field( ino_t, ino ) 2037 __field( ino_t, ino )
2037 __field( ext4_lblk_t, start ) 2038 __field( ext4_lblk_t, start )
2039 __field( ext4_lblk_t, end )
2038 __field( int, depth ) 2040 __field( int, depth )
2039 ), 2041 ),
2040 2042
@@ -2042,26 +2044,29 @@ TRACE_EVENT(ext4_ext_remove_space,
2042 __entry->dev = inode->i_sb->s_dev; 2044 __entry->dev = inode->i_sb->s_dev;
2043 __entry->ino = inode->i_ino; 2045 __entry->ino = inode->i_ino;
2044 __entry->start = start; 2046 __entry->start = start;
2047 __entry->end = end;
2045 __entry->depth = depth; 2048 __entry->depth = depth;
2046 ), 2049 ),
2047 2050
2048 TP_printk("dev %d,%d ino %lu since %u depth %d", 2051 TP_printk("dev %d,%d ino %lu since %u end %u depth %d",
2049 MAJOR(__entry->dev), MINOR(__entry->dev), 2052 MAJOR(__entry->dev), MINOR(__entry->dev),
2050 (unsigned long) __entry->ino, 2053 (unsigned long) __entry->ino,
2051 (unsigned) __entry->start, 2054 (unsigned) __entry->start,
2055 (unsigned) __entry->end,
2052 __entry->depth) 2056 __entry->depth)
2053); 2057);
2054 2058
2055TRACE_EVENT(ext4_ext_remove_space_done, 2059TRACE_EVENT(ext4_ext_remove_space_done,
2056 TP_PROTO(struct inode *inode, ext4_lblk_t start, int depth, 2060 TP_PROTO(struct inode *inode, ext4_lblk_t start, ext4_lblk_t end,
2057 ext4_lblk_t partial, __le16 eh_entries), 2061 int depth, ext4_lblk_t partial, __le16 eh_entries),
2058 2062
2059 TP_ARGS(inode, start, depth, partial, eh_entries), 2063 TP_ARGS(inode, start, end, depth, partial, eh_entries),
2060 2064
2061 TP_STRUCT__entry( 2065 TP_STRUCT__entry(
2062 __field( dev_t, dev ) 2066 __field( dev_t, dev )
2063 __field( ino_t, ino ) 2067 __field( ino_t, ino )
2064 __field( ext4_lblk_t, start ) 2068 __field( ext4_lblk_t, start )
2069 __field( ext4_lblk_t, end )
2065 __field( int, depth ) 2070 __field( int, depth )
2066 __field( ext4_lblk_t, partial ) 2071 __field( ext4_lblk_t, partial )
2067 __field( unsigned short, eh_entries ) 2072 __field( unsigned short, eh_entries )
@@ -2071,16 +2076,18 @@ TRACE_EVENT(ext4_ext_remove_space_done,
2071 __entry->dev = inode->i_sb->s_dev; 2076 __entry->dev = inode->i_sb->s_dev;
2072 __entry->ino = inode->i_ino; 2077 __entry->ino = inode->i_ino;
2073 __entry->start = start; 2078 __entry->start = start;
2079 __entry->end = end;
2074 __entry->depth = depth; 2080 __entry->depth = depth;
2075 __entry->partial = partial; 2081 __entry->partial = partial;
2076 __entry->eh_entries = le16_to_cpu(eh_entries); 2082 __entry->eh_entries = le16_to_cpu(eh_entries);
2077 ), 2083 ),
2078 2084
2079 TP_printk("dev %d,%d ino %lu since %u depth %d partial %u " 2085 TP_printk("dev %d,%d ino %lu since %u end %u depth %d partial %u "
2080 "remaining_entries %u", 2086 "remaining_entries %u",
2081 MAJOR(__entry->dev), MINOR(__entry->dev), 2087 MAJOR(__entry->dev), MINOR(__entry->dev),
2082 (unsigned long) __entry->ino, 2088 (unsigned long) __entry->ino,
2083 (unsigned) __entry->start, 2089 (unsigned) __entry->start,
2090 (unsigned) __entry->end,
2084 __entry->depth, 2091 __entry->depth,
2085 (unsigned) __entry->partial, 2092 (unsigned) __entry->partial,
2086 (unsigned short) __entry->eh_entries) 2093 (unsigned short) __entry->eh_entries)