@@ -99,15 +99,26 @@ DEFINE_RANGE_EVENT(iomap_dio_rw_queued);
99
99
{ IOMAP_FAULT, "FAULT" }, \
100
100
{ IOMAP_DIRECT, "DIRECT" }, \
101
101
{ IOMAP_NOWAIT, "NOWAIT" }, \
102
- { IOMAP_ATOMIC, "ATOMIC" }
102
+ { IOMAP_OVERWRITE_ONLY, "OVERWRITE_ONLY" }, \
103
+ { IOMAP_UNSHARE, "UNSHARE" }, \
104
+ { IOMAP_DAX, "DAX" }, \
105
+ { IOMAP_ATOMIC, "ATOMIC" }, \
106
+ { IOMAP_DONTCACHE, "DONTCACHE" }
103
107
104
108
#define IOMAP_F_FLAGS_STRINGS \
105
109
{ IOMAP_F_NEW, "NEW" }, \
106
110
{ IOMAP_F_DIRTY, "DIRTY" }, \
107
111
{ IOMAP_F_SHARED, "SHARED" }, \
108
112
{ IOMAP_F_MERGED, "MERGED" }, \
109
113
{ IOMAP_F_BUFFER_HEAD, "BH" }, \
110
- { IOMAP_F_SIZE_CHANGED, "SIZE_CHANGED" }
114
+ { IOMAP_F_XATTR, "XATTR" }, \
115
+ { IOMAP_F_BOUNDARY, "BOUNDARY" }, \
116
+ { IOMAP_F_ANON_WRITE, "ANON_WRITE" }, \
117
+ { IOMAP_F_ATOMIC_BIO, "ATOMIC_BIO" }, \
118
+ { IOMAP_F_PRIVATE, "PRIVATE" }, \
119
+ { IOMAP_F_SIZE_CHANGED, "SIZE_CHANGED" }, \
120
+ { IOMAP_F_STALE, "STALE" }
121
+
111
122
112
123
#define IOMAP_DIO_STRINGS \
113
124
{IOMAP_DIO_FORCE_WAIT, "DIO_FORCE_WAIT" }, \
@@ -138,15 +149,17 @@ DECLARE_EVENT_CLASS(iomap_class,
138
149
__entry -> bdev = iomap -> bdev ? iomap -> bdev -> bd_dev : 0 ;
139
150
),
140
151
TP_printk ("dev %d:%d ino 0x%llx bdev %d:%d addr 0x%llx offset 0x%llx "
141
- "length 0x%llx type %s flags %s" ,
152
+ "length 0x%llx type %s (0x%x) flags %s (0x%x) " ,
142
153
MAJOR (__entry -> dev ), MINOR (__entry -> dev ),
143
154
__entry -> ino ,
144
155
MAJOR (__entry -> bdev ), MINOR (__entry -> bdev ),
145
156
__entry -> addr ,
146
157
__entry -> offset ,
147
158
__entry -> length ,
148
159
__print_symbolic (__entry -> type , IOMAP_TYPE_STRINGS ),
149
- __print_flags (__entry -> flags , "|" , IOMAP_F_FLAGS_STRINGS ))
160
+ __entry -> type ,
161
+ __print_flags (__entry -> flags , "|" , IOMAP_F_FLAGS_STRINGS ),
162
+ __entry -> flags )
150
163
)
151
164
152
165
#define DEFINE_IOMAP_EVENT (name ) \
@@ -185,7 +198,7 @@ TRACE_EVENT(iomap_writepage_map,
185
198
__entry -> bdev = iomap -> bdev ? iomap -> bdev -> bd_dev : 0 ;
186
199
),
187
200
TP_printk ("dev %d:%d ino 0x%llx bdev %d:%d pos 0x%llx dirty len 0x%llx "
188
- "addr 0x%llx offset 0x%llx length 0x%llx type %s flags %s" ,
201
+ "addr 0x%llx offset 0x%llx length 0x%llx type %s (0x%x) flags %s (0x%x) " ,
189
202
MAJOR (__entry -> dev ), MINOR (__entry -> dev ),
190
203
__entry -> ino ,
191
204
MAJOR (__entry -> bdev ), MINOR (__entry -> bdev ),
@@ -195,7 +208,9 @@ TRACE_EVENT(iomap_writepage_map,
195
208
__entry -> offset ,
196
209
__entry -> length ,
197
210
__print_symbolic (__entry -> type , IOMAP_TYPE_STRINGS ),
198
- __print_flags (__entry -> flags , "|" , IOMAP_F_FLAGS_STRINGS ))
211
+ __entry -> type ,
212
+ __print_flags (__entry -> flags , "|" , IOMAP_F_FLAGS_STRINGS ),
213
+ __entry -> flags )
199
214
);
200
215
201
216
TRACE_EVENT (iomap_iter ,
0 commit comments