diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-10-27 23:44:47 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-10-27 23:44:47 -0400 |
commit | a107e5a3a473a2ea62bd5af24e11b84adf1486ff (patch) | |
tree | d36c2cb38d8be88d4d75cdebc354aa140aa0e470 /include/trace | |
parent | e3e1288e86a07cdeb0aee5860a2dff111c6eff79 (diff) | |
parent | a269029d0e2192046be4c07ed78a45022469ee4c (diff) |
Merge branch 'next' into upstream-merge
Conflicts:
fs/ext4/inode.c
fs/ext4/mballoc.c
include/trace/events/ext4.h
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/ext4.h | 379 | ||||
-rw-r--r-- | include/trace/events/jbd2.h | 78 |
2 files changed, 278 insertions, 179 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index 6bcb00645de4..289010d3270b 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h | |||
@@ -21,7 +21,8 @@ TRACE_EVENT(ext4_free_inode, | |||
21 | TP_ARGS(inode), | 21 | TP_ARGS(inode), |
22 | 22 | ||
23 | TP_STRUCT__entry( | 23 | TP_STRUCT__entry( |
24 | __field( dev_t, dev ) | 24 | __field( int, dev_major ) |
25 | __field( int, dev_minor ) | ||
25 | __field( ino_t, ino ) | 26 | __field( ino_t, ino ) |
26 | __field( umode_t, mode ) | 27 | __field( umode_t, mode ) |
27 | __field( uid_t, uid ) | 28 | __field( uid_t, uid ) |
@@ -30,7 +31,8 @@ TRACE_EVENT(ext4_free_inode, | |||
30 | ), | 31 | ), |
31 | 32 | ||
32 | TP_fast_assign( | 33 | TP_fast_assign( |
33 | __entry->dev = inode->i_sb->s_dev; | 34 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
35 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
34 | __entry->ino = inode->i_ino; | 36 | __entry->ino = inode->i_ino; |
35 | __entry->mode = inode->i_mode; | 37 | __entry->mode = inode->i_mode; |
36 | __entry->uid = inode->i_uid; | 38 | __entry->uid = inode->i_uid; |
@@ -38,9 +40,10 @@ TRACE_EVENT(ext4_free_inode, | |||
38 | __entry->blocks = inode->i_blocks; | 40 | __entry->blocks = inode->i_blocks; |
39 | ), | 41 | ), |
40 | 42 | ||
41 | TP_printk("dev %s ino %lu mode 0%o uid %u gid %u blocks %llu", | 43 | TP_printk("dev %d,%d ino %lu mode 0%o uid %u gid %u blocks %llu", |
42 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 44 | __entry->dev_major, __entry->dev_minor, |
43 | __entry->mode, __entry->uid, __entry->gid, | 45 | (unsigned long) __entry->ino, __entry->mode, |
46 | __entry->uid, __entry->gid, | ||
44 | (unsigned long long) __entry->blocks) | 47 | (unsigned long long) __entry->blocks) |
45 | ); | 48 | ); |
46 | 49 | ||
@@ -50,20 +53,22 @@ TRACE_EVENT(ext4_request_inode, | |||
50 | TP_ARGS(dir, mode), | 53 | TP_ARGS(dir, mode), |
51 | 54 | ||
52 | TP_STRUCT__entry( | 55 | TP_STRUCT__entry( |
53 | __field( dev_t, dev ) | 56 | __field( int, dev_major ) |
57 | __field( int, dev_minor ) | ||
54 | __field( ino_t, dir ) | 58 | __field( ino_t, dir ) |
55 | __field( umode_t, mode ) | 59 | __field( umode_t, mode ) |
56 | ), | 60 | ), |
57 | 61 | ||
58 | TP_fast_assign( | 62 | TP_fast_assign( |
59 | __entry->dev = dir->i_sb->s_dev; | 63 | __entry->dev_major = MAJOR(dir->i_sb->s_dev); |
64 | __entry->dev_minor = MINOR(dir->i_sb->s_dev); | ||
60 | __entry->dir = dir->i_ino; | 65 | __entry->dir = dir->i_ino; |
61 | __entry->mode = mode; | 66 | __entry->mode = mode; |
62 | ), | 67 | ), |
63 | 68 | ||
64 | TP_printk("dev %s dir %lu mode 0%o", | 69 | TP_printk("dev %d,%d dir %lu mode 0%o", |
65 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->dir, | 70 | __entry->dev_major, __entry->dev_minor, |
66 | __entry->mode) | 71 | (unsigned long) __entry->dir, __entry->mode) |
67 | ); | 72 | ); |
68 | 73 | ||
69 | TRACE_EVENT(ext4_allocate_inode, | 74 | TRACE_EVENT(ext4_allocate_inode, |
@@ -72,21 +77,24 @@ TRACE_EVENT(ext4_allocate_inode, | |||
72 | TP_ARGS(inode, dir, mode), | 77 | TP_ARGS(inode, dir, mode), |
73 | 78 | ||
74 | TP_STRUCT__entry( | 79 | TP_STRUCT__entry( |
75 | __field( dev_t, dev ) | 80 | __field( int, dev_major ) |
81 | __field( int, dev_minor ) | ||
76 | __field( ino_t, ino ) | 82 | __field( ino_t, ino ) |
77 | __field( ino_t, dir ) | 83 | __field( ino_t, dir ) |
78 | __field( umode_t, mode ) | 84 | __field( umode_t, mode ) |
79 | ), | 85 | ), |
80 | 86 | ||
81 | TP_fast_assign( | 87 | TP_fast_assign( |
82 | __entry->dev = inode->i_sb->s_dev; | 88 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
89 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
83 | __entry->ino = inode->i_ino; | 90 | __entry->ino = inode->i_ino; |
84 | __entry->dir = dir->i_ino; | 91 | __entry->dir = dir->i_ino; |
85 | __entry->mode = mode; | 92 | __entry->mode = mode; |
86 | ), | 93 | ), |
87 | 94 | ||
88 | TP_printk("dev %s ino %lu dir %lu mode 0%o", | 95 | TP_printk("dev %d,%d ino %lu dir %lu mode 0%o", |
89 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 96 | __entry->dev_major, __entry->dev_minor, |
97 | (unsigned long) __entry->ino, | ||
90 | (unsigned long) __entry->dir, __entry->mode) | 98 | (unsigned long) __entry->dir, __entry->mode) |
91 | ); | 99 | ); |
92 | 100 | ||
@@ -98,7 +106,8 @@ DECLARE_EVENT_CLASS(ext4__write_begin, | |||
98 | TP_ARGS(inode, pos, len, flags), | 106 | TP_ARGS(inode, pos, len, flags), |
99 | 107 | ||
100 | TP_STRUCT__entry( | 108 | TP_STRUCT__entry( |
101 | __field( dev_t, dev ) | 109 | __field( int, dev_major ) |
110 | __field( int, dev_minor ) | ||
102 | __field( ino_t, ino ) | 111 | __field( ino_t, ino ) |
103 | __field( loff_t, pos ) | 112 | __field( loff_t, pos ) |
104 | __field( unsigned int, len ) | 113 | __field( unsigned int, len ) |
@@ -106,15 +115,17 @@ DECLARE_EVENT_CLASS(ext4__write_begin, | |||
106 | ), | 115 | ), |
107 | 116 | ||
108 | TP_fast_assign( | 117 | TP_fast_assign( |
109 | __entry->dev = inode->i_sb->s_dev; | 118 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
119 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
110 | __entry->ino = inode->i_ino; | 120 | __entry->ino = inode->i_ino; |
111 | __entry->pos = pos; | 121 | __entry->pos = pos; |
112 | __entry->len = len; | 122 | __entry->len = len; |
113 | __entry->flags = flags; | 123 | __entry->flags = flags; |
114 | ), | 124 | ), |
115 | 125 | ||
116 | TP_printk("dev %s ino %lu pos %llu len %u flags %u", | 126 | TP_printk("dev %d,%d ino %lu pos %llu len %u flags %u", |
117 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 127 | __entry->dev_major, __entry->dev_minor, |
128 | (unsigned long) __entry->ino, | ||
118 | __entry->pos, __entry->len, __entry->flags) | 129 | __entry->pos, __entry->len, __entry->flags) |
119 | ); | 130 | ); |
120 | 131 | ||
@@ -141,7 +152,8 @@ DECLARE_EVENT_CLASS(ext4__write_end, | |||
141 | TP_ARGS(inode, pos, len, copied), | 152 | TP_ARGS(inode, pos, len, copied), |
142 | 153 | ||
143 | TP_STRUCT__entry( | 154 | TP_STRUCT__entry( |
144 | __field( dev_t, dev ) | 155 | __field( int, dev_major ) |
156 | __field( int, dev_minor ) | ||
145 | __field( ino_t, ino ) | 157 | __field( ino_t, ino ) |
146 | __field( loff_t, pos ) | 158 | __field( loff_t, pos ) |
147 | __field( unsigned int, len ) | 159 | __field( unsigned int, len ) |
@@ -149,16 +161,18 @@ DECLARE_EVENT_CLASS(ext4__write_end, | |||
149 | ), | 161 | ), |
150 | 162 | ||
151 | TP_fast_assign( | 163 | TP_fast_assign( |
152 | __entry->dev = inode->i_sb->s_dev; | 164 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
165 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
153 | __entry->ino = inode->i_ino; | 166 | __entry->ino = inode->i_ino; |
154 | __entry->pos = pos; | 167 | __entry->pos = pos; |
155 | __entry->len = len; | 168 | __entry->len = len; |
156 | __entry->copied = copied; | 169 | __entry->copied = copied; |
157 | ), | 170 | ), |
158 | 171 | ||
159 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", | 172 | TP_printk("dev %d,%d ino %lu pos %llu len %u copied %u", |
160 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 173 | __entry->dev_major, __entry->dev_minor, |
161 | __entry->pos, __entry->len, __entry->copied) | 174 | (unsigned long) __entry->ino, __entry->pos, |
175 | __entry->len, __entry->copied) | ||
162 | ); | 176 | ); |
163 | 177 | ||
164 | DEFINE_EVENT(ext4__write_end, ext4_ordered_write_end, | 178 | DEFINE_EVENT(ext4__write_end, ext4_ordered_write_end, |
@@ -199,21 +213,23 @@ TRACE_EVENT(ext4_writepage, | |||
199 | TP_ARGS(inode, page), | 213 | TP_ARGS(inode, page), |
200 | 214 | ||
201 | TP_STRUCT__entry( | 215 | TP_STRUCT__entry( |
202 | __field( dev_t, dev ) | 216 | __field( int, dev_major ) |
217 | __field( int, dev_minor ) | ||
203 | __field( ino_t, ino ) | 218 | __field( ino_t, ino ) |
204 | __field( pgoff_t, index ) | 219 | __field( pgoff_t, index ) |
205 | 220 | ||
206 | ), | 221 | ), |
207 | 222 | ||
208 | TP_fast_assign( | 223 | TP_fast_assign( |
209 | __entry->dev = inode->i_sb->s_dev; | 224 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
225 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
210 | __entry->ino = inode->i_ino; | 226 | __entry->ino = inode->i_ino; |
211 | __entry->index = page->index; | 227 | __entry->index = page->index; |
212 | ), | 228 | ), |
213 | 229 | ||
214 | TP_printk("dev %s ino %lu page_index %lu", | 230 | TP_printk("dev %d,%d ino %lu page_index %lu", |
215 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 231 | __entry->dev_major, __entry->dev_minor, |
216 | __entry->index) | 232 | (unsigned long) __entry->ino, __entry->index) |
217 | ); | 233 | ); |
218 | 234 | ||
219 | TRACE_EVENT(ext4_da_writepages, | 235 | TRACE_EVENT(ext4_da_writepages, |
@@ -222,13 +238,13 @@ TRACE_EVENT(ext4_da_writepages, | |||
222 | TP_ARGS(inode, wbc), | 238 | TP_ARGS(inode, wbc), |
223 | 239 | ||
224 | TP_STRUCT__entry( | 240 | TP_STRUCT__entry( |
225 | __field( dev_t, dev ) | 241 | __field( int, dev_major ) |
242 | __field( int, dev_minor ) | ||
226 | __field( ino_t, ino ) | 243 | __field( ino_t, ino ) |
227 | __field( long, nr_to_write ) | 244 | __field( long, nr_to_write ) |
228 | __field( long, pages_skipped ) | 245 | __field( long, pages_skipped ) |
229 | __field( loff_t, range_start ) | 246 | __field( loff_t, range_start ) |
230 | __field( loff_t, range_end ) | 247 | __field( loff_t, range_end ) |
231 | __field( char, nonblocking ) | ||
232 | __field( char, for_kupdate ) | 248 | __field( char, for_kupdate ) |
233 | __field( char, for_reclaim ) | 249 | __field( char, for_reclaim ) |
234 | __field( char, range_cyclic ) | 250 | __field( char, range_cyclic ) |
@@ -236,7 +252,8 @@ TRACE_EVENT(ext4_da_writepages, | |||
236 | ), | 252 | ), |
237 | 253 | ||
238 | TP_fast_assign( | 254 | TP_fast_assign( |
239 | __entry->dev = inode->i_sb->s_dev; | 255 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
256 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
240 | __entry->ino = inode->i_ino; | 257 | __entry->ino = inode->i_ino; |
241 | __entry->nr_to_write = wbc->nr_to_write; | 258 | __entry->nr_to_write = wbc->nr_to_write; |
242 | __entry->pages_skipped = wbc->pages_skipped; | 259 | __entry->pages_skipped = wbc->pages_skipped; |
@@ -248,11 +265,11 @@ TRACE_EVENT(ext4_da_writepages, | |||
248 | __entry->writeback_index = inode->i_mapping->writeback_index; | 265 | __entry->writeback_index = inode->i_mapping->writeback_index; |
249 | ), | 266 | ), |
250 | 267 | ||
251 | TP_printk("dev %s ino %lu nr_to_write %ld pages_skipped %ld " | 268 | TP_printk("dev %d,%d ino %lu nr_to_write %ld pages_skipped %ld " |
252 | "range_start %llu range_end %llu " | 269 | "range_start %llu range_end %llu " |
253 | "for_kupdate %d for_reclaim %d " | 270 | "for_kupdate %d for_reclaim %d " |
254 | "range_cyclic %d writeback_index %lu", | 271 | "range_cyclic %d writeback_index %lu", |
255 | jbd2_dev_to_name(__entry->dev), | 272 | __entry->dev_major, __entry->dev_minor, |
256 | (unsigned long) __entry->ino, __entry->nr_to_write, | 273 | (unsigned long) __entry->ino, __entry->nr_to_write, |
257 | __entry->pages_skipped, __entry->range_start, | 274 | __entry->pages_skipped, __entry->range_start, |
258 | __entry->range_end, | 275 | __entry->range_end, |
@@ -267,7 +284,8 @@ TRACE_EVENT(ext4_da_write_pages, | |||
267 | TP_ARGS(inode, mpd), | 284 | TP_ARGS(inode, mpd), |
268 | 285 | ||
269 | TP_STRUCT__entry( | 286 | TP_STRUCT__entry( |
270 | __field( dev_t, dev ) | 287 | __field( int, dev_major ) |
288 | __field( int, dev_minor ) | ||
271 | __field( ino_t, ino ) | 289 | __field( ino_t, ino ) |
272 | __field( __u64, b_blocknr ) | 290 | __field( __u64, b_blocknr ) |
273 | __field( __u32, b_size ) | 291 | __field( __u32, b_size ) |
@@ -278,7 +296,8 @@ TRACE_EVENT(ext4_da_write_pages, | |||
278 | ), | 296 | ), |
279 | 297 | ||
280 | TP_fast_assign( | 298 | TP_fast_assign( |
281 | __entry->dev = inode->i_sb->s_dev; | 299 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
300 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
282 | __entry->ino = inode->i_ino; | 301 | __entry->ino = inode->i_ino; |
283 | __entry->b_blocknr = mpd->b_blocknr; | 302 | __entry->b_blocknr = mpd->b_blocknr; |
284 | __entry->b_size = mpd->b_size; | 303 | __entry->b_size = mpd->b_size; |
@@ -288,8 +307,9 @@ TRACE_EVENT(ext4_da_write_pages, | |||
288 | __entry->pages_written = mpd->pages_written; | 307 | __entry->pages_written = mpd->pages_written; |
289 | ), | 308 | ), |
290 | 309 | ||
291 | TP_printk("dev %s ino %lu b_blocknr %llu b_size %u b_state 0x%04x first_page %lu io_done %d pages_written %d", | 310 | TP_printk("dev %d,%d ino %lu b_blocknr %llu b_size %u b_state 0x%04x first_page %lu io_done %d pages_written %d", |
292 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 311 | __entry->dev_major, __entry->dev_minor, |
312 | (unsigned long) __entry->ino, | ||
293 | __entry->b_blocknr, __entry->b_size, | 313 | __entry->b_blocknr, __entry->b_size, |
294 | __entry->b_state, __entry->first_page, | 314 | __entry->b_state, __entry->first_page, |
295 | __entry->io_done, __entry->pages_written) | 315 | __entry->io_done, __entry->pages_written) |
@@ -302,7 +322,8 @@ TRACE_EVENT(ext4_da_writepages_result, | |||
302 | TP_ARGS(inode, wbc, ret, pages_written), | 322 | TP_ARGS(inode, wbc, ret, pages_written), |
303 | 323 | ||
304 | TP_STRUCT__entry( | 324 | TP_STRUCT__entry( |
305 | __field( dev_t, dev ) | 325 | __field( int, dev_major ) |
326 | __field( int, dev_minor ) | ||
306 | __field( ino_t, ino ) | 327 | __field( ino_t, ino ) |
307 | __field( int, ret ) | 328 | __field( int, ret ) |
308 | __field( int, pages_written ) | 329 | __field( int, pages_written ) |
@@ -312,7 +333,8 @@ TRACE_EVENT(ext4_da_writepages_result, | |||
312 | ), | 333 | ), |
313 | 334 | ||
314 | TP_fast_assign( | 335 | TP_fast_assign( |
315 | __entry->dev = inode->i_sb->s_dev; | 336 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
337 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
316 | __entry->ino = inode->i_ino; | 338 | __entry->ino = inode->i_ino; |
317 | __entry->ret = ret; | 339 | __entry->ret = ret; |
318 | __entry->pages_written = pages_written; | 340 | __entry->pages_written = pages_written; |
@@ -321,8 +343,8 @@ TRACE_EVENT(ext4_da_writepages_result, | |||
321 | __entry->writeback_index = inode->i_mapping->writeback_index; | 343 | __entry->writeback_index = inode->i_mapping->writeback_index; |
322 | ), | 344 | ), |
323 | 345 | ||
324 | TP_printk("dev %s ino %lu ret %d pages_written %d pages_skipped %ld more_io %d writeback_index %lu", | 346 | TP_printk("dev %d,%d ino %lu ret %d pages_written %d pages_skipped %ld more_io %d writeback_index %lu", |
325 | jbd2_dev_to_name(__entry->dev), | 347 | __entry->dev_major, __entry->dev_minor, |
326 | (unsigned long) __entry->ino, __entry->ret, | 348 | (unsigned long) __entry->ino, __entry->ret, |
327 | __entry->pages_written, __entry->pages_skipped, | 349 | __entry->pages_written, __entry->pages_skipped, |
328 | __entry->more_io, | 350 | __entry->more_io, |
@@ -336,20 +358,23 @@ TRACE_EVENT(ext4_discard_blocks, | |||
336 | TP_ARGS(sb, blk, count), | 358 | TP_ARGS(sb, blk, count), |
337 | 359 | ||
338 | TP_STRUCT__entry( | 360 | TP_STRUCT__entry( |
339 | __field( dev_t, dev ) | 361 | __field( int, dev_major ) |
362 | __field( int, dev_minor ) | ||
340 | __field( __u64, blk ) | 363 | __field( __u64, blk ) |
341 | __field( __u64, count ) | 364 | __field( __u64, count ) |
342 | 365 | ||
343 | ), | 366 | ), |
344 | 367 | ||
345 | TP_fast_assign( | 368 | TP_fast_assign( |
346 | __entry->dev = sb->s_dev; | 369 | __entry->dev_major = MAJOR(sb->s_dev); |
370 | __entry->dev_minor = MINOR(sb->s_dev); | ||
347 | __entry->blk = blk; | 371 | __entry->blk = blk; |
348 | __entry->count = count; | 372 | __entry->count = count; |
349 | ), | 373 | ), |
350 | 374 | ||
351 | TP_printk("dev %s blk %llu count %llu", | 375 | TP_printk("dev %d,%d blk %llu count %llu", |
352 | jbd2_dev_to_name(__entry->dev), __entry->blk, __entry->count) | 376 | __entry->dev_major, __entry->dev_minor, |
377 | __entry->blk, __entry->count) | ||
353 | ); | 378 | ); |
354 | 379 | ||
355 | DECLARE_EVENT_CLASS(ext4__mb_new_pa, | 380 | DECLARE_EVENT_CLASS(ext4__mb_new_pa, |
@@ -359,7 +384,8 @@ DECLARE_EVENT_CLASS(ext4__mb_new_pa, | |||
359 | TP_ARGS(ac, pa), | 384 | TP_ARGS(ac, pa), |
360 | 385 | ||
361 | TP_STRUCT__entry( | 386 | TP_STRUCT__entry( |
362 | __field( dev_t, dev ) | 387 | __field( int, dev_major ) |
388 | __field( int, dev_minor ) | ||
363 | __field( ino_t, ino ) | 389 | __field( ino_t, ino ) |
364 | __field( __u64, pa_pstart ) | 390 | __field( __u64, pa_pstart ) |
365 | __field( __u32, pa_len ) | 391 | __field( __u32, pa_len ) |
@@ -368,16 +394,18 @@ DECLARE_EVENT_CLASS(ext4__mb_new_pa, | |||
368 | ), | 394 | ), |
369 | 395 | ||
370 | TP_fast_assign( | 396 | TP_fast_assign( |
371 | __entry->dev = ac->ac_sb->s_dev; | 397 | __entry->dev_major = MAJOR(ac->ac_sb->s_dev); |
398 | __entry->dev_minor = MINOR(ac->ac_sb->s_dev); | ||
372 | __entry->ino = ac->ac_inode->i_ino; | 399 | __entry->ino = ac->ac_inode->i_ino; |
373 | __entry->pa_pstart = pa->pa_pstart; | 400 | __entry->pa_pstart = pa->pa_pstart; |
374 | __entry->pa_len = pa->pa_len; | 401 | __entry->pa_len = pa->pa_len; |
375 | __entry->pa_lstart = pa->pa_lstart; | 402 | __entry->pa_lstart = pa->pa_lstart; |
376 | ), | 403 | ), |
377 | 404 | ||
378 | TP_printk("dev %s ino %lu pstart %llu len %u lstart %llu", | 405 | TP_printk("dev %d,%d ino %lu pstart %llu len %u lstart %llu", |
379 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 406 | __entry->dev_major, __entry->dev_minor, |
380 | __entry->pa_pstart, __entry->pa_len, __entry->pa_lstart) | 407 | (unsigned long) __entry->ino, __entry->pa_pstart, |
408 | __entry->pa_len, __entry->pa_lstart) | ||
381 | ); | 409 | ); |
382 | 410 | ||
383 | DEFINE_EVENT(ext4__mb_new_pa, ext4_mb_new_inode_pa, | 411 | DEFINE_EVENT(ext4__mb_new_pa, ext4_mb_new_inode_pa, |
@@ -398,14 +426,15 @@ DEFINE_EVENT(ext4__mb_new_pa, ext4_mb_new_group_pa, | |||
398 | 426 | ||
399 | TRACE_EVENT(ext4_mb_release_inode_pa, | 427 | TRACE_EVENT(ext4_mb_release_inode_pa, |
400 | TP_PROTO(struct super_block *sb, | 428 | TP_PROTO(struct super_block *sb, |
401 | struct ext4_allocation_context *ac, | 429 | struct inode *inode, |
402 | struct ext4_prealloc_space *pa, | 430 | struct ext4_prealloc_space *pa, |
403 | unsigned long long block, unsigned int count), | 431 | unsigned long long block, unsigned int count), |
404 | 432 | ||
405 | TP_ARGS(sb, ac, pa, block, count), | 433 | TP_ARGS(sb, inode, pa, block, count), |
406 | 434 | ||
407 | TP_STRUCT__entry( | 435 | TP_STRUCT__entry( |
408 | __field( dev_t, dev ) | 436 | __field( int, dev_major ) |
437 | __field( int, dev_minor ) | ||
409 | __field( ino_t, ino ) | 438 | __field( ino_t, ino ) |
410 | __field( __u64, block ) | 439 | __field( __u64, block ) |
411 | __field( __u32, count ) | 440 | __field( __u32, count ) |
@@ -413,43 +442,42 @@ TRACE_EVENT(ext4_mb_release_inode_pa, | |||
413 | ), | 442 | ), |
414 | 443 | ||
415 | TP_fast_assign( | 444 | TP_fast_assign( |
416 | __entry->dev = sb->s_dev; | 445 | __entry->dev_major = MAJOR(sb->s_dev); |
417 | __entry->ino = (ac && ac->ac_inode) ? | 446 | __entry->dev_minor = MINOR(sb->s_dev); |
418 | ac->ac_inode->i_ino : 0; | 447 | __entry->ino = inode->i_ino; |
419 | __entry->block = block; | 448 | __entry->block = block; |
420 | __entry->count = count; | 449 | __entry->count = count; |
421 | ), | 450 | ), |
422 | 451 | ||
423 | TP_printk("dev %s ino %lu block %llu count %u", | 452 | TP_printk("dev %d,%d ino %lu block %llu count %u", |
424 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 453 | __entry->dev_major, __entry->dev_minor, |
425 | __entry->block, __entry->count) | 454 | (unsigned long) __entry->ino, __entry->block, __entry->count) |
426 | ); | 455 | ); |
427 | 456 | ||
428 | TRACE_EVENT(ext4_mb_release_group_pa, | 457 | TRACE_EVENT(ext4_mb_release_group_pa, |
429 | TP_PROTO(struct super_block *sb, | 458 | TP_PROTO(struct super_block *sb, |
430 | struct ext4_allocation_context *ac, | ||
431 | struct ext4_prealloc_space *pa), | 459 | struct ext4_prealloc_space *pa), |
432 | 460 | ||
433 | TP_ARGS(sb, ac, pa), | 461 | TP_ARGS(sb, pa), |
434 | 462 | ||
435 | TP_STRUCT__entry( | 463 | TP_STRUCT__entry( |
436 | __field( dev_t, dev ) | 464 | __field( int, dev_major ) |
437 | __field( ino_t, ino ) | 465 | __field( int, dev_minor ) |
438 | __field( __u64, pa_pstart ) | 466 | __field( __u64, pa_pstart ) |
439 | __field( __u32, pa_len ) | 467 | __field( __u32, pa_len ) |
440 | 468 | ||
441 | ), | 469 | ), |
442 | 470 | ||
443 | TP_fast_assign( | 471 | TP_fast_assign( |
444 | __entry->dev = sb->s_dev; | 472 | __entry->dev_major = MAJOR(sb->s_dev); |
445 | __entry->ino = (ac && ac->ac_inode) ? | 473 | __entry->dev_minor = MINOR(sb->s_dev); |
446 | ac->ac_inode->i_ino : 0; | ||
447 | __entry->pa_pstart = pa->pa_pstart; | 474 | __entry->pa_pstart = pa->pa_pstart; |
448 | __entry->pa_len = pa->pa_len; | 475 | __entry->pa_len = pa->pa_len; |
449 | ), | 476 | ), |
450 | 477 | ||
451 | TP_printk("dev %s pstart %llu len %u", | 478 | TP_printk("dev %d,%d pstart %llu len %u", |
452 | jbd2_dev_to_name(__entry->dev), __entry->pa_pstart, __entry->pa_len) | 479 | __entry->dev_major, __entry->dev_minor, |
480 | __entry->pa_pstart, __entry->pa_len) | ||
453 | ); | 481 | ); |
454 | 482 | ||
455 | TRACE_EVENT(ext4_discard_preallocations, | 483 | TRACE_EVENT(ext4_discard_preallocations, |
@@ -458,18 +486,21 @@ TRACE_EVENT(ext4_discard_preallocations, | |||
458 | TP_ARGS(inode), | 486 | TP_ARGS(inode), |
459 | 487 | ||
460 | TP_STRUCT__entry( | 488 | TP_STRUCT__entry( |
461 | __field( dev_t, dev ) | 489 | __field( int, dev_major ) |
490 | __field( int, dev_minor ) | ||
462 | __field( ino_t, ino ) | 491 | __field( ino_t, ino ) |
463 | 492 | ||
464 | ), | 493 | ), |
465 | 494 | ||
466 | TP_fast_assign( | 495 | TP_fast_assign( |
467 | __entry->dev = inode->i_sb->s_dev; | 496 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
497 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
468 | __entry->ino = inode->i_ino; | 498 | __entry->ino = inode->i_ino; |
469 | ), | 499 | ), |
470 | 500 | ||
471 | TP_printk("dev %s ino %lu", | 501 | TP_printk("dev %d,%d ino %lu", |
472 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino) | 502 | __entry->dev_major, __entry->dev_minor, |
503 | (unsigned long) __entry->ino) | ||
473 | ); | 504 | ); |
474 | 505 | ||
475 | TRACE_EVENT(ext4_mb_discard_preallocations, | 506 | TRACE_EVENT(ext4_mb_discard_preallocations, |
@@ -478,18 +509,20 @@ TRACE_EVENT(ext4_mb_discard_preallocations, | |||
478 | TP_ARGS(sb, needed), | 509 | TP_ARGS(sb, needed), |
479 | 510 | ||
480 | TP_STRUCT__entry( | 511 | TP_STRUCT__entry( |
481 | __field( dev_t, dev ) | 512 | __field( int, dev_major ) |
513 | __field( int, dev_minor ) | ||
482 | __field( int, needed ) | 514 | __field( int, needed ) |
483 | 515 | ||
484 | ), | 516 | ), |
485 | 517 | ||
486 | TP_fast_assign( | 518 | TP_fast_assign( |
487 | __entry->dev = sb->s_dev; | 519 | __entry->dev_major = MAJOR(sb->s_dev); |
520 | __entry->dev_minor = MINOR(sb->s_dev); | ||
488 | __entry->needed = needed; | 521 | __entry->needed = needed; |
489 | ), | 522 | ), |
490 | 523 | ||
491 | TP_printk("dev %s needed %d", | 524 | TP_printk("dev %d,%d needed %d", |
492 | jbd2_dev_to_name(__entry->dev), __entry->needed) | 525 | __entry->dev_major, __entry->dev_minor, __entry->needed) |
493 | ); | 526 | ); |
494 | 527 | ||
495 | TRACE_EVENT(ext4_request_blocks, | 528 | TRACE_EVENT(ext4_request_blocks, |
@@ -498,7 +531,8 @@ TRACE_EVENT(ext4_request_blocks, | |||
498 | TP_ARGS(ar), | 531 | TP_ARGS(ar), |
499 | 532 | ||
500 | TP_STRUCT__entry( | 533 | TP_STRUCT__entry( |
501 | __field( dev_t, dev ) | 534 | __field( int, dev_major ) |
535 | __field( int, dev_minor ) | ||
502 | __field( ino_t, ino ) | 536 | __field( ino_t, ino ) |
503 | __field( unsigned int, flags ) | 537 | __field( unsigned int, flags ) |
504 | __field( unsigned int, len ) | 538 | __field( unsigned int, len ) |
@@ -511,7 +545,8 @@ TRACE_EVENT(ext4_request_blocks, | |||
511 | ), | 545 | ), |
512 | 546 | ||
513 | TP_fast_assign( | 547 | TP_fast_assign( |
514 | __entry->dev = ar->inode->i_sb->s_dev; | 548 | __entry->dev_major = MAJOR(ar->inode->i_sb->s_dev); |
549 | __entry->dev_minor = MINOR(ar->inode->i_sb->s_dev); | ||
515 | __entry->ino = ar->inode->i_ino; | 550 | __entry->ino = ar->inode->i_ino; |
516 | __entry->flags = ar->flags; | 551 | __entry->flags = ar->flags; |
517 | __entry->len = ar->len; | 552 | __entry->len = ar->len; |
@@ -523,8 +558,9 @@ TRACE_EVENT(ext4_request_blocks, | |||
523 | __entry->pright = ar->pright; | 558 | __entry->pright = ar->pright; |
524 | ), | 559 | ), |
525 | 560 | ||
526 | TP_printk("dev %s ino %lu flags %u len %u lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", | 561 | TP_printk("dev %d,%d ino %lu flags %u len %u lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", |
527 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 562 | __entry->dev_major, __entry->dev_minor, |
563 | (unsigned long) __entry->ino, | ||
528 | __entry->flags, __entry->len, | 564 | __entry->flags, __entry->len, |
529 | (unsigned long long) __entry->logical, | 565 | (unsigned long long) __entry->logical, |
530 | (unsigned long long) __entry->goal, | 566 | (unsigned long long) __entry->goal, |
@@ -540,7 +576,8 @@ TRACE_EVENT(ext4_allocate_blocks, | |||
540 | TP_ARGS(ar, block), | 576 | TP_ARGS(ar, block), |
541 | 577 | ||
542 | TP_STRUCT__entry( | 578 | TP_STRUCT__entry( |
543 | __field( dev_t, dev ) | 579 | __field( int, dev_major ) |
580 | __field( int, dev_minor ) | ||
544 | __field( ino_t, ino ) | 581 | __field( ino_t, ino ) |
545 | __field( __u64, block ) | 582 | __field( __u64, block ) |
546 | __field( unsigned int, flags ) | 583 | __field( unsigned int, flags ) |
@@ -554,7 +591,8 @@ TRACE_EVENT(ext4_allocate_blocks, | |||
554 | ), | 591 | ), |
555 | 592 | ||
556 | TP_fast_assign( | 593 | TP_fast_assign( |
557 | __entry->dev = ar->inode->i_sb->s_dev; | 594 | __entry->dev_major = MAJOR(ar->inode->i_sb->s_dev); |
595 | __entry->dev_minor = MINOR(ar->inode->i_sb->s_dev); | ||
558 | __entry->ino = ar->inode->i_ino; | 596 | __entry->ino = ar->inode->i_ino; |
559 | __entry->block = block; | 597 | __entry->block = block; |
560 | __entry->flags = ar->flags; | 598 | __entry->flags = ar->flags; |
@@ -567,9 +605,10 @@ TRACE_EVENT(ext4_allocate_blocks, | |||
567 | __entry->pright = ar->pright; | 605 | __entry->pright = ar->pright; |
568 | ), | 606 | ), |
569 | 607 | ||
570 | TP_printk("dev %s ino %lu flags %u len %u block %llu lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", | 608 | TP_printk("dev %d,%d ino %lu flags %u len %u block %llu lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", |
571 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 609 | __entry->dev_major, __entry->dev_minor, |
572 | __entry->flags, __entry->len, __entry->block, | 610 | (unsigned long) __entry->ino, __entry->flags, |
611 | __entry->len, __entry->block, | ||
573 | (unsigned long long) __entry->logical, | 612 | (unsigned long long) __entry->logical, |
574 | (unsigned long long) __entry->goal, | 613 | (unsigned long long) __entry->goal, |
575 | (unsigned long long) __entry->lleft, | 614 | (unsigned long long) __entry->lleft, |
@@ -585,7 +624,8 @@ TRACE_EVENT(ext4_free_blocks, | |||
585 | TP_ARGS(inode, block, count, flags), | 624 | TP_ARGS(inode, block, count, flags), |
586 | 625 | ||
587 | TP_STRUCT__entry( | 626 | TP_STRUCT__entry( |
588 | __field( dev_t, dev ) | 627 | __field( int, dev_major ) |
628 | __field( int, dev_minor ) | ||
589 | __field( ino_t, ino ) | 629 | __field( ino_t, ino ) |
590 | __field( umode_t, mode ) | 630 | __field( umode_t, mode ) |
591 | __field( __u64, block ) | 631 | __field( __u64, block ) |
@@ -594,7 +634,8 @@ TRACE_EVENT(ext4_free_blocks, | |||
594 | ), | 634 | ), |
595 | 635 | ||
596 | TP_fast_assign( | 636 | TP_fast_assign( |
597 | __entry->dev = inode->i_sb->s_dev; | 637 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
638 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
598 | __entry->ino = inode->i_ino; | 639 | __entry->ino = inode->i_ino; |
599 | __entry->mode = inode->i_mode; | 640 | __entry->mode = inode->i_mode; |
600 | __entry->block = block; | 641 | __entry->block = block; |
@@ -602,8 +643,9 @@ TRACE_EVENT(ext4_free_blocks, | |||
602 | __entry->flags = flags; | 643 | __entry->flags = flags; |
603 | ), | 644 | ), |
604 | 645 | ||
605 | TP_printk("dev %s ino %lu mode 0%o block %llu count %lu flags %d", | 646 | TP_printk("dev %d,%d ino %lu mode 0%o block %llu count %lu flags %d", |
606 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 647 | __entry->dev_major, __entry->dev_minor, |
648 | (unsigned long) __entry->ino, | ||
607 | __entry->mode, __entry->block, __entry->count, | 649 | __entry->mode, __entry->block, __entry->count, |
608 | __entry->flags) | 650 | __entry->flags) |
609 | ); | 651 | ); |
@@ -614,7 +656,8 @@ TRACE_EVENT(ext4_sync_file, | |||
614 | TP_ARGS(file, datasync), | 656 | TP_ARGS(file, datasync), |
615 | 657 | ||
616 | TP_STRUCT__entry( | 658 | TP_STRUCT__entry( |
617 | __field( dev_t, dev ) | 659 | __field( int, dev_major ) |
660 | __field( int, dev_minor ) | ||
618 | __field( ino_t, ino ) | 661 | __field( ino_t, ino ) |
619 | __field( ino_t, parent ) | 662 | __field( ino_t, parent ) |
620 | __field( int, datasync ) | 663 | __field( int, datasync ) |
@@ -623,14 +666,16 @@ TRACE_EVENT(ext4_sync_file, | |||
623 | TP_fast_assign( | 666 | TP_fast_assign( |
624 | struct dentry *dentry = file->f_path.dentry; | 667 | struct dentry *dentry = file->f_path.dentry; |
625 | 668 | ||
626 | __entry->dev = dentry->d_inode->i_sb->s_dev; | 669 | __entry->dev_major = MAJOR(dentry->d_inode->i_sb->s_dev); |
670 | __entry->dev_minor = MINOR(dentry->d_inode->i_sb->s_dev); | ||
627 | __entry->ino = dentry->d_inode->i_ino; | 671 | __entry->ino = dentry->d_inode->i_ino; |
628 | __entry->datasync = datasync; | 672 | __entry->datasync = datasync; |
629 | __entry->parent = dentry->d_parent->d_inode->i_ino; | 673 | __entry->parent = dentry->d_parent->d_inode->i_ino; |
630 | ), | 674 | ), |
631 | 675 | ||
632 | TP_printk("dev %s ino %ld parent %ld datasync %d ", | 676 | TP_printk("dev %d,%d ino %ld parent %ld datasync %d ", |
633 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 677 | __entry->dev_major, __entry->dev_minor, |
678 | (unsigned long) __entry->ino, | ||
634 | (unsigned long) __entry->parent, __entry->datasync) | 679 | (unsigned long) __entry->parent, __entry->datasync) |
635 | ); | 680 | ); |
636 | 681 | ||
@@ -640,18 +685,20 @@ TRACE_EVENT(ext4_sync_fs, | |||
640 | TP_ARGS(sb, wait), | 685 | TP_ARGS(sb, wait), |
641 | 686 | ||
642 | TP_STRUCT__entry( | 687 | TP_STRUCT__entry( |
643 | __field( dev_t, dev ) | 688 | __field( int, dev_major ) |
689 | __field( int, dev_minor ) | ||
644 | __field( int, wait ) | 690 | __field( int, wait ) |
645 | 691 | ||
646 | ), | 692 | ), |
647 | 693 | ||
648 | TP_fast_assign( | 694 | TP_fast_assign( |
649 | __entry->dev = sb->s_dev; | 695 | __entry->dev_major = MAJOR(sb->s_dev); |
696 | __entry->dev_minor = MINOR(sb->s_dev); | ||
650 | __entry->wait = wait; | 697 | __entry->wait = wait; |
651 | ), | 698 | ), |
652 | 699 | ||
653 | TP_printk("dev %s wait %d", jbd2_dev_to_name(__entry->dev), | 700 | TP_printk("dev %d,%d wait %d", __entry->dev_major, |
654 | __entry->wait) | 701 | __entry->dev_minor, __entry->wait) |
655 | ); | 702 | ); |
656 | 703 | ||
657 | TRACE_EVENT(ext4_alloc_da_blocks, | 704 | TRACE_EVENT(ext4_alloc_da_blocks, |
@@ -660,21 +707,24 @@ TRACE_EVENT(ext4_alloc_da_blocks, | |||
660 | TP_ARGS(inode), | 707 | TP_ARGS(inode), |
661 | 708 | ||
662 | TP_STRUCT__entry( | 709 | TP_STRUCT__entry( |
663 | __field( dev_t, dev ) | 710 | __field( int, dev_major ) |
711 | __field( int, dev_minor ) | ||
664 | __field( ino_t, ino ) | 712 | __field( ino_t, ino ) |
665 | __field( unsigned int, data_blocks ) | 713 | __field( unsigned int, data_blocks ) |
666 | __field( unsigned int, meta_blocks ) | 714 | __field( unsigned int, meta_blocks ) |
667 | ), | 715 | ), |
668 | 716 | ||
669 | TP_fast_assign( | 717 | TP_fast_assign( |
670 | __entry->dev = inode->i_sb->s_dev; | 718 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
719 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
671 | __entry->ino = inode->i_ino; | 720 | __entry->ino = inode->i_ino; |
672 | __entry->data_blocks = EXT4_I(inode)->i_reserved_data_blocks; | 721 | __entry->data_blocks = EXT4_I(inode)->i_reserved_data_blocks; |
673 | __entry->meta_blocks = EXT4_I(inode)->i_reserved_meta_blocks; | 722 | __entry->meta_blocks = EXT4_I(inode)->i_reserved_meta_blocks; |
674 | ), | 723 | ), |
675 | 724 | ||
676 | TP_printk("dev %s ino %lu data_blocks %u meta_blocks %u", | 725 | TP_printk("dev %d,%d ino %lu data_blocks %u meta_blocks %u", |
677 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 726 | __entry->dev_major, __entry->dev_minor, |
727 | (unsigned long) __entry->ino, | ||
678 | __entry->data_blocks, __entry->meta_blocks) | 728 | __entry->data_blocks, __entry->meta_blocks) |
679 | ); | 729 | ); |
680 | 730 | ||
@@ -684,7 +734,8 @@ TRACE_EVENT(ext4_mballoc_alloc, | |||
684 | TP_ARGS(ac), | 734 | TP_ARGS(ac), |
685 | 735 | ||
686 | TP_STRUCT__entry( | 736 | TP_STRUCT__entry( |
687 | __field( dev_t, dev ) | 737 | __field( int, dev_major ) |
738 | __field( int, dev_minor ) | ||
688 | __field( ino_t, ino ) | 739 | __field( ino_t, ino ) |
689 | __field( __u16, found ) | 740 | __field( __u16, found ) |
690 | __field( __u16, groups ) | 741 | __field( __u16, groups ) |
@@ -707,7 +758,8 @@ TRACE_EVENT(ext4_mballoc_alloc, | |||
707 | ), | 758 | ), |
708 | 759 | ||
709 | TP_fast_assign( | 760 | TP_fast_assign( |
710 | __entry->dev = ac->ac_inode->i_sb->s_dev; | 761 | __entry->dev_major = MAJOR(ac->ac_inode->i_sb->s_dev); |
762 | __entry->dev_minor = MINOR(ac->ac_inode->i_sb->s_dev); | ||
711 | __entry->ino = ac->ac_inode->i_ino; | 763 | __entry->ino = ac->ac_inode->i_ino; |
712 | __entry->found = ac->ac_found; | 764 | __entry->found = ac->ac_found; |
713 | __entry->flags = ac->ac_flags; | 765 | __entry->flags = ac->ac_flags; |
@@ -729,10 +781,11 @@ TRACE_EVENT(ext4_mballoc_alloc, | |||
729 | __entry->result_len = ac->ac_f_ex.fe_len; | 781 | __entry->result_len = ac->ac_f_ex.fe_len; |
730 | ), | 782 | ), |
731 | 783 | ||
732 | TP_printk("dev %s inode %lu orig %u/%d/%u@%u goal %u/%d/%u@%u " | 784 | TP_printk("dev %d,%d inode %lu orig %u/%d/%u@%u goal %u/%d/%u@%u " |
733 | "result %u/%d/%u@%u blks %u grps %u cr %u flags 0x%04x " | 785 | "result %u/%d/%u@%u blks %u grps %u cr %u flags 0x%04x " |
734 | "tail %u broken %u", | 786 | "tail %u broken %u", |
735 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 787 | __entry->dev_major, __entry->dev_minor, |
788 | (unsigned long) __entry->ino, | ||
736 | __entry->orig_group, __entry->orig_start, | 789 | __entry->orig_group, __entry->orig_start, |
737 | __entry->orig_len, __entry->orig_logical, | 790 | __entry->orig_len, __entry->orig_logical, |
738 | __entry->goal_group, __entry->goal_start, | 791 | __entry->goal_group, __entry->goal_start, |
@@ -750,7 +803,8 @@ TRACE_EVENT(ext4_mballoc_prealloc, | |||
750 | TP_ARGS(ac), | 803 | TP_ARGS(ac), |
751 | 804 | ||
752 | TP_STRUCT__entry( | 805 | TP_STRUCT__entry( |
753 | __field( dev_t, dev ) | 806 | __field( int, dev_major ) |
807 | __field( int, dev_minor ) | ||
754 | __field( ino_t, ino ) | 808 | __field( ino_t, ino ) |
755 | __field( __u32, orig_logical ) | 809 | __field( __u32, orig_logical ) |
756 | __field( int, orig_start ) | 810 | __field( int, orig_start ) |
@@ -763,7 +817,8 @@ TRACE_EVENT(ext4_mballoc_prealloc, | |||
763 | ), | 817 | ), |
764 | 818 | ||
765 | TP_fast_assign( | 819 | TP_fast_assign( |
766 | __entry->dev = ac->ac_inode->i_sb->s_dev; | 820 | __entry->dev_major = MAJOR(ac->ac_inode->i_sb->s_dev); |
821 | __entry->dev_minor = MINOR(ac->ac_inode->i_sb->s_dev); | ||
767 | __entry->ino = ac->ac_inode->i_ino; | 822 | __entry->ino = ac->ac_inode->i_ino; |
768 | __entry->orig_logical = ac->ac_o_ex.fe_logical; | 823 | __entry->orig_logical = ac->ac_o_ex.fe_logical; |
769 | __entry->orig_start = ac->ac_o_ex.fe_start; | 824 | __entry->orig_start = ac->ac_o_ex.fe_start; |
@@ -775,8 +830,9 @@ TRACE_EVENT(ext4_mballoc_prealloc, | |||
775 | __entry->result_len = ac->ac_b_ex.fe_len; | 830 | __entry->result_len = ac->ac_b_ex.fe_len; |
776 | ), | 831 | ), |
777 | 832 | ||
778 | TP_printk("dev %s inode %lu orig %u/%d/%u@%u result %u/%d/%u@%u", | 833 | TP_printk("dev %d,%d inode %lu orig %u/%d/%u@%u result %u/%d/%u@%u", |
779 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 834 | __entry->dev_major, __entry->dev_minor, |
835 | (unsigned long) __entry->ino, | ||
780 | __entry->orig_group, __entry->orig_start, | 836 | __entry->orig_group, __entry->orig_start, |
781 | __entry->orig_len, __entry->orig_logical, | 837 | __entry->orig_len, __entry->orig_logical, |
782 | __entry->result_group, __entry->result_start, | 838 | __entry->result_group, __entry->result_start, |
@@ -784,46 +840,59 @@ TRACE_EVENT(ext4_mballoc_prealloc, | |||
784 | ); | 840 | ); |
785 | 841 | ||
786 | DECLARE_EVENT_CLASS(ext4__mballoc, | 842 | DECLARE_EVENT_CLASS(ext4__mballoc, |
787 | TP_PROTO(struct ext4_allocation_context *ac), | 843 | TP_PROTO(struct super_block *sb, |
844 | struct inode *inode, | ||
845 | ext4_group_t group, | ||
846 | ext4_grpblk_t start, | ||
847 | ext4_grpblk_t len), | ||
788 | 848 | ||
789 | TP_ARGS(ac), | 849 | TP_ARGS(sb, inode, group, start, len), |
790 | 850 | ||
791 | TP_STRUCT__entry( | 851 | TP_STRUCT__entry( |
792 | __field( dev_t, dev ) | 852 | __field( int, dev_major ) |
853 | __field( int, dev_minor ) | ||
793 | __field( ino_t, ino ) | 854 | __field( ino_t, ino ) |
794 | __field( __u32, result_logical ) | ||
795 | __field( int, result_start ) | 855 | __field( int, result_start ) |
796 | __field( __u32, result_group ) | 856 | __field( __u32, result_group ) |
797 | __field( int, result_len ) | 857 | __field( int, result_len ) |
798 | ), | 858 | ), |
799 | 859 | ||
800 | TP_fast_assign( | 860 | TP_fast_assign( |
801 | __entry->dev = ac->ac_inode->i_sb->s_dev; | 861 | __entry->dev_major = MAJOR(sb->s_dev); |
802 | __entry->ino = ac->ac_inode->i_ino; | 862 | __entry->dev_minor = MINOR(sb->s_dev); |
803 | __entry->result_logical = ac->ac_b_ex.fe_logical; | 863 | __entry->ino = inode ? inode->i_ino : 0; |
804 | __entry->result_start = ac->ac_b_ex.fe_start; | 864 | __entry->result_start = start; |
805 | __entry->result_group = ac->ac_b_ex.fe_group; | 865 | __entry->result_group = group; |
806 | __entry->result_len = ac->ac_b_ex.fe_len; | 866 | __entry->result_len = len; |
807 | ), | 867 | ), |
808 | 868 | ||
809 | TP_printk("dev %s inode %lu extent %u/%d/%u@%u ", | 869 | TP_printk("dev %d,%d inode %lu extent %u/%d/%u ", |
810 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 870 | __entry->dev_major, __entry->dev_minor, |
871 | (unsigned long) __entry->ino, | ||
811 | __entry->result_group, __entry->result_start, | 872 | __entry->result_group, __entry->result_start, |
812 | __entry->result_len, __entry->result_logical) | 873 | __entry->result_len) |
813 | ); | 874 | ); |
814 | 875 | ||
815 | DEFINE_EVENT(ext4__mballoc, ext4_mballoc_discard, | 876 | DEFINE_EVENT(ext4__mballoc, ext4_mballoc_discard, |
816 | 877 | ||
817 | TP_PROTO(struct ext4_allocation_context *ac), | 878 | TP_PROTO(struct super_block *sb, |
879 | struct inode *inode, | ||
880 | ext4_group_t group, | ||
881 | ext4_grpblk_t start, | ||
882 | ext4_grpblk_t len), | ||
818 | 883 | ||
819 | TP_ARGS(ac) | 884 | TP_ARGS(sb, inode, group, start, len) |
820 | ); | 885 | ); |
821 | 886 | ||
822 | DEFINE_EVENT(ext4__mballoc, ext4_mballoc_free, | 887 | DEFINE_EVENT(ext4__mballoc, ext4_mballoc_free, |
823 | 888 | ||
824 | TP_PROTO(struct ext4_allocation_context *ac), | 889 | TP_PROTO(struct super_block *sb, |
890 | struct inode *inode, | ||
891 | ext4_group_t group, | ||
892 | ext4_grpblk_t start, | ||
893 | ext4_grpblk_t len), | ||
825 | 894 | ||
826 | TP_ARGS(ac) | 895 | TP_ARGS(sb, inode, group, start, len) |
827 | ); | 896 | ); |
828 | 897 | ||
829 | TRACE_EVENT(ext4_forget, | 898 | TRACE_EVENT(ext4_forget, |
@@ -832,7 +901,8 @@ TRACE_EVENT(ext4_forget, | |||
832 | TP_ARGS(inode, is_metadata, block), | 901 | TP_ARGS(inode, is_metadata, block), |
833 | 902 | ||
834 | TP_STRUCT__entry( | 903 | TP_STRUCT__entry( |
835 | __field( dev_t, dev ) | 904 | __field( int, dev_major ) |
905 | __field( int, dev_minor ) | ||
836 | __field( ino_t, ino ) | 906 | __field( ino_t, ino ) |
837 | __field( umode_t, mode ) | 907 | __field( umode_t, mode ) |
838 | __field( int, is_metadata ) | 908 | __field( int, is_metadata ) |
@@ -840,16 +910,18 @@ TRACE_EVENT(ext4_forget, | |||
840 | ), | 910 | ), |
841 | 911 | ||
842 | TP_fast_assign( | 912 | TP_fast_assign( |
843 | __entry->dev = inode->i_sb->s_dev; | 913 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
914 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
844 | __entry->ino = inode->i_ino; | 915 | __entry->ino = inode->i_ino; |
845 | __entry->mode = inode->i_mode; | 916 | __entry->mode = inode->i_mode; |
846 | __entry->is_metadata = is_metadata; | 917 | __entry->is_metadata = is_metadata; |
847 | __entry->block = block; | 918 | __entry->block = block; |
848 | ), | 919 | ), |
849 | 920 | ||
850 | TP_printk("dev %s ino %lu mode 0%o is_metadata %d block %llu", | 921 | TP_printk("dev %d,%d ino %lu mode 0%o is_metadata %d block %llu", |
851 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 922 | __entry->dev_major, __entry->dev_minor, |
852 | __entry->mode, __entry->is_metadata, __entry->block) | 923 | (unsigned long) __entry->ino, __entry->mode, |
924 | __entry->is_metadata, __entry->block) | ||
853 | ); | 925 | ); |
854 | 926 | ||
855 | TRACE_EVENT(ext4_da_update_reserve_space, | 927 | TRACE_EVENT(ext4_da_update_reserve_space, |
@@ -858,7 +930,8 @@ TRACE_EVENT(ext4_da_update_reserve_space, | |||
858 | TP_ARGS(inode, used_blocks), | 930 | TP_ARGS(inode, used_blocks), |
859 | 931 | ||
860 | TP_STRUCT__entry( | 932 | TP_STRUCT__entry( |
861 | __field( dev_t, dev ) | 933 | __field( int, dev_major ) |
934 | __field( int, dev_minor ) | ||
862 | __field( ino_t, ino ) | 935 | __field( ino_t, ino ) |
863 | __field( umode_t, mode ) | 936 | __field( umode_t, mode ) |
864 | __field( __u64, i_blocks ) | 937 | __field( __u64, i_blocks ) |
@@ -869,7 +942,8 @@ TRACE_EVENT(ext4_da_update_reserve_space, | |||
869 | ), | 942 | ), |
870 | 943 | ||
871 | TP_fast_assign( | 944 | TP_fast_assign( |
872 | __entry->dev = inode->i_sb->s_dev; | 945 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
946 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
873 | __entry->ino = inode->i_ino; | 947 | __entry->ino = inode->i_ino; |
874 | __entry->mode = inode->i_mode; | 948 | __entry->mode = inode->i_mode; |
875 | __entry->i_blocks = inode->i_blocks; | 949 | __entry->i_blocks = inode->i_blocks; |
@@ -879,9 +953,10 @@ TRACE_EVENT(ext4_da_update_reserve_space, | |||
879 | __entry->allocated_meta_blocks = EXT4_I(inode)->i_allocated_meta_blocks; | 953 | __entry->allocated_meta_blocks = EXT4_I(inode)->i_allocated_meta_blocks; |
880 | ), | 954 | ), |
881 | 955 | ||
882 | TP_printk("dev %s ino %lu mode 0%o i_blocks %llu used_blocks %d reserved_data_blocks %d reserved_meta_blocks %d allocated_meta_blocks %d", | 956 | TP_printk("dev %d,%d ino %lu mode 0%o i_blocks %llu used_blocks %d reserved_data_blocks %d reserved_meta_blocks %d allocated_meta_blocks %d", |
883 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 957 | __entry->dev_major, __entry->dev_minor, |
884 | __entry->mode, (unsigned long long) __entry->i_blocks, | 958 | (unsigned long) __entry->ino, __entry->mode, |
959 | (unsigned long long) __entry->i_blocks, | ||
885 | __entry->used_blocks, __entry->reserved_data_blocks, | 960 | __entry->used_blocks, __entry->reserved_data_blocks, |
886 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) | 961 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) |
887 | ); | 962 | ); |
@@ -892,7 +967,8 @@ TRACE_EVENT(ext4_da_reserve_space, | |||
892 | TP_ARGS(inode, md_needed), | 967 | TP_ARGS(inode, md_needed), |
893 | 968 | ||
894 | TP_STRUCT__entry( | 969 | TP_STRUCT__entry( |
895 | __field( dev_t, dev ) | 970 | __field( int, dev_major ) |
971 | __field( int, dev_minor ) | ||
896 | __field( ino_t, ino ) | 972 | __field( ino_t, ino ) |
897 | __field( umode_t, mode ) | 973 | __field( umode_t, mode ) |
898 | __field( __u64, i_blocks ) | 974 | __field( __u64, i_blocks ) |
@@ -902,7 +978,8 @@ TRACE_EVENT(ext4_da_reserve_space, | |||
902 | ), | 978 | ), |
903 | 979 | ||
904 | TP_fast_assign( | 980 | TP_fast_assign( |
905 | __entry->dev = inode->i_sb->s_dev; | 981 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
982 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
906 | __entry->ino = inode->i_ino; | 983 | __entry->ino = inode->i_ino; |
907 | __entry->mode = inode->i_mode; | 984 | __entry->mode = inode->i_mode; |
908 | __entry->i_blocks = inode->i_blocks; | 985 | __entry->i_blocks = inode->i_blocks; |
@@ -911,8 +988,9 @@ TRACE_EVENT(ext4_da_reserve_space, | |||
911 | __entry->reserved_meta_blocks = EXT4_I(inode)->i_reserved_meta_blocks; | 988 | __entry->reserved_meta_blocks = EXT4_I(inode)->i_reserved_meta_blocks; |
912 | ), | 989 | ), |
913 | 990 | ||
914 | TP_printk("dev %s ino %lu mode 0%o i_blocks %llu md_needed %d reserved_data_blocks %d reserved_meta_blocks %d", | 991 | TP_printk("dev %d,%d ino %lu mode 0%o i_blocks %llu md_needed %d reserved_data_blocks %d reserved_meta_blocks %d", |
915 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 992 | __entry->dev_major, __entry->dev_minor, |
993 | (unsigned long) __entry->ino, | ||
916 | __entry->mode, (unsigned long long) __entry->i_blocks, | 994 | __entry->mode, (unsigned long long) __entry->i_blocks, |
917 | __entry->md_needed, __entry->reserved_data_blocks, | 995 | __entry->md_needed, __entry->reserved_data_blocks, |
918 | __entry->reserved_meta_blocks) | 996 | __entry->reserved_meta_blocks) |
@@ -924,7 +1002,8 @@ TRACE_EVENT(ext4_da_release_space, | |||
924 | TP_ARGS(inode, freed_blocks), | 1002 | TP_ARGS(inode, freed_blocks), |
925 | 1003 | ||
926 | TP_STRUCT__entry( | 1004 | TP_STRUCT__entry( |
927 | __field( dev_t, dev ) | 1005 | __field( int, dev_major ) |
1006 | __field( int, dev_minor ) | ||
928 | __field( ino_t, ino ) | 1007 | __field( ino_t, ino ) |
929 | __field( umode_t, mode ) | 1008 | __field( umode_t, mode ) |
930 | __field( __u64, i_blocks ) | 1009 | __field( __u64, i_blocks ) |
@@ -935,7 +1014,8 @@ TRACE_EVENT(ext4_da_release_space, | |||
935 | ), | 1014 | ), |
936 | 1015 | ||
937 | TP_fast_assign( | 1016 | TP_fast_assign( |
938 | __entry->dev = inode->i_sb->s_dev; | 1017 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
1018 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
939 | __entry->ino = inode->i_ino; | 1019 | __entry->ino = inode->i_ino; |
940 | __entry->mode = inode->i_mode; | 1020 | __entry->mode = inode->i_mode; |
941 | __entry->i_blocks = inode->i_blocks; | 1021 | __entry->i_blocks = inode->i_blocks; |
@@ -945,8 +1025,9 @@ TRACE_EVENT(ext4_da_release_space, | |||
945 | __entry->allocated_meta_blocks = EXT4_I(inode)->i_allocated_meta_blocks; | 1025 | __entry->allocated_meta_blocks = EXT4_I(inode)->i_allocated_meta_blocks; |
946 | ), | 1026 | ), |
947 | 1027 | ||
948 | TP_printk("dev %s ino %lu mode 0%o i_blocks %llu freed_blocks %d reserved_data_blocks %d reserved_meta_blocks %d allocated_meta_blocks %d", | 1028 | TP_printk("dev %d,%d ino %lu mode 0%o i_blocks %llu freed_blocks %d reserved_data_blocks %d reserved_meta_blocks %d allocated_meta_blocks %d", |
949 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, | 1029 | __entry->dev_major, __entry->dev_minor, |
1030 | (unsigned long) __entry->ino, | ||
950 | __entry->mode, (unsigned long long) __entry->i_blocks, | 1031 | __entry->mode, (unsigned long long) __entry->i_blocks, |
951 | __entry->freed_blocks, __entry->reserved_data_blocks, | 1032 | __entry->freed_blocks, __entry->reserved_data_blocks, |
952 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) | 1033 | __entry->reserved_meta_blocks, __entry->allocated_meta_blocks) |
@@ -958,18 +1039,20 @@ DECLARE_EVENT_CLASS(ext4__bitmap_load, | |||
958 | TP_ARGS(sb, group), | 1039 | TP_ARGS(sb, group), |
959 | 1040 | ||
960 | TP_STRUCT__entry( | 1041 | TP_STRUCT__entry( |
961 | __field( dev_t, dev ) | 1042 | __field( int, dev_major ) |
1043 | __field( int, dev_minor ) | ||
962 | __field( __u32, group ) | 1044 | __field( __u32, group ) |
963 | 1045 | ||
964 | ), | 1046 | ), |
965 | 1047 | ||
966 | TP_fast_assign( | 1048 | TP_fast_assign( |
967 | __entry->dev = sb->s_dev; | 1049 | __entry->dev_major = MAJOR(sb->s_dev); |
1050 | __entry->dev_minor = MINOR(sb->s_dev); | ||
968 | __entry->group = group; | 1051 | __entry->group = group; |
969 | ), | 1052 | ), |
970 | 1053 | ||
971 | TP_printk("dev %s group %u", | 1054 | TP_printk("dev %d,%d group %u", |
972 | jbd2_dev_to_name(__entry->dev), __entry->group) | 1055 | __entry->dev_major, __entry->dev_minor, __entry->group) |
973 | ); | 1056 | ); |
974 | 1057 | ||
975 | DEFINE_EVENT(ext4__bitmap_load, ext4_mb_bitmap_load, | 1058 | DEFINE_EVENT(ext4__bitmap_load, ext4_mb_bitmap_load, |
diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h index bf16545cc977..7447ea9305b5 100644 --- a/include/trace/events/jbd2.h +++ b/include/trace/events/jbd2.h | |||
@@ -17,17 +17,19 @@ TRACE_EVENT(jbd2_checkpoint, | |||
17 | TP_ARGS(journal, result), | 17 | TP_ARGS(journal, result), |
18 | 18 | ||
19 | TP_STRUCT__entry( | 19 | TP_STRUCT__entry( |
20 | __field( dev_t, dev ) | 20 | __field( int, dev_major ) |
21 | __field( int, dev_minor ) | ||
21 | __field( int, result ) | 22 | __field( int, result ) |
22 | ), | 23 | ), |
23 | 24 | ||
24 | TP_fast_assign( | 25 | TP_fast_assign( |
25 | __entry->dev = journal->j_fs_dev->bd_dev; | 26 | __entry->dev_major = MAJOR(journal->j_fs_dev->bd_dev); |
27 | __entry->dev_minor = MINOR(journal->j_fs_dev->bd_dev); | ||
26 | __entry->result = result; | 28 | __entry->result = result; |
27 | ), | 29 | ), |
28 | 30 | ||
29 | TP_printk("dev %s result %d", | 31 | TP_printk("dev %d,%d result %d", |
30 | jbd2_dev_to_name(__entry->dev), __entry->result) | 32 | __entry->dev_major, __entry->dev_minor, __entry->result) |
31 | ); | 33 | ); |
32 | 34 | ||
33 | DECLARE_EVENT_CLASS(jbd2_commit, | 35 | DECLARE_EVENT_CLASS(jbd2_commit, |
@@ -37,20 +39,22 @@ DECLARE_EVENT_CLASS(jbd2_commit, | |||
37 | TP_ARGS(journal, commit_transaction), | 39 | TP_ARGS(journal, commit_transaction), |
38 | 40 | ||
39 | TP_STRUCT__entry( | 41 | TP_STRUCT__entry( |
40 | __field( dev_t, dev ) | 42 | __field( int, dev_major ) |
43 | __field( int, dev_minor ) | ||
41 | __field( char, sync_commit ) | 44 | __field( char, sync_commit ) |
42 | __field( int, transaction ) | 45 | __field( int, transaction ) |
43 | ), | 46 | ), |
44 | 47 | ||
45 | TP_fast_assign( | 48 | TP_fast_assign( |
46 | __entry->dev = journal->j_fs_dev->bd_dev; | 49 | __entry->dev_major = MAJOR(journal->j_fs_dev->bd_dev); |
50 | __entry->dev_minor = MINOR(journal->j_fs_dev->bd_dev); | ||
47 | __entry->sync_commit = commit_transaction->t_synchronous_commit; | 51 | __entry->sync_commit = commit_transaction->t_synchronous_commit; |
48 | __entry->transaction = commit_transaction->t_tid; | 52 | __entry->transaction = commit_transaction->t_tid; |
49 | ), | 53 | ), |
50 | 54 | ||
51 | TP_printk("dev %s transaction %d sync %d", | 55 | TP_printk("dev %d,%d transaction %d sync %d", |
52 | jbd2_dev_to_name(__entry->dev), __entry->transaction, | 56 | __entry->dev_major, __entry->dev_minor, |
53 | __entry->sync_commit) | 57 | __entry->transaction, __entry->sync_commit) |
54 | ); | 58 | ); |
55 | 59 | ||
56 | DEFINE_EVENT(jbd2_commit, jbd2_start_commit, | 60 | DEFINE_EVENT(jbd2_commit, jbd2_start_commit, |
@@ -87,22 +91,24 @@ TRACE_EVENT(jbd2_end_commit, | |||
87 | TP_ARGS(journal, commit_transaction), | 91 | TP_ARGS(journal, commit_transaction), |
88 | 92 | ||
89 | TP_STRUCT__entry( | 93 | TP_STRUCT__entry( |
90 | __field( dev_t, dev ) | 94 | __field( int, dev_major ) |
95 | __field( int, dev_minor ) | ||
91 | __field( char, sync_commit ) | 96 | __field( char, sync_commit ) |
92 | __field( int, transaction ) | 97 | __field( int, transaction ) |
93 | __field( int, head ) | 98 | __field( int, head ) |
94 | ), | 99 | ), |
95 | 100 | ||
96 | TP_fast_assign( | 101 | TP_fast_assign( |
97 | __entry->dev = journal->j_fs_dev->bd_dev; | 102 | __entry->dev_major = MAJOR(journal->j_fs_dev->bd_dev); |
103 | __entry->dev_minor = MINOR(journal->j_fs_dev->bd_dev); | ||
98 | __entry->sync_commit = commit_transaction->t_synchronous_commit; | 104 | __entry->sync_commit = commit_transaction->t_synchronous_commit; |
99 | __entry->transaction = commit_transaction->t_tid; | 105 | __entry->transaction = commit_transaction->t_tid; |
100 | __entry->head = journal->j_tail_sequence; | 106 | __entry->head = journal->j_tail_sequence; |
101 | ), | 107 | ), |
102 | 108 | ||
103 | TP_printk("dev %s transaction %d sync %d head %d", | 109 | TP_printk("dev %d,%d transaction %d sync %d head %d", |
104 | jbd2_dev_to_name(__entry->dev), __entry->transaction, | 110 | __entry->dev_major, __entry->dev_minor, |
105 | __entry->sync_commit, __entry->head) | 111 | __entry->transaction, __entry->sync_commit, __entry->head) |
106 | ); | 112 | ); |
107 | 113 | ||
108 | TRACE_EVENT(jbd2_submit_inode_data, | 114 | TRACE_EVENT(jbd2_submit_inode_data, |
@@ -111,17 +117,20 @@ TRACE_EVENT(jbd2_submit_inode_data, | |||
111 | TP_ARGS(inode), | 117 | TP_ARGS(inode), |
112 | 118 | ||
113 | TP_STRUCT__entry( | 119 | TP_STRUCT__entry( |
114 | __field( dev_t, dev ) | 120 | __field( int, dev_major ) |
121 | __field( int, dev_minor ) | ||
115 | __field( ino_t, ino ) | 122 | __field( ino_t, ino ) |
116 | ), | 123 | ), |
117 | 124 | ||
118 | TP_fast_assign( | 125 | TP_fast_assign( |
119 | __entry->dev = inode->i_sb->s_dev; | 126 | __entry->dev_major = MAJOR(inode->i_sb->s_dev); |
127 | __entry->dev_minor = MINOR(inode->i_sb->s_dev); | ||
120 | __entry->ino = inode->i_ino; | 128 | __entry->ino = inode->i_ino; |
121 | ), | 129 | ), |
122 | 130 | ||
123 | TP_printk("dev %s ino %lu", | 131 | TP_printk("dev %d,%d ino %lu", |
124 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino) | 132 | __entry->dev_major, __entry->dev_minor, |
133 | (unsigned long) __entry->ino) | ||
125 | ); | 134 | ); |
126 | 135 | ||
127 | TRACE_EVENT(jbd2_run_stats, | 136 | TRACE_EVENT(jbd2_run_stats, |
@@ -131,7 +140,8 @@ TRACE_EVENT(jbd2_run_stats, | |||
131 | TP_ARGS(dev, tid, stats), | 140 | TP_ARGS(dev, tid, stats), |
132 | 141 | ||
133 | TP_STRUCT__entry( | 142 | TP_STRUCT__entry( |
134 | __field( dev_t, dev ) | 143 | __field( int, dev_major ) |
144 | __field( int, dev_minor ) | ||
135 | __field( unsigned long, tid ) | 145 | __field( unsigned long, tid ) |
136 | __field( unsigned long, wait ) | 146 | __field( unsigned long, wait ) |
137 | __field( unsigned long, running ) | 147 | __field( unsigned long, running ) |
@@ -144,7 +154,8 @@ TRACE_EVENT(jbd2_run_stats, | |||
144 | ), | 154 | ), |
145 | 155 | ||
146 | TP_fast_assign( | 156 | TP_fast_assign( |
147 | __entry->dev = dev; | 157 | __entry->dev_major = MAJOR(dev); |
158 | __entry->dev_minor = MINOR(dev); | ||
148 | __entry->tid = tid; | 159 | __entry->tid = tid; |
149 | __entry->wait = stats->rs_wait; | 160 | __entry->wait = stats->rs_wait; |
150 | __entry->running = stats->rs_running; | 161 | __entry->running = stats->rs_running; |
@@ -156,9 +167,9 @@ TRACE_EVENT(jbd2_run_stats, | |||
156 | __entry->blocks_logged = stats->rs_blocks_logged; | 167 | __entry->blocks_logged = stats->rs_blocks_logged; |
157 | ), | 168 | ), |
158 | 169 | ||
159 | TP_printk("dev %s tid %lu wait %u running %u locked %u flushing %u " | 170 | TP_printk("dev %d,%d tid %lu wait %u running %u locked %u flushing %u " |
160 | "logging %u handle_count %u blocks %u blocks_logged %u", | 171 | "logging %u handle_count %u blocks %u blocks_logged %u", |
161 | jbd2_dev_to_name(__entry->dev), __entry->tid, | 172 | __entry->dev_major, __entry->dev_minor, __entry->tid, |
162 | jiffies_to_msecs(__entry->wait), | 173 | jiffies_to_msecs(__entry->wait), |
163 | jiffies_to_msecs(__entry->running), | 174 | jiffies_to_msecs(__entry->running), |
164 | jiffies_to_msecs(__entry->locked), | 175 | jiffies_to_msecs(__entry->locked), |
@@ -175,7 +186,8 @@ TRACE_EVENT(jbd2_checkpoint_stats, | |||
175 | TP_ARGS(dev, tid, stats), | 186 | TP_ARGS(dev, tid, stats), |
176 | 187 | ||
177 | TP_STRUCT__entry( | 188 | TP_STRUCT__entry( |
178 | __field( dev_t, dev ) | 189 | __field( int, dev_major ) |
190 | __field( int, dev_minor ) | ||
179 | __field( unsigned long, tid ) | 191 | __field( unsigned long, tid ) |
180 | __field( unsigned long, chp_time ) | 192 | __field( unsigned long, chp_time ) |
181 | __field( __u32, forced_to_close ) | 193 | __field( __u32, forced_to_close ) |
@@ -184,7 +196,8 @@ TRACE_EVENT(jbd2_checkpoint_stats, | |||
184 | ), | 196 | ), |
185 | 197 | ||
186 | TP_fast_assign( | 198 | TP_fast_assign( |
187 | __entry->dev = dev; | 199 | __entry->dev_major = MAJOR(dev); |
200 | __entry->dev_minor = MINOR(dev); | ||
188 | __entry->tid = tid; | 201 | __entry->tid = tid; |
189 | __entry->chp_time = stats->cs_chp_time; | 202 | __entry->chp_time = stats->cs_chp_time; |
190 | __entry->forced_to_close= stats->cs_forced_to_close; | 203 | __entry->forced_to_close= stats->cs_forced_to_close; |
@@ -192,9 +205,9 @@ TRACE_EVENT(jbd2_checkpoint_stats, | |||
192 | __entry->dropped = stats->cs_dropped; | 205 | __entry->dropped = stats->cs_dropped; |
193 | ), | 206 | ), |
194 | 207 | ||
195 | TP_printk("dev %s tid %lu chp_time %u forced_to_close %u " | 208 | TP_printk("dev %d,%d tid %lu chp_time %u forced_to_close %u " |
196 | "written %u dropped %u", | 209 | "written %u dropped %u", |
197 | jbd2_dev_to_name(__entry->dev), __entry->tid, | 210 | __entry->dev_major, __entry->dev_minor, __entry->tid, |
198 | jiffies_to_msecs(__entry->chp_time), | 211 | jiffies_to_msecs(__entry->chp_time), |
199 | __entry->forced_to_close, __entry->written, __entry->dropped) | 212 | __entry->forced_to_close, __entry->written, __entry->dropped) |
200 | ); | 213 | ); |
@@ -207,7 +220,8 @@ TRACE_EVENT(jbd2_cleanup_journal_tail, | |||
207 | TP_ARGS(journal, first_tid, block_nr, freed), | 220 | TP_ARGS(journal, first_tid, block_nr, freed), |
208 | 221 | ||
209 | TP_STRUCT__entry( | 222 | TP_STRUCT__entry( |
210 | __field( dev_t, dev ) | 223 | __field( int, dev_major ) |
224 | __field( int, dev_minor ) | ||
211 | __field( tid_t, tail_sequence ) | 225 | __field( tid_t, tail_sequence ) |
212 | __field( tid_t, first_tid ) | 226 | __field( tid_t, first_tid ) |
213 | __field(unsigned long, block_nr ) | 227 | __field(unsigned long, block_nr ) |
@@ -215,16 +229,18 @@ TRACE_EVENT(jbd2_cleanup_journal_tail, | |||
215 | ), | 229 | ), |
216 | 230 | ||
217 | TP_fast_assign( | 231 | TP_fast_assign( |
218 | __entry->dev = journal->j_fs_dev->bd_dev; | 232 | __entry->dev_major = MAJOR(journal->j_fs_dev->bd_dev); |
233 | __entry->dev_minor = MINOR(journal->j_fs_dev->bd_dev); | ||
219 | __entry->tail_sequence = journal->j_tail_sequence; | 234 | __entry->tail_sequence = journal->j_tail_sequence; |
220 | __entry->first_tid = first_tid; | 235 | __entry->first_tid = first_tid; |
221 | __entry->block_nr = block_nr; | 236 | __entry->block_nr = block_nr; |
222 | __entry->freed = freed; | 237 | __entry->freed = freed; |
223 | ), | 238 | ), |
224 | 239 | ||
225 | TP_printk("dev %s from %u to %u offset %lu freed %lu", | 240 | TP_printk("dev %d,%d from %u to %u offset %lu freed %lu", |
226 | jbd2_dev_to_name(__entry->dev), __entry->tail_sequence, | 241 | __entry->dev_major, __entry->dev_minor, |
227 | __entry->first_tid, __entry->block_nr, __entry->freed) | 242 | __entry->tail_sequence, __entry->first_tid, |
243 | __entry->block_nr, __entry->freed) | ||
228 | ); | 244 | ); |
229 | 245 | ||
230 | #endif /* _TRACE_JBD2_H */ | 246 | #endif /* _TRACE_JBD2_H */ |