Commit | Line | Data |
---|---|---|
0b1b213f CH |
1 | /* |
2 | * Copyright (c) 2009, Christoph Hellwig | |
3 | * All Rights Reserved. | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU General Public License as | |
7 | * published by the Free Software Foundation. | |
8 | * | |
9 | * This program is distributed in the hope that it would be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program; if not, write the Free Software Foundation, | |
16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
17 | */ | |
18 | #undef TRACE_SYSTEM | |
19 | #define TRACE_SYSTEM xfs | |
20 | ||
21 | #if !defined(_TRACE_XFS_H) || defined(TRACE_HEADER_MULTI_READ) | |
22 | #define _TRACE_XFS_H | |
23 | ||
24 | #include <linux/tracepoint.h> | |
25 | ||
26 | struct xfs_agf; | |
27 | struct xfs_alloc_arg; | |
28 | struct xfs_attr_list_context; | |
29 | struct xfs_buf_log_item; | |
30 | struct xfs_da_args; | |
31 | struct xfs_da_node_entry; | |
32 | struct xfs_dquot; | |
33 | struct xlog_ticket; | |
34 | struct log; | |
9abbc539 DC |
35 | struct xlog_recover; |
36 | struct xlog_recover_item; | |
37 | struct xfs_buf_log_format; | |
38 | struct xfs_inode_log_format; | |
0b1b213f | 39 | |
ea9a4888 CH |
40 | DECLARE_EVENT_CLASS(xfs_attr_list_class, |
41 | TP_PROTO(struct xfs_attr_list_context *ctx), | |
42 | TP_ARGS(ctx), | |
43 | TP_STRUCT__entry( | |
44 | __field(dev_t, dev) | |
45 | __field(xfs_ino_t, ino) | |
46 | __field(u32, hashval) | |
47 | __field(u32, blkno) | |
48 | __field(u32, offset) | |
49 | __field(void *, alist) | |
50 | __field(int, bufsize) | |
51 | __field(int, count) | |
52 | __field(int, firstu) | |
53 | __field(int, dupcnt) | |
54 | __field(int, flags) | |
55 | ), | |
56 | TP_fast_assign( | |
57 | __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev; | |
58 | __entry->ino = ctx->dp->i_ino; | |
59 | __entry->hashval = ctx->cursor->hashval; | |
60 | __entry->blkno = ctx->cursor->blkno; | |
61 | __entry->offset = ctx->cursor->offset; | |
62 | __entry->alist = ctx->alist; | |
63 | __entry->bufsize = ctx->bufsize; | |
64 | __entry->count = ctx->count; | |
65 | __entry->firstu = ctx->firstu; | |
66 | __entry->flags = ctx->flags; | |
67 | ), | |
68 | TP_printk("dev %d:%d ino 0x%llx cursor h/b/o 0x%x/0x%x/%u dupcnt %u " | |
69 | "alist 0x%p size %u count %u firstu %u flags %d %s", | |
70 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
71 | __entry->ino, | |
72 | __entry->hashval, | |
73 | __entry->blkno, | |
74 | __entry->offset, | |
75 | __entry->dupcnt, | |
76 | __entry->alist, | |
77 | __entry->bufsize, | |
78 | __entry->count, | |
79 | __entry->firstu, | |
80 | __entry->flags, | |
81 | __print_flags(__entry->flags, "|", XFS_ATTR_FLAGS) | |
82 | ) | |
83 | ) | |
84 | ||
0b1b213f | 85 | #define DEFINE_ATTR_LIST_EVENT(name) \ |
ea9a4888 | 86 | DEFINE_EVENT(xfs_attr_list_class, name, \ |
0b1b213f | 87 | TP_PROTO(struct xfs_attr_list_context *ctx), \ |
ea9a4888 | 88 | TP_ARGS(ctx)) |
0b1b213f CH |
89 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf); |
90 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_sf_all); | |
91 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_leaf); | |
92 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_leaf_end); | |
93 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_full); | |
94 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_add); | |
95 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_wrong_blk); | |
96 | DEFINE_ATTR_LIST_EVENT(xfs_attr_list_notfound); | |
97 | ||
f8adb4d5 LZ |
98 | DECLARE_EVENT_CLASS(xfs_perag_class, |
99 | TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, | |
100 | unsigned long caller_ip), | |
101 | TP_ARGS(mp, agno, refcount, caller_ip), | |
102 | TP_STRUCT__entry( | |
103 | __field(dev_t, dev) | |
104 | __field(xfs_agnumber_t, agno) | |
105 | __field(int, refcount) | |
106 | __field(unsigned long, caller_ip) | |
107 | ), | |
108 | TP_fast_assign( | |
109 | __entry->dev = mp->m_super->s_dev; | |
110 | __entry->agno = agno; | |
111 | __entry->refcount = refcount; | |
112 | __entry->caller_ip = caller_ip; | |
113 | ), | |
114 | TP_printk("dev %d:%d agno %u refcount %d caller %pf", | |
115 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
116 | __entry->agno, | |
117 | __entry->refcount, | |
118 | (char *)__entry->caller_ip) | |
119 | ); | |
120 | ||
121 | #define DEFINE_PERAG_REF_EVENT(name) \ | |
122 | DEFINE_EVENT(xfs_perag_class, name, \ | |
123 | TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \ | |
124 | unsigned long caller_ip), \ | |
125 | TP_ARGS(mp, agno, refcount, caller_ip)) | |
126 | DEFINE_PERAG_REF_EVENT(xfs_perag_get); | |
16fd5367 | 127 | DEFINE_PERAG_REF_EVENT(xfs_perag_get_reclaim); |
f8adb4d5 | 128 | DEFINE_PERAG_REF_EVENT(xfs_perag_put); |
16fd5367 DC |
129 | DEFINE_PERAG_REF_EVENT(xfs_perag_set_reclaim); |
130 | DEFINE_PERAG_REF_EVENT(xfs_perag_clear_reclaim); | |
f8adb4d5 | 131 | |
0b1b213f CH |
132 | TRACE_EVENT(xfs_attr_list_node_descend, |
133 | TP_PROTO(struct xfs_attr_list_context *ctx, | |
134 | struct xfs_da_node_entry *btree), | |
135 | TP_ARGS(ctx, btree), | |
136 | TP_STRUCT__entry( | |
137 | __field(dev_t, dev) | |
138 | __field(xfs_ino_t, ino) | |
139 | __field(u32, hashval) | |
140 | __field(u32, blkno) | |
141 | __field(u32, offset) | |
142 | __field(void *, alist) | |
143 | __field(int, bufsize) | |
144 | __field(int, count) | |
145 | __field(int, firstu) | |
146 | __field(int, dupcnt) | |
147 | __field(int, flags) | |
148 | __field(u32, bt_hashval) | |
149 | __field(u32, bt_before) | |
150 | ), | |
151 | TP_fast_assign( | |
152 | __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev; | |
153 | __entry->ino = ctx->dp->i_ino; | |
154 | __entry->hashval = ctx->cursor->hashval; | |
155 | __entry->blkno = ctx->cursor->blkno; | |
156 | __entry->offset = ctx->cursor->offset; | |
157 | __entry->alist = ctx->alist; | |
158 | __entry->bufsize = ctx->bufsize; | |
159 | __entry->count = ctx->count; | |
160 | __entry->firstu = ctx->firstu; | |
161 | __entry->flags = ctx->flags; | |
162 | __entry->bt_hashval = be32_to_cpu(btree->hashval); | |
163 | __entry->bt_before = be32_to_cpu(btree->before); | |
164 | ), | |
165 | TP_printk("dev %d:%d ino 0x%llx cursor h/b/o 0x%x/0x%x/%u dupcnt %u " | |
166 | "alist 0x%p size %u count %u firstu %u flags %d %s " | |
167 | "node hashval %u, node before %u", | |
168 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
169 | __entry->ino, | |
170 | __entry->hashval, | |
171 | __entry->blkno, | |
172 | __entry->offset, | |
173 | __entry->dupcnt, | |
174 | __entry->alist, | |
175 | __entry->bufsize, | |
176 | __entry->count, | |
177 | __entry->firstu, | |
178 | __entry->flags, | |
179 | __print_flags(__entry->flags, "|", XFS_ATTR_FLAGS), | |
180 | __entry->bt_hashval, | |
181 | __entry->bt_before) | |
182 | ); | |
183 | ||
184 | TRACE_EVENT(xfs_iext_insert, | |
185 | TP_PROTO(struct xfs_inode *ip, xfs_extnum_t idx, | |
186 | struct xfs_bmbt_irec *r, int state, unsigned long caller_ip), | |
187 | TP_ARGS(ip, idx, r, state, caller_ip), | |
188 | TP_STRUCT__entry( | |
189 | __field(dev_t, dev) | |
190 | __field(xfs_ino_t, ino) | |
191 | __field(xfs_extnum_t, idx) | |
192 | __field(xfs_fileoff_t, startoff) | |
193 | __field(xfs_fsblock_t, startblock) | |
194 | __field(xfs_filblks_t, blockcount) | |
195 | __field(xfs_exntst_t, state) | |
196 | __field(int, bmap_state) | |
197 | __field(unsigned long, caller_ip) | |
198 | ), | |
199 | TP_fast_assign( | |
200 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
201 | __entry->ino = ip->i_ino; | |
202 | __entry->idx = idx; | |
203 | __entry->startoff = r->br_startoff; | |
204 | __entry->startblock = r->br_startblock; | |
205 | __entry->blockcount = r->br_blockcount; | |
206 | __entry->state = r->br_state; | |
207 | __entry->bmap_state = state; | |
208 | __entry->caller_ip = caller_ip; | |
209 | ), | |
210 | TP_printk("dev %d:%d ino 0x%llx state %s idx %ld " | |
f7008d0a | 211 | "offset %lld block %lld count %lld flag %d caller %pf", |
0b1b213f CH |
212 | MAJOR(__entry->dev), MINOR(__entry->dev), |
213 | __entry->ino, | |
214 | __print_flags(__entry->bmap_state, "|", XFS_BMAP_EXT_FLAGS), | |
215 | (long)__entry->idx, | |
216 | __entry->startoff, | |
f7008d0a | 217 | (__int64_t)__entry->startblock, |
0b1b213f CH |
218 | __entry->blockcount, |
219 | __entry->state, | |
220 | (char *)__entry->caller_ip) | |
221 | ); | |
222 | ||
ea9a4888 CH |
223 | DECLARE_EVENT_CLASS(xfs_bmap_class, |
224 | TP_PROTO(struct xfs_inode *ip, xfs_extnum_t idx, int state, | |
225 | unsigned long caller_ip), | |
226 | TP_ARGS(ip, idx, state, caller_ip), | |
227 | TP_STRUCT__entry( | |
228 | __field(dev_t, dev) | |
229 | __field(xfs_ino_t, ino) | |
230 | __field(xfs_extnum_t, idx) | |
231 | __field(xfs_fileoff_t, startoff) | |
232 | __field(xfs_fsblock_t, startblock) | |
233 | __field(xfs_filblks_t, blockcount) | |
234 | __field(xfs_exntst_t, state) | |
235 | __field(int, bmap_state) | |
236 | __field(unsigned long, caller_ip) | |
237 | ), | |
238 | TP_fast_assign( | |
239 | struct xfs_ifork *ifp = (state & BMAP_ATTRFORK) ? | |
240 | ip->i_afp : &ip->i_df; | |
241 | struct xfs_bmbt_irec r; | |
242 | ||
243 | xfs_bmbt_get_all(xfs_iext_get_ext(ifp, idx), &r); | |
244 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
245 | __entry->ino = ip->i_ino; | |
246 | __entry->idx = idx; | |
247 | __entry->startoff = r.br_startoff; | |
248 | __entry->startblock = r.br_startblock; | |
249 | __entry->blockcount = r.br_blockcount; | |
250 | __entry->state = r.br_state; | |
251 | __entry->bmap_state = state; | |
252 | __entry->caller_ip = caller_ip; | |
253 | ), | |
254 | TP_printk("dev %d:%d ino 0x%llx state %s idx %ld " | |
f7008d0a | 255 | "offset %lld block %lld count %lld flag %d caller %pf", |
ea9a4888 CH |
256 | MAJOR(__entry->dev), MINOR(__entry->dev), |
257 | __entry->ino, | |
258 | __print_flags(__entry->bmap_state, "|", XFS_BMAP_EXT_FLAGS), | |
259 | (long)__entry->idx, | |
260 | __entry->startoff, | |
f7008d0a | 261 | (__int64_t)__entry->startblock, |
ea9a4888 CH |
262 | __entry->blockcount, |
263 | __entry->state, | |
264 | (char *)__entry->caller_ip) | |
265 | ) | |
266 | ||
0b1b213f | 267 | #define DEFINE_BMAP_EVENT(name) \ |
ea9a4888 | 268 | DEFINE_EVENT(xfs_bmap_class, name, \ |
0b1b213f CH |
269 | TP_PROTO(struct xfs_inode *ip, xfs_extnum_t idx, int state, \ |
270 | unsigned long caller_ip), \ | |
ea9a4888 | 271 | TP_ARGS(ip, idx, state, caller_ip)) |
0b1b213f CH |
272 | DEFINE_BMAP_EVENT(xfs_iext_remove); |
273 | DEFINE_BMAP_EVENT(xfs_bmap_pre_update); | |
274 | DEFINE_BMAP_EVENT(xfs_bmap_post_update); | |
275 | DEFINE_BMAP_EVENT(xfs_extlist); | |
276 | ||
ea9a4888 CH |
277 | DECLARE_EVENT_CLASS(xfs_buf_class, |
278 | TP_PROTO(struct xfs_buf *bp, unsigned long caller_ip), | |
279 | TP_ARGS(bp, caller_ip), | |
280 | TP_STRUCT__entry( | |
281 | __field(dev_t, dev) | |
282 | __field(xfs_daddr_t, bno) | |
283 | __field(size_t, buffer_length) | |
284 | __field(int, hold) | |
285 | __field(int, pincount) | |
286 | __field(unsigned, lockval) | |
287 | __field(unsigned, flags) | |
288 | __field(unsigned long, caller_ip) | |
289 | ), | |
290 | TP_fast_assign( | |
291 | __entry->dev = bp->b_target->bt_dev; | |
292 | __entry->bno = bp->b_bn; | |
293 | __entry->buffer_length = bp->b_buffer_length; | |
294 | __entry->hold = atomic_read(&bp->b_hold); | |
295 | __entry->pincount = atomic_read(&bp->b_pin_count); | |
296 | __entry->lockval = xfs_buf_lock_value(bp); | |
297 | __entry->flags = bp->b_flags; | |
298 | __entry->caller_ip = caller_ip; | |
299 | ), | |
300 | TP_printk("dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d " | |
301 | "lock %d flags %s caller %pf", | |
302 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
303 | (unsigned long long)__entry->bno, | |
304 | __entry->buffer_length, | |
305 | __entry->hold, | |
306 | __entry->pincount, | |
307 | __entry->lockval, | |
308 | __print_flags(__entry->flags, "|", XFS_BUF_FLAGS), | |
309 | (void *)__entry->caller_ip) | |
0b1b213f | 310 | ) |
ea9a4888 CH |
311 | |
312 | #define DEFINE_BUF_EVENT(name) \ | |
313 | DEFINE_EVENT(xfs_buf_class, name, \ | |
314 | TP_PROTO(struct xfs_buf *bp, unsigned long caller_ip), \ | |
315 | TP_ARGS(bp, caller_ip)) | |
0b1b213f CH |
316 | DEFINE_BUF_EVENT(xfs_buf_init); |
317 | DEFINE_BUF_EVENT(xfs_buf_free); | |
318 | DEFINE_BUF_EVENT(xfs_buf_hold); | |
319 | DEFINE_BUF_EVENT(xfs_buf_rele); | |
0b1b213f CH |
320 | DEFINE_BUF_EVENT(xfs_buf_iodone); |
321 | DEFINE_BUF_EVENT(xfs_buf_iorequest); | |
322 | DEFINE_BUF_EVENT(xfs_buf_bawrite); | |
323 | DEFINE_BUF_EVENT(xfs_buf_bdwrite); | |
324 | DEFINE_BUF_EVENT(xfs_buf_lock); | |
325 | DEFINE_BUF_EVENT(xfs_buf_lock_done); | |
326 | DEFINE_BUF_EVENT(xfs_buf_cond_lock); | |
327 | DEFINE_BUF_EVENT(xfs_buf_unlock); | |
328 | DEFINE_BUF_EVENT(xfs_buf_ordered_retry); | |
329 | DEFINE_BUF_EVENT(xfs_buf_iowait); | |
330 | DEFINE_BUF_EVENT(xfs_buf_iowait_done); | |
331 | DEFINE_BUF_EVENT(xfs_buf_delwri_queue); | |
332 | DEFINE_BUF_EVENT(xfs_buf_delwri_dequeue); | |
333 | DEFINE_BUF_EVENT(xfs_buf_delwri_split); | |
334 | DEFINE_BUF_EVENT(xfs_buf_get_noaddr); | |
335 | DEFINE_BUF_EVENT(xfs_bdstrat_shut); | |
336 | DEFINE_BUF_EVENT(xfs_buf_item_relse); | |
337 | DEFINE_BUF_EVENT(xfs_buf_item_iodone); | |
338 | DEFINE_BUF_EVENT(xfs_buf_item_iodone_async); | |
339 | DEFINE_BUF_EVENT(xfs_buf_error_relse); | |
340 | DEFINE_BUF_EVENT(xfs_trans_read_buf_io); | |
341 | DEFINE_BUF_EVENT(xfs_trans_read_buf_shut); | |
342 | ||
343 | /* not really buffer traces, but the buf provides useful information */ | |
344 | DEFINE_BUF_EVENT(xfs_btree_corrupt); | |
345 | DEFINE_BUF_EVENT(xfs_da_btree_corrupt); | |
346 | DEFINE_BUF_EVENT(xfs_reset_dqcounts); | |
347 | DEFINE_BUF_EVENT(xfs_inode_item_push); | |
348 | ||
349 | /* pass flags explicitly */ | |
ea9a4888 CH |
350 | DECLARE_EVENT_CLASS(xfs_buf_flags_class, |
351 | TP_PROTO(struct xfs_buf *bp, unsigned flags, unsigned long caller_ip), | |
352 | TP_ARGS(bp, flags, caller_ip), | |
353 | TP_STRUCT__entry( | |
354 | __field(dev_t, dev) | |
355 | __field(xfs_daddr_t, bno) | |
356 | __field(size_t, buffer_length) | |
357 | __field(int, hold) | |
358 | __field(int, pincount) | |
359 | __field(unsigned, lockval) | |
360 | __field(unsigned, flags) | |
361 | __field(unsigned long, caller_ip) | |
362 | ), | |
363 | TP_fast_assign( | |
364 | __entry->dev = bp->b_target->bt_dev; | |
365 | __entry->bno = bp->b_bn; | |
366 | __entry->buffer_length = bp->b_buffer_length; | |
367 | __entry->flags = flags; | |
368 | __entry->hold = atomic_read(&bp->b_hold); | |
369 | __entry->pincount = atomic_read(&bp->b_pin_count); | |
370 | __entry->lockval = xfs_buf_lock_value(bp); | |
371 | __entry->caller_ip = caller_ip; | |
372 | ), | |
373 | TP_printk("dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d " | |
374 | "lock %d flags %s caller %pf", | |
375 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
376 | (unsigned long long)__entry->bno, | |
377 | __entry->buffer_length, | |
378 | __entry->hold, | |
379 | __entry->pincount, | |
380 | __entry->lockval, | |
381 | __print_flags(__entry->flags, "|", XFS_BUF_FLAGS), | |
382 | (void *)__entry->caller_ip) | |
0b1b213f | 383 | ) |
ea9a4888 CH |
384 | |
385 | #define DEFINE_BUF_FLAGS_EVENT(name) \ | |
386 | DEFINE_EVENT(xfs_buf_flags_class, name, \ | |
387 | TP_PROTO(struct xfs_buf *bp, unsigned flags, unsigned long caller_ip), \ | |
388 | TP_ARGS(bp, flags, caller_ip)) | |
0b1b213f CH |
389 | DEFINE_BUF_FLAGS_EVENT(xfs_buf_find); |
390 | DEFINE_BUF_FLAGS_EVENT(xfs_buf_get); | |
391 | DEFINE_BUF_FLAGS_EVENT(xfs_buf_read); | |
392 | ||
393 | TRACE_EVENT(xfs_buf_ioerror, | |
394 | TP_PROTO(struct xfs_buf *bp, int error, unsigned long caller_ip), | |
395 | TP_ARGS(bp, error, caller_ip), | |
396 | TP_STRUCT__entry( | |
397 | __field(dev_t, dev) | |
398 | __field(xfs_daddr_t, bno) | |
399 | __field(size_t, buffer_length) | |
400 | __field(unsigned, flags) | |
401 | __field(int, hold) | |
402 | __field(int, pincount) | |
403 | __field(unsigned, lockval) | |
404 | __field(int, error) | |
405 | __field(unsigned long, caller_ip) | |
406 | ), | |
407 | TP_fast_assign( | |
408 | __entry->dev = bp->b_target->bt_dev; | |
409 | __entry->bno = bp->b_bn; | |
410 | __entry->buffer_length = bp->b_buffer_length; | |
411 | __entry->hold = atomic_read(&bp->b_hold); | |
412 | __entry->pincount = atomic_read(&bp->b_pin_count); | |
413 | __entry->lockval = xfs_buf_lock_value(bp); | |
414 | __entry->error = error; | |
415 | __entry->flags = bp->b_flags; | |
416 | __entry->caller_ip = caller_ip; | |
417 | ), | |
418 | TP_printk("dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d " | |
419 | "lock %d error %d flags %s caller %pf", | |
420 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
421 | (unsigned long long)__entry->bno, | |
422 | __entry->buffer_length, | |
423 | __entry->hold, | |
424 | __entry->pincount, | |
425 | __entry->lockval, | |
426 | __entry->error, | |
427 | __print_flags(__entry->flags, "|", XFS_BUF_FLAGS), | |
428 | (void *)__entry->caller_ip) | |
429 | ); | |
430 | ||
ea9a4888 CH |
431 | DECLARE_EVENT_CLASS(xfs_buf_item_class, |
432 | TP_PROTO(struct xfs_buf_log_item *bip), | |
433 | TP_ARGS(bip), | |
434 | TP_STRUCT__entry( | |
435 | __field(dev_t, dev) | |
436 | __field(xfs_daddr_t, buf_bno) | |
437 | __field(size_t, buf_len) | |
438 | __field(int, buf_hold) | |
439 | __field(int, buf_pincount) | |
440 | __field(int, buf_lockval) | |
441 | __field(unsigned, buf_flags) | |
442 | __field(unsigned, bli_recur) | |
443 | __field(int, bli_refcount) | |
444 | __field(unsigned, bli_flags) | |
445 | __field(void *, li_desc) | |
446 | __field(unsigned, li_flags) | |
447 | ), | |
448 | TP_fast_assign( | |
449 | __entry->dev = bip->bli_buf->b_target->bt_dev; | |
450 | __entry->bli_flags = bip->bli_flags; | |
451 | __entry->bli_recur = bip->bli_recur; | |
452 | __entry->bli_refcount = atomic_read(&bip->bli_refcount); | |
453 | __entry->buf_bno = bip->bli_buf->b_bn; | |
454 | __entry->buf_len = bip->bli_buf->b_buffer_length; | |
455 | __entry->buf_flags = bip->bli_buf->b_flags; | |
456 | __entry->buf_hold = atomic_read(&bip->bli_buf->b_hold); | |
457 | __entry->buf_pincount = atomic_read(&bip->bli_buf->b_pin_count); | |
458 | __entry->buf_lockval = xfs_buf_lock_value(bip->bli_buf); | |
459 | __entry->li_desc = bip->bli_item.li_desc; | |
460 | __entry->li_flags = bip->bli_item.li_flags; | |
461 | ), | |
462 | TP_printk("dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d " | |
463 | "lock %d flags %s recur %d refcount %d bliflags %s " | |
464 | "lidesc 0x%p liflags %s", | |
465 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
466 | (unsigned long long)__entry->buf_bno, | |
467 | __entry->buf_len, | |
468 | __entry->buf_hold, | |
469 | __entry->buf_pincount, | |
470 | __entry->buf_lockval, | |
471 | __print_flags(__entry->buf_flags, "|", XFS_BUF_FLAGS), | |
472 | __entry->bli_recur, | |
473 | __entry->bli_refcount, | |
474 | __print_flags(__entry->bli_flags, "|", XFS_BLI_FLAGS), | |
475 | __entry->li_desc, | |
476 | __print_flags(__entry->li_flags, "|", XFS_LI_FLAGS)) | |
0b1b213f | 477 | ) |
ea9a4888 CH |
478 | |
479 | #define DEFINE_BUF_ITEM_EVENT(name) \ | |
480 | DEFINE_EVENT(xfs_buf_item_class, name, \ | |
481 | TP_PROTO(struct xfs_buf_log_item *bip), \ | |
482 | TP_ARGS(bip)) | |
0b1b213f CH |
483 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_size); |
484 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_size_stale); | |
485 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_format); | |
486 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_format_stale); | |
487 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_pin); | |
488 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_unpin); | |
489 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_unpin_stale); | |
490 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_trylock); | |
491 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_unlock); | |
492 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_unlock_stale); | |
493 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_committed); | |
494 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_push); | |
d808f617 | 495 | DEFINE_BUF_ITEM_EVENT(xfs_buf_item_pushbuf); |
0b1b213f CH |
496 | DEFINE_BUF_ITEM_EVENT(xfs_trans_get_buf); |
497 | DEFINE_BUF_ITEM_EVENT(xfs_trans_get_buf_recur); | |
498 | DEFINE_BUF_ITEM_EVENT(xfs_trans_getsb); | |
499 | DEFINE_BUF_ITEM_EVENT(xfs_trans_getsb_recur); | |
500 | DEFINE_BUF_ITEM_EVENT(xfs_trans_read_buf); | |
501 | DEFINE_BUF_ITEM_EVENT(xfs_trans_read_buf_recur); | |
502 | DEFINE_BUF_ITEM_EVENT(xfs_trans_log_buf); | |
503 | DEFINE_BUF_ITEM_EVENT(xfs_trans_brelse); | |
504 | DEFINE_BUF_ITEM_EVENT(xfs_trans_bjoin); | |
505 | DEFINE_BUF_ITEM_EVENT(xfs_trans_bhold); | |
506 | DEFINE_BUF_ITEM_EVENT(xfs_trans_bhold_release); | |
507 | DEFINE_BUF_ITEM_EVENT(xfs_trans_binval); | |
508 | ||
ea9a4888 CH |
509 | DECLARE_EVENT_CLASS(xfs_lock_class, |
510 | TP_PROTO(struct xfs_inode *ip, unsigned lock_flags, | |
511 | unsigned long caller_ip), | |
512 | TP_ARGS(ip, lock_flags, caller_ip), | |
513 | TP_STRUCT__entry( | |
514 | __field(dev_t, dev) | |
515 | __field(xfs_ino_t, ino) | |
516 | __field(int, lock_flags) | |
517 | __field(unsigned long, caller_ip) | |
518 | ), | |
519 | TP_fast_assign( | |
520 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
521 | __entry->ino = ip->i_ino; | |
522 | __entry->lock_flags = lock_flags; | |
523 | __entry->caller_ip = caller_ip; | |
524 | ), | |
525 | TP_printk("dev %d:%d ino 0x%llx flags %s caller %pf", | |
526 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
527 | __entry->ino, | |
528 | __print_flags(__entry->lock_flags, "|", XFS_LOCK_FLAGS), | |
529 | (void *)__entry->caller_ip) | |
530 | ) | |
531 | ||
0b1b213f | 532 | #define DEFINE_LOCK_EVENT(name) \ |
ea9a4888 | 533 | DEFINE_EVENT(xfs_lock_class, name, \ |
0b1b213f CH |
534 | TP_PROTO(struct xfs_inode *ip, unsigned lock_flags, \ |
535 | unsigned long caller_ip), \ | |
ea9a4888 | 536 | TP_ARGS(ip, lock_flags, caller_ip)) |
0b1b213f CH |
537 | DEFINE_LOCK_EVENT(xfs_ilock); |
538 | DEFINE_LOCK_EVENT(xfs_ilock_nowait); | |
539 | DEFINE_LOCK_EVENT(xfs_ilock_demote); | |
540 | DEFINE_LOCK_EVENT(xfs_iunlock); | |
541 | ||
ea9a4888 CH |
542 | DECLARE_EVENT_CLASS(xfs_iget_class, |
543 | TP_PROTO(struct xfs_inode *ip), | |
544 | TP_ARGS(ip), | |
545 | TP_STRUCT__entry( | |
546 | __field(dev_t, dev) | |
547 | __field(xfs_ino_t, ino) | |
548 | ), | |
549 | TP_fast_assign( | |
550 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
551 | __entry->ino = ip->i_ino; | |
552 | ), | |
553 | TP_printk("dev %d:%d ino 0x%llx", | |
554 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
555 | __entry->ino) | |
556 | ) | |
557 | ||
0b1b213f | 558 | #define DEFINE_IGET_EVENT(name) \ |
ea9a4888 | 559 | DEFINE_EVENT(xfs_iget_class, name, \ |
0b1b213f | 560 | TP_PROTO(struct xfs_inode *ip), \ |
ea9a4888 | 561 | TP_ARGS(ip)) |
0b1b213f CH |
562 | DEFINE_IGET_EVENT(xfs_iget_skip); |
563 | DEFINE_IGET_EVENT(xfs_iget_reclaim); | |
564 | DEFINE_IGET_EVENT(xfs_iget_found); | |
565 | DEFINE_IGET_EVENT(xfs_iget_alloc); | |
566 | ||
ea9a4888 CH |
567 | DECLARE_EVENT_CLASS(xfs_inode_class, |
568 | TP_PROTO(struct xfs_inode *ip, unsigned long caller_ip), | |
569 | TP_ARGS(ip, caller_ip), | |
570 | TP_STRUCT__entry( | |
571 | __field(dev_t, dev) | |
572 | __field(xfs_ino_t, ino) | |
573 | __field(int, count) | |
4aaf15d1 | 574 | __field(int, pincount) |
ea9a4888 CH |
575 | __field(unsigned long, caller_ip) |
576 | ), | |
577 | TP_fast_assign( | |
578 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
579 | __entry->ino = ip->i_ino; | |
580 | __entry->count = atomic_read(&VFS_I(ip)->i_count); | |
4aaf15d1 | 581 | __entry->pincount = atomic_read(&ip->i_pincount); |
ea9a4888 CH |
582 | __entry->caller_ip = caller_ip; |
583 | ), | |
4aaf15d1 | 584 | TP_printk("dev %d:%d ino 0x%llx count %d pincount %d caller %pf", |
ea9a4888 CH |
585 | MAJOR(__entry->dev), MINOR(__entry->dev), |
586 | __entry->ino, | |
587 | __entry->count, | |
4aaf15d1 | 588 | __entry->pincount, |
ea9a4888 CH |
589 | (char *)__entry->caller_ip) |
590 | ) | |
591 | ||
0b1b213f | 592 | #define DEFINE_INODE_EVENT(name) \ |
ea9a4888 | 593 | DEFINE_EVENT(xfs_inode_class, name, \ |
0b1b213f | 594 | TP_PROTO(struct xfs_inode *ip, unsigned long caller_ip), \ |
ea9a4888 | 595 | TP_ARGS(ip, caller_ip)) |
0b1b213f CH |
596 | DEFINE_INODE_EVENT(xfs_ihold); |
597 | DEFINE_INODE_EVENT(xfs_irele); | |
4aaf15d1 DC |
598 | DEFINE_INODE_EVENT(xfs_inode_pin); |
599 | DEFINE_INODE_EVENT(xfs_inode_unpin); | |
600 | DEFINE_INODE_EVENT(xfs_inode_unpin_nowait); | |
601 | ||
0b1b213f CH |
602 | /* the old xfs_itrace_entry tracer - to be replaced by s.th. in the VFS */ |
603 | DEFINE_INODE_EVENT(xfs_inode); | |
604 | #define xfs_itrace_entry(ip) \ | |
605 | trace_xfs_inode(ip, _THIS_IP_) | |
606 | ||
ea9a4888 CH |
607 | DECLARE_EVENT_CLASS(xfs_dquot_class, |
608 | TP_PROTO(struct xfs_dquot *dqp), | |
609 | TP_ARGS(dqp), | |
610 | TP_STRUCT__entry( | |
611 | __field(dev_t, dev) | |
b262e5df | 612 | __field(u32, id) |
ea9a4888 CH |
613 | __field(unsigned, flags) |
614 | __field(unsigned, nrefs) | |
615 | __field(unsigned long long, res_bcount) | |
616 | __field(unsigned long long, bcount) | |
617 | __field(unsigned long long, icount) | |
618 | __field(unsigned long long, blk_hardlimit) | |
619 | __field(unsigned long long, blk_softlimit) | |
620 | __field(unsigned long long, ino_hardlimit) | |
621 | __field(unsigned long long, ino_softlimit) | |
0b1b213f | 622 | ), \ |
ea9a4888 CH |
623 | TP_fast_assign( |
624 | __entry->dev = dqp->q_mount->m_super->s_dev; | |
b262e5df | 625 | __entry->id = be32_to_cpu(dqp->q_core.d_id); |
ea9a4888 CH |
626 | __entry->flags = dqp->dq_flags; |
627 | __entry->nrefs = dqp->q_nrefs; | |
628 | __entry->res_bcount = dqp->q_res_bcount; | |
629 | __entry->bcount = be64_to_cpu(dqp->q_core.d_bcount); | |
630 | __entry->icount = be64_to_cpu(dqp->q_core.d_icount); | |
631 | __entry->blk_hardlimit = | |
632 | be64_to_cpu(dqp->q_core.d_blk_hardlimit); | |
633 | __entry->blk_softlimit = | |
634 | be64_to_cpu(dqp->q_core.d_blk_softlimit); | |
635 | __entry->ino_hardlimit = | |
636 | be64_to_cpu(dqp->q_core.d_ino_hardlimit); | |
637 | __entry->ino_softlimit = | |
638 | be64_to_cpu(dqp->q_core.d_ino_softlimit); | |
639 | ), | |
640 | TP_printk("dev %d:%d id 0x%x flags %s nrefs %u res_bc 0x%llx " | |
b262e5df CH |
641 | "bcnt 0x%llx bhardlimit 0x%llx bsoftlimit 0x%llx " |
642 | "icnt 0x%llx ihardlimit 0x%llx isoftlimit 0x%llx]", | |
ea9a4888 | 643 | MAJOR(__entry->dev), MINOR(__entry->dev), |
b262e5df | 644 | __entry->id, |
ea9a4888 CH |
645 | __print_flags(__entry->flags, "|", XFS_DQ_FLAGS), |
646 | __entry->nrefs, | |
647 | __entry->res_bcount, | |
648 | __entry->bcount, | |
649 | __entry->blk_hardlimit, | |
650 | __entry->blk_softlimit, | |
651 | __entry->icount, | |
652 | __entry->ino_hardlimit, | |
653 | __entry->ino_softlimit) | |
0b1b213f | 654 | ) |
ea9a4888 CH |
655 | |
656 | #define DEFINE_DQUOT_EVENT(name) \ | |
657 | DEFINE_EVENT(xfs_dquot_class, name, \ | |
658 | TP_PROTO(struct xfs_dquot *dqp), \ | |
659 | TP_ARGS(dqp)) | |
0b1b213f | 660 | DEFINE_DQUOT_EVENT(xfs_dqadjust); |
0b1b213f CH |
661 | DEFINE_DQUOT_EVENT(xfs_dqreclaim_want); |
662 | DEFINE_DQUOT_EVENT(xfs_dqreclaim_dirty); | |
663 | DEFINE_DQUOT_EVENT(xfs_dqreclaim_unlink); | |
664 | DEFINE_DQUOT_EVENT(xfs_dqattach_found); | |
665 | DEFINE_DQUOT_EVENT(xfs_dqattach_get); | |
666 | DEFINE_DQUOT_EVENT(xfs_dqinit); | |
667 | DEFINE_DQUOT_EVENT(xfs_dqreuse); | |
668 | DEFINE_DQUOT_EVENT(xfs_dqalloc); | |
669 | DEFINE_DQUOT_EVENT(xfs_dqtobp_read); | |
670 | DEFINE_DQUOT_EVENT(xfs_dqread); | |
671 | DEFINE_DQUOT_EVENT(xfs_dqread_fail); | |
672 | DEFINE_DQUOT_EVENT(xfs_dqlookup_found); | |
673 | DEFINE_DQUOT_EVENT(xfs_dqlookup_want); | |
674 | DEFINE_DQUOT_EVENT(xfs_dqlookup_freelist); | |
0b1b213f CH |
675 | DEFINE_DQUOT_EVENT(xfs_dqlookup_done); |
676 | DEFINE_DQUOT_EVENT(xfs_dqget_hit); | |
677 | DEFINE_DQUOT_EVENT(xfs_dqget_miss); | |
678 | DEFINE_DQUOT_EVENT(xfs_dqput); | |
679 | DEFINE_DQUOT_EVENT(xfs_dqput_wait); | |
680 | DEFINE_DQUOT_EVENT(xfs_dqput_free); | |
681 | DEFINE_DQUOT_EVENT(xfs_dqrele); | |
682 | DEFINE_DQUOT_EVENT(xfs_dqflush); | |
683 | DEFINE_DQUOT_EVENT(xfs_dqflush_force); | |
684 | DEFINE_DQUOT_EVENT(xfs_dqflush_done); | |
685 | /* not really iget events, but we re-use the format */ | |
686 | DEFINE_IGET_EVENT(xfs_dquot_dqalloc); | |
687 | DEFINE_IGET_EVENT(xfs_dquot_dqdetach); | |
688 | ||
ea9a4888 CH |
689 | DECLARE_EVENT_CLASS(xfs_loggrant_class, |
690 | TP_PROTO(struct log *log, struct xlog_ticket *tic), | |
691 | TP_ARGS(log, tic), | |
692 | TP_STRUCT__entry( | |
693 | __field(dev_t, dev) | |
694 | __field(unsigned, trans_type) | |
695 | __field(char, ocnt) | |
696 | __field(char, cnt) | |
697 | __field(int, curr_res) | |
698 | __field(int, unit_res) | |
699 | __field(unsigned int, flags) | |
700 | __field(void *, reserve_headq) | |
701 | __field(void *, write_headq) | |
702 | __field(int, grant_reserve_cycle) | |
703 | __field(int, grant_reserve_bytes) | |
704 | __field(int, grant_write_cycle) | |
705 | __field(int, grant_write_bytes) | |
706 | __field(int, curr_cycle) | |
707 | __field(int, curr_block) | |
708 | __field(xfs_lsn_t, tail_lsn) | |
709 | ), | |
710 | TP_fast_assign( | |
711 | __entry->dev = log->l_mp->m_super->s_dev; | |
712 | __entry->trans_type = tic->t_trans_type; | |
713 | __entry->ocnt = tic->t_ocnt; | |
714 | __entry->cnt = tic->t_cnt; | |
715 | __entry->curr_res = tic->t_curr_res; | |
716 | __entry->unit_res = tic->t_unit_res; | |
717 | __entry->flags = tic->t_flags; | |
718 | __entry->reserve_headq = log->l_reserve_headq; | |
719 | __entry->write_headq = log->l_write_headq; | |
720 | __entry->grant_reserve_cycle = log->l_grant_reserve_cycle; | |
721 | __entry->grant_reserve_bytes = log->l_grant_reserve_bytes; | |
722 | __entry->grant_write_cycle = log->l_grant_write_cycle; | |
723 | __entry->grant_write_bytes = log->l_grant_write_bytes; | |
724 | __entry->curr_cycle = log->l_curr_cycle; | |
725 | __entry->curr_block = log->l_curr_block; | |
726 | __entry->tail_lsn = log->l_tail_lsn; | |
727 | ), | |
728 | TP_printk("dev %d:%d type %s t_ocnt %u t_cnt %u t_curr_res %u " | |
729 | "t_unit_res %u t_flags %s reserve_headq 0x%p " | |
730 | "write_headq 0x%p grant_reserve_cycle %d " | |
731 | "grant_reserve_bytes %d grant_write_cycle %d " | |
732 | "grant_write_bytes %d curr_cycle %d curr_block %d " | |
733 | "tail_cycle %d tail_block %d", | |
734 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
735 | __print_symbolic(__entry->trans_type, XFS_TRANS_TYPES), | |
736 | __entry->ocnt, | |
737 | __entry->cnt, | |
738 | __entry->curr_res, | |
739 | __entry->unit_res, | |
740 | __print_flags(__entry->flags, "|", XLOG_TIC_FLAGS), | |
741 | __entry->reserve_headq, | |
742 | __entry->write_headq, | |
743 | __entry->grant_reserve_cycle, | |
744 | __entry->grant_reserve_bytes, | |
745 | __entry->grant_write_cycle, | |
746 | __entry->grant_write_bytes, | |
747 | __entry->curr_cycle, | |
748 | __entry->curr_block, | |
749 | CYCLE_LSN(__entry->tail_lsn), | |
750 | BLOCK_LSN(__entry->tail_lsn) | |
751 | ) | |
752 | ) | |
0b1b213f | 753 | |
ea9a4888 CH |
754 | #define DEFINE_LOGGRANT_EVENT(name) \ |
755 | DEFINE_EVENT(xfs_loggrant_class, name, \ | |
0b1b213f | 756 | TP_PROTO(struct log *log, struct xlog_ticket *tic), \ |
ea9a4888 | 757 | TP_ARGS(log, tic)) |
0b1b213f CH |
758 | DEFINE_LOGGRANT_EVENT(xfs_log_done_nonperm); |
759 | DEFINE_LOGGRANT_EVENT(xfs_log_done_perm); | |
760 | DEFINE_LOGGRANT_EVENT(xfs_log_reserve); | |
761 | DEFINE_LOGGRANT_EVENT(xfs_log_umount_write); | |
762 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_enter); | |
763 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_exit); | |
764 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_error); | |
765 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_sleep1); | |
766 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_wake1); | |
767 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_sleep2); | |
768 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_wake2); | |
769 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_enter); | |
770 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_exit); | |
771 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_error); | |
772 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_sleep1); | |
773 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_wake1); | |
774 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_sleep2); | |
775 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_wake2); | |
776 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_enter); | |
777 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_exit); | |
778 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_sub); | |
779 | DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_enter); | |
780 | DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_exit); | |
781 | DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_sub); | |
782 | ||
f8adb4d5 LZ |
783 | DECLARE_EVENT_CLASS(xfs_file_class, |
784 | TP_PROTO(struct xfs_inode *ip, size_t count, loff_t offset, int flags), | |
785 | TP_ARGS(ip, count, offset, flags), | |
786 | TP_STRUCT__entry( | |
787 | __field(dev_t, dev) | |
788 | __field(xfs_ino_t, ino) | |
789 | __field(xfs_fsize_t, size) | |
790 | __field(xfs_fsize_t, new_size) | |
791 | __field(loff_t, offset) | |
792 | __field(size_t, count) | |
793 | __field(int, flags) | |
794 | ), | |
795 | TP_fast_assign( | |
796 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
797 | __entry->ino = ip->i_ino; | |
798 | __entry->size = ip->i_d.di_size; | |
799 | __entry->new_size = ip->i_new_size; | |
800 | __entry->offset = offset; | |
801 | __entry->count = count; | |
802 | __entry->flags = flags; | |
803 | ), | |
804 | TP_printk("dev %d:%d ino 0x%llx size 0x%llx new_size 0x%llx " | |
805 | "offset 0x%llx count 0x%zx ioflags %s", | |
806 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
807 | __entry->ino, | |
808 | __entry->size, | |
809 | __entry->new_size, | |
810 | __entry->offset, | |
811 | __entry->count, | |
812 | __print_flags(__entry->flags, "|", XFS_IO_FLAGS)) | |
0b1b213f | 813 | ) |
f8adb4d5 LZ |
814 | |
815 | #define DEFINE_RW_EVENT(name) \ | |
816 | DEFINE_EVENT(xfs_file_class, name, \ | |
817 | TP_PROTO(struct xfs_inode *ip, size_t count, loff_t offset, int flags), \ | |
818 | TP_ARGS(ip, count, offset, flags)) | |
0b1b213f CH |
819 | DEFINE_RW_EVENT(xfs_file_read); |
820 | DEFINE_RW_EVENT(xfs_file_buffered_write); | |
821 | DEFINE_RW_EVENT(xfs_file_direct_write); | |
822 | DEFINE_RW_EVENT(xfs_file_splice_read); | |
823 | DEFINE_RW_EVENT(xfs_file_splice_write); | |
824 | ||
f8adb4d5 LZ |
825 | DECLARE_EVENT_CLASS(xfs_page_class, |
826 | TP_PROTO(struct inode *inode, struct page *page, unsigned long off), | |
827 | TP_ARGS(inode, page, off), | |
828 | TP_STRUCT__entry( | |
829 | __field(dev_t, dev) | |
830 | __field(xfs_ino_t, ino) | |
831 | __field(pgoff_t, pgoff) | |
832 | __field(loff_t, size) | |
833 | __field(unsigned long, offset) | |
834 | __field(int, delalloc) | |
835 | __field(int, unmapped) | |
836 | __field(int, unwritten) | |
837 | ), | |
838 | TP_fast_assign( | |
839 | int delalloc = -1, unmapped = -1, unwritten = -1; | |
840 | ||
841 | if (page_has_buffers(page)) | |
842 | xfs_count_page_state(page, &delalloc, | |
843 | &unmapped, &unwritten); | |
844 | __entry->dev = inode->i_sb->s_dev; | |
845 | __entry->ino = XFS_I(inode)->i_ino; | |
846 | __entry->pgoff = page_offset(page); | |
847 | __entry->size = i_size_read(inode); | |
848 | __entry->offset = off; | |
849 | __entry->delalloc = delalloc; | |
850 | __entry->unmapped = unmapped; | |
851 | __entry->unwritten = unwritten; | |
852 | ), | |
853 | TP_printk("dev %d:%d ino 0x%llx pgoff 0x%lx size 0x%llx offset %lx " | |
854 | "delalloc %d unmapped %d unwritten %d", | |
855 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
856 | __entry->ino, | |
857 | __entry->pgoff, | |
858 | __entry->size, | |
859 | __entry->offset, | |
860 | __entry->delalloc, | |
861 | __entry->unmapped, | |
862 | __entry->unwritten) | |
0b1b213f | 863 | ) |
f8adb4d5 LZ |
864 | |
865 | #define DEFINE_PAGE_EVENT(name) \ | |
866 | DEFINE_EVENT(xfs_page_class, name, \ | |
867 | TP_PROTO(struct inode *inode, struct page *page, unsigned long off), \ | |
868 | TP_ARGS(inode, page, off)) | |
0b1b213f CH |
869 | DEFINE_PAGE_EVENT(xfs_writepage); |
870 | DEFINE_PAGE_EVENT(xfs_releasepage); | |
871 | DEFINE_PAGE_EVENT(xfs_invalidatepage); | |
872 | ||
f8adb4d5 LZ |
873 | DECLARE_EVENT_CLASS(xfs_iomap_class, |
874 | TP_PROTO(struct xfs_inode *ip, xfs_off_t offset, ssize_t count, | |
875 | int flags, struct xfs_bmbt_irec *irec), | |
876 | TP_ARGS(ip, offset, count, flags, irec), | |
877 | TP_STRUCT__entry( | |
878 | __field(dev_t, dev) | |
879 | __field(xfs_ino_t, ino) | |
880 | __field(loff_t, size) | |
881 | __field(loff_t, new_size) | |
882 | __field(loff_t, offset) | |
883 | __field(size_t, count) | |
884 | __field(int, flags) | |
885 | __field(xfs_fileoff_t, startoff) | |
886 | __field(xfs_fsblock_t, startblock) | |
887 | __field(xfs_filblks_t, blockcount) | |
888 | ), | |
889 | TP_fast_assign( | |
890 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
891 | __entry->ino = ip->i_ino; | |
892 | __entry->size = ip->i_d.di_size; | |
893 | __entry->new_size = ip->i_new_size; | |
894 | __entry->offset = offset; | |
895 | __entry->count = count; | |
896 | __entry->flags = flags; | |
897 | __entry->startoff = irec ? irec->br_startoff : 0; | |
898 | __entry->startblock = irec ? irec->br_startblock : 0; | |
899 | __entry->blockcount = irec ? irec->br_blockcount : 0; | |
900 | ), | |
901 | TP_printk("dev %d:%d ino 0x%llx size 0x%llx new_size 0x%llx " | |
902 | "offset 0x%llx count %zd flags %s " | |
903 | "startoff 0x%llx startblock %lld blockcount 0x%llx", | |
904 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
905 | __entry->ino, | |
906 | __entry->size, | |
907 | __entry->new_size, | |
908 | __entry->offset, | |
909 | __entry->count, | |
910 | __print_flags(__entry->flags, "|", BMAPI_FLAGS), | |
911 | __entry->startoff, | |
912 | (__int64_t)__entry->startblock, | |
913 | __entry->blockcount) | |
0b1b213f | 914 | ) |
f8adb4d5 LZ |
915 | |
916 | #define DEFINE_IOMAP_EVENT(name) \ | |
917 | DEFINE_EVENT(xfs_iomap_class, name, \ | |
918 | TP_PROTO(struct xfs_inode *ip, xfs_off_t offset, ssize_t count, \ | |
919 | int flags, struct xfs_bmbt_irec *irec), \ | |
920 | TP_ARGS(ip, offset, count, flags, irec)) | |
0b1b213f CH |
921 | DEFINE_IOMAP_EVENT(xfs_iomap_enter); |
922 | DEFINE_IOMAP_EVENT(xfs_iomap_found); | |
923 | DEFINE_IOMAP_EVENT(xfs_iomap_alloc); | |
924 | ||
f8adb4d5 LZ |
925 | DECLARE_EVENT_CLASS(xfs_simple_io_class, |
926 | TP_PROTO(struct xfs_inode *ip, xfs_off_t offset, ssize_t count), | |
927 | TP_ARGS(ip, offset, count), | |
928 | TP_STRUCT__entry( | |
929 | __field(dev_t, dev) | |
930 | __field(xfs_ino_t, ino) | |
931 | __field(loff_t, size) | |
932 | __field(loff_t, new_size) | |
933 | __field(loff_t, offset) | |
934 | __field(size_t, count) | |
935 | ), | |
936 | TP_fast_assign( | |
937 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
938 | __entry->ino = ip->i_ino; | |
939 | __entry->size = ip->i_d.di_size; | |
940 | __entry->new_size = ip->i_new_size; | |
941 | __entry->offset = offset; | |
942 | __entry->count = count; | |
943 | ), | |
944 | TP_printk("dev %d:%d ino 0x%llx size 0x%llx new_size 0x%llx " | |
945 | "offset 0x%llx count %zd", | |
946 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
947 | __entry->ino, | |
948 | __entry->size, | |
949 | __entry->new_size, | |
950 | __entry->offset, | |
951 | __entry->count) | |
0b1b213f | 952 | ); |
f8adb4d5 LZ |
953 | |
954 | #define DEFINE_SIMPLE_IO_EVENT(name) \ | |
955 | DEFINE_EVENT(xfs_simple_io_class, name, \ | |
956 | TP_PROTO(struct xfs_inode *ip, xfs_off_t offset, ssize_t count), \ | |
957 | TP_ARGS(ip, offset, count)) | |
0b1b213f CH |
958 | DEFINE_SIMPLE_IO_EVENT(xfs_delalloc_enospc); |
959 | DEFINE_SIMPLE_IO_EVENT(xfs_unwritten_convert); | |
960 | ||
961 | ||
962 | TRACE_EVENT(xfs_itruncate_start, | |
963 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size, int flag, | |
964 | xfs_off_t toss_start, xfs_off_t toss_finish), | |
965 | TP_ARGS(ip, new_size, flag, toss_start, toss_finish), | |
966 | TP_STRUCT__entry( | |
967 | __field(dev_t, dev) | |
968 | __field(xfs_ino_t, ino) | |
969 | __field(xfs_fsize_t, size) | |
970 | __field(xfs_fsize_t, new_size) | |
971 | __field(xfs_off_t, toss_start) | |
972 | __field(xfs_off_t, toss_finish) | |
973 | __field(int, flag) | |
974 | ), | |
975 | TP_fast_assign( | |
976 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
977 | __entry->ino = ip->i_ino; | |
978 | __entry->size = ip->i_d.di_size; | |
979 | __entry->new_size = new_size; | |
980 | __entry->toss_start = toss_start; | |
981 | __entry->toss_finish = toss_finish; | |
982 | __entry->flag = flag; | |
983 | ), | |
984 | TP_printk("dev %d:%d ino 0x%llx %s size 0x%llx new_size 0x%llx " | |
985 | "toss start 0x%llx toss finish 0x%llx", | |
986 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
987 | __entry->ino, | |
988 | __print_flags(__entry->flag, "|", XFS_ITRUNC_FLAGS), | |
989 | __entry->size, | |
990 | __entry->new_size, | |
991 | __entry->toss_start, | |
992 | __entry->toss_finish) | |
993 | ); | |
994 | ||
ea9a4888 CH |
995 | DECLARE_EVENT_CLASS(xfs_itrunc_class, |
996 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size), | |
997 | TP_ARGS(ip, new_size), | |
998 | TP_STRUCT__entry( | |
999 | __field(dev_t, dev) | |
1000 | __field(xfs_ino_t, ino) | |
1001 | __field(xfs_fsize_t, size) | |
1002 | __field(xfs_fsize_t, new_size) | |
1003 | ), | |
1004 | TP_fast_assign( | |
1005 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
1006 | __entry->ino = ip->i_ino; | |
1007 | __entry->size = ip->i_d.di_size; | |
1008 | __entry->new_size = new_size; | |
1009 | ), | |
1010 | TP_printk("dev %d:%d ino 0x%llx size 0x%llx new_size 0x%llx", | |
1011 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1012 | __entry->ino, | |
1013 | __entry->size, | |
1014 | __entry->new_size) | |
1015 | ) | |
1016 | ||
0b1b213f | 1017 | #define DEFINE_ITRUNC_EVENT(name) \ |
ea9a4888 | 1018 | DEFINE_EVENT(xfs_itrunc_class, name, \ |
0b1b213f | 1019 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size), \ |
ea9a4888 | 1020 | TP_ARGS(ip, new_size)) |
0b1b213f CH |
1021 | DEFINE_ITRUNC_EVENT(xfs_itruncate_finish_start); |
1022 | DEFINE_ITRUNC_EVENT(xfs_itruncate_finish_end); | |
1023 | ||
1024 | TRACE_EVENT(xfs_pagecache_inval, | |
1025 | TP_PROTO(struct xfs_inode *ip, xfs_off_t start, xfs_off_t finish), | |
1026 | TP_ARGS(ip, start, finish), | |
1027 | TP_STRUCT__entry( | |
1028 | __field(dev_t, dev) | |
1029 | __field(xfs_ino_t, ino) | |
1030 | __field(xfs_fsize_t, size) | |
1031 | __field(xfs_off_t, start) | |
1032 | __field(xfs_off_t, finish) | |
1033 | ), | |
1034 | TP_fast_assign( | |
1035 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
1036 | __entry->ino = ip->i_ino; | |
1037 | __entry->size = ip->i_d.di_size; | |
1038 | __entry->start = start; | |
1039 | __entry->finish = finish; | |
1040 | ), | |
1041 | TP_printk("dev %d:%d ino 0x%llx size 0x%llx start 0x%llx finish 0x%llx", | |
1042 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1043 | __entry->ino, | |
1044 | __entry->size, | |
1045 | __entry->start, | |
1046 | __entry->finish) | |
1047 | ); | |
1048 | ||
1049 | TRACE_EVENT(xfs_bunmap, | |
1050 | TP_PROTO(struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, | |
1051 | int flags, unsigned long caller_ip), | |
1052 | TP_ARGS(ip, bno, len, flags, caller_ip), | |
1053 | TP_STRUCT__entry( | |
1054 | __field(dev_t, dev) | |
1055 | __field(xfs_ino_t, ino) | |
1056 | __field(xfs_fsize_t, size) | |
1057 | __field(xfs_fileoff_t, bno) | |
1058 | __field(xfs_filblks_t, len) | |
1059 | __field(unsigned long, caller_ip) | |
1060 | __field(int, flags) | |
1061 | ), | |
1062 | TP_fast_assign( | |
1063 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
1064 | __entry->ino = ip->i_ino; | |
1065 | __entry->size = ip->i_d.di_size; | |
1066 | __entry->bno = bno; | |
1067 | __entry->len = len; | |
1068 | __entry->caller_ip = caller_ip; | |
1069 | __entry->flags = flags; | |
1070 | ), | |
1071 | TP_printk("dev %d:%d ino 0x%llx size 0x%llx bno 0x%llx len 0x%llx" | |
1072 | "flags %s caller %pf", | |
1073 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1074 | __entry->ino, | |
1075 | __entry->size, | |
1076 | __entry->bno, | |
1077 | __entry->len, | |
1078 | __print_flags(__entry->flags, "|", XFS_BMAPI_FLAGS), | |
1079 | (void *)__entry->caller_ip) | |
1080 | ||
1081 | ); | |
1082 | ||
ed3b4d6c DC |
1083 | #define XFS_BUSY_SYNC \ |
1084 | { 0, "async" }, \ | |
1085 | { 1, "sync" } | |
1086 | ||
0b1b213f | 1087 | TRACE_EVENT(xfs_alloc_busy, |
ed3b4d6c DC |
1088 | TP_PROTO(struct xfs_trans *trans, xfs_agnumber_t agno, |
1089 | xfs_agblock_t agbno, xfs_extlen_t len, int sync), | |
1090 | TP_ARGS(trans, agno, agbno, len, sync), | |
0b1b213f CH |
1091 | TP_STRUCT__entry( |
1092 | __field(dev_t, dev) | |
ed3b4d6c DC |
1093 | __field(struct xfs_trans *, tp) |
1094 | __field(int, tid) | |
0b1b213f CH |
1095 | __field(xfs_agnumber_t, agno) |
1096 | __field(xfs_agblock_t, agbno) | |
1097 | __field(xfs_extlen_t, len) | |
ed3b4d6c | 1098 | __field(int, sync) |
0b1b213f CH |
1099 | ), |
1100 | TP_fast_assign( | |
ed3b4d6c DC |
1101 | __entry->dev = trans->t_mountp->m_super->s_dev; |
1102 | __entry->tp = trans; | |
1103 | __entry->tid = trans->t_ticket->t_tid; | |
0b1b213f CH |
1104 | __entry->agno = agno; |
1105 | __entry->agbno = agbno; | |
1106 | __entry->len = len; | |
ed3b4d6c | 1107 | __entry->sync = sync; |
0b1b213f | 1108 | ), |
ed3b4d6c | 1109 | TP_printk("dev %d:%d trans 0x%p tid 0x%x agno %u agbno %u len %u %s", |
0b1b213f | 1110 | MAJOR(__entry->dev), MINOR(__entry->dev), |
ed3b4d6c DC |
1111 | __entry->tp, |
1112 | __entry->tid, | |
0b1b213f CH |
1113 | __entry->agno, |
1114 | __entry->agbno, | |
1115 | __entry->len, | |
ed3b4d6c | 1116 | __print_symbolic(__entry->sync, XFS_BUSY_SYNC)) |
0b1b213f CH |
1117 | |
1118 | ); | |
1119 | ||
0b1b213f CH |
1120 | TRACE_EVENT(xfs_alloc_unbusy, |
1121 | TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, | |
ed3b4d6c DC |
1122 | xfs_agblock_t agbno, xfs_extlen_t len), |
1123 | TP_ARGS(mp, agno, agbno, len), | |
0b1b213f CH |
1124 | TP_STRUCT__entry( |
1125 | __field(dev_t, dev) | |
1126 | __field(xfs_agnumber_t, agno) | |
ed3b4d6c DC |
1127 | __field(xfs_agblock_t, agbno) |
1128 | __field(xfs_extlen_t, len) | |
0b1b213f CH |
1129 | ), |
1130 | TP_fast_assign( | |
1131 | __entry->dev = mp->m_super->s_dev; | |
1132 | __entry->agno = agno; | |
ed3b4d6c DC |
1133 | __entry->agbno = agbno; |
1134 | __entry->len = len; | |
0b1b213f | 1135 | ), |
ed3b4d6c | 1136 | TP_printk("dev %d:%d agno %u agbno %u len %u", |
0b1b213f CH |
1137 | MAJOR(__entry->dev), MINOR(__entry->dev), |
1138 | __entry->agno, | |
ed3b4d6c DC |
1139 | __entry->agbno, |
1140 | __entry->len) | |
0b1b213f CH |
1141 | ); |
1142 | ||
ed3b4d6c DC |
1143 | #define XFS_BUSY_STATES \ |
1144 | { 0, "missing" }, \ | |
1145 | { 1, "found" } | |
1146 | ||
0b1b213f | 1147 | TRACE_EVENT(xfs_alloc_busysearch, |
ed3b4d6c DC |
1148 | TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, |
1149 | xfs_agblock_t agbno, xfs_extlen_t len, int found), | |
1150 | TP_ARGS(mp, agno, agbno, len, found), | |
0b1b213f CH |
1151 | TP_STRUCT__entry( |
1152 | __field(dev_t, dev) | |
1153 | __field(xfs_agnumber_t, agno) | |
1154 | __field(xfs_agblock_t, agbno) | |
1155 | __field(xfs_extlen_t, len) | |
ed3b4d6c | 1156 | __field(int, found) |
0b1b213f CH |
1157 | ), |
1158 | TP_fast_assign( | |
1159 | __entry->dev = mp->m_super->s_dev; | |
1160 | __entry->agno = agno; | |
1161 | __entry->agbno = agbno; | |
1162 | __entry->len = len; | |
ed3b4d6c | 1163 | __entry->found = found; |
0b1b213f | 1164 | ), |
ed3b4d6c | 1165 | TP_printk("dev %d:%d agno %u agbno %u len %u %s", |
0b1b213f CH |
1166 | MAJOR(__entry->dev), MINOR(__entry->dev), |
1167 | __entry->agno, | |
1168 | __entry->agbno, | |
1169 | __entry->len, | |
ed3b4d6c DC |
1170 | __print_symbolic(__entry->found, XFS_BUSY_STATES)) |
1171 | ); | |
1172 | ||
1173 | TRACE_EVENT(xfs_trans_commit_lsn, | |
1174 | TP_PROTO(struct xfs_trans *trans), | |
1175 | TP_ARGS(trans), | |
1176 | TP_STRUCT__entry( | |
1177 | __field(dev_t, dev) | |
1178 | __field(struct xfs_trans *, tp) | |
1179 | __field(xfs_lsn_t, lsn) | |
1180 | ), | |
1181 | TP_fast_assign( | |
1182 | __entry->dev = trans->t_mountp->m_super->s_dev; | |
1183 | __entry->tp = trans; | |
1184 | __entry->lsn = trans->t_commit_lsn; | |
1185 | ), | |
1186 | TP_printk("dev %d:%d trans 0x%p commit_lsn 0x%llx", | |
1187 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1188 | __entry->tp, | |
fd45e478 | 1189 | __entry->lsn) |
0b1b213f CH |
1190 | ); |
1191 | ||
1192 | TRACE_EVENT(xfs_agf, | |
1193 | TP_PROTO(struct xfs_mount *mp, struct xfs_agf *agf, int flags, | |
1194 | unsigned long caller_ip), | |
1195 | TP_ARGS(mp, agf, flags, caller_ip), | |
1196 | TP_STRUCT__entry( | |
1197 | __field(dev_t, dev) | |
1198 | __field(xfs_agnumber_t, agno) | |
1199 | __field(int, flags) | |
1200 | __field(__u32, length) | |
1201 | __field(__u32, bno_root) | |
1202 | __field(__u32, cnt_root) | |
1203 | __field(__u32, bno_level) | |
1204 | __field(__u32, cnt_level) | |
1205 | __field(__u32, flfirst) | |
1206 | __field(__u32, fllast) | |
1207 | __field(__u32, flcount) | |
1208 | __field(__u32, freeblks) | |
1209 | __field(__u32, longest) | |
1210 | __field(unsigned long, caller_ip) | |
1211 | ), | |
1212 | TP_fast_assign( | |
1213 | __entry->dev = mp->m_super->s_dev; | |
1214 | __entry->agno = be32_to_cpu(agf->agf_seqno), | |
1215 | __entry->flags = flags; | |
1216 | __entry->length = be32_to_cpu(agf->agf_length), | |
1217 | __entry->bno_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_BNO]), | |
1218 | __entry->cnt_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_CNT]), | |
1219 | __entry->bno_level = | |
1220 | be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]), | |
1221 | __entry->cnt_level = | |
1222 | be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]), | |
1223 | __entry->flfirst = be32_to_cpu(agf->agf_flfirst), | |
1224 | __entry->fllast = be32_to_cpu(agf->agf_fllast), | |
1225 | __entry->flcount = be32_to_cpu(agf->agf_flcount), | |
1226 | __entry->freeblks = be32_to_cpu(agf->agf_freeblks), | |
1227 | __entry->longest = be32_to_cpu(agf->agf_longest); | |
1228 | __entry->caller_ip = caller_ip; | |
1229 | ), | |
1230 | TP_printk("dev %d:%d agno %u flags %s length %u roots b %u c %u " | |
1231 | "levels b %u c %u flfirst %u fllast %u flcount %u " | |
1232 | "freeblks %u longest %u caller %pf", | |
1233 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1234 | __entry->agno, | |
1235 | __print_flags(__entry->flags, "|", XFS_AGF_FLAGS), | |
1236 | __entry->length, | |
1237 | __entry->bno_root, | |
1238 | __entry->cnt_root, | |
1239 | __entry->bno_level, | |
1240 | __entry->cnt_level, | |
1241 | __entry->flfirst, | |
1242 | __entry->fllast, | |
1243 | __entry->flcount, | |
1244 | __entry->freeblks, | |
1245 | __entry->longest, | |
1246 | (void *)__entry->caller_ip) | |
1247 | ); | |
1248 | ||
1249 | TRACE_EVENT(xfs_free_extent, | |
1250 | TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno, | |
1251 | xfs_extlen_t len, bool isfl, int haveleft, int haveright), | |
1252 | TP_ARGS(mp, agno, agbno, len, isfl, haveleft, haveright), | |
1253 | TP_STRUCT__entry( | |
1254 | __field(dev_t, dev) | |
1255 | __field(xfs_agnumber_t, agno) | |
1256 | __field(xfs_agblock_t, agbno) | |
1257 | __field(xfs_extlen_t, len) | |
1258 | __field(int, isfl) | |
1259 | __field(int, haveleft) | |
1260 | __field(int, haveright) | |
1261 | ), | |
1262 | TP_fast_assign( | |
1263 | __entry->dev = mp->m_super->s_dev; | |
1264 | __entry->agno = agno; | |
1265 | __entry->agbno = agbno; | |
1266 | __entry->len = len; | |
1267 | __entry->isfl = isfl; | |
1268 | __entry->haveleft = haveleft; | |
1269 | __entry->haveright = haveright; | |
1270 | ), | |
1271 | TP_printk("dev %d:%d agno %u agbno %u len %u isfl %d %s", | |
1272 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1273 | __entry->agno, | |
1274 | __entry->agbno, | |
1275 | __entry->len, | |
1276 | __entry->isfl, | |
1277 | __entry->haveleft ? | |
1278 | (__entry->haveright ? "both" : "left") : | |
1279 | (__entry->haveright ? "right" : "none")) | |
1280 | ||
1281 | ); | |
1282 | ||
ea9a4888 CH |
1283 | DECLARE_EVENT_CLASS(xfs_alloc_class, |
1284 | TP_PROTO(struct xfs_alloc_arg *args), | |
1285 | TP_ARGS(args), | |
1286 | TP_STRUCT__entry( | |
1287 | __field(dev_t, dev) | |
1288 | __field(xfs_agnumber_t, agno) | |
1289 | __field(xfs_agblock_t, agbno) | |
1290 | __field(xfs_extlen_t, minlen) | |
1291 | __field(xfs_extlen_t, maxlen) | |
1292 | __field(xfs_extlen_t, mod) | |
1293 | __field(xfs_extlen_t, prod) | |
1294 | __field(xfs_extlen_t, minleft) | |
1295 | __field(xfs_extlen_t, total) | |
1296 | __field(xfs_extlen_t, alignment) | |
1297 | __field(xfs_extlen_t, minalignslop) | |
1298 | __field(xfs_extlen_t, len) | |
1299 | __field(short, type) | |
1300 | __field(short, otype) | |
1301 | __field(char, wasdel) | |
1302 | __field(char, wasfromfl) | |
1303 | __field(char, isfl) | |
1304 | __field(char, userdata) | |
1305 | __field(xfs_fsblock_t, firstblock) | |
1306 | ), | |
1307 | TP_fast_assign( | |
1308 | __entry->dev = args->mp->m_super->s_dev; | |
1309 | __entry->agno = args->agno; | |
1310 | __entry->agbno = args->agbno; | |
1311 | __entry->minlen = args->minlen; | |
1312 | __entry->maxlen = args->maxlen; | |
1313 | __entry->mod = args->mod; | |
1314 | __entry->prod = args->prod; | |
1315 | __entry->minleft = args->minleft; | |
1316 | __entry->total = args->total; | |
1317 | __entry->alignment = args->alignment; | |
1318 | __entry->minalignslop = args->minalignslop; | |
1319 | __entry->len = args->len; | |
1320 | __entry->type = args->type; | |
1321 | __entry->otype = args->otype; | |
1322 | __entry->wasdel = args->wasdel; | |
1323 | __entry->wasfromfl = args->wasfromfl; | |
1324 | __entry->isfl = args->isfl; | |
1325 | __entry->userdata = args->userdata; | |
1326 | __entry->firstblock = args->firstblock; | |
1327 | ), | |
1328 | TP_printk("dev %d:%d agno %u agbno %u minlen %u maxlen %u mod %u " | |
1329 | "prod %u minleft %u total %u alignment %u minalignslop %u " | |
1330 | "len %u type %s otype %s wasdel %d wasfromfl %d isfl %d " | |
1331 | "userdata %d firstblock 0x%llx", | |
1332 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1333 | __entry->agno, | |
1334 | __entry->agbno, | |
1335 | __entry->minlen, | |
1336 | __entry->maxlen, | |
1337 | __entry->mod, | |
1338 | __entry->prod, | |
1339 | __entry->minleft, | |
1340 | __entry->total, | |
1341 | __entry->alignment, | |
1342 | __entry->minalignslop, | |
1343 | __entry->len, | |
1344 | __print_symbolic(__entry->type, XFS_ALLOC_TYPES), | |
1345 | __print_symbolic(__entry->otype, XFS_ALLOC_TYPES), | |
1346 | __entry->wasdel, | |
1347 | __entry->wasfromfl, | |
1348 | __entry->isfl, | |
1349 | __entry->userdata, | |
1350 | __entry->firstblock) | |
0b1b213f CH |
1351 | ) |
1352 | ||
ea9a4888 CH |
1353 | #define DEFINE_ALLOC_EVENT(name) \ |
1354 | DEFINE_EVENT(xfs_alloc_class, name, \ | |
1355 | TP_PROTO(struct xfs_alloc_arg *args), \ | |
1356 | TP_ARGS(args)) | |
0b1b213f CH |
1357 | DEFINE_ALLOC_EVENT(xfs_alloc_exact_done); |
1358 | DEFINE_ALLOC_EVENT(xfs_alloc_exact_error); | |
1359 | DEFINE_ALLOC_EVENT(xfs_alloc_near_nominleft); | |
1360 | DEFINE_ALLOC_EVENT(xfs_alloc_near_first); | |
1361 | DEFINE_ALLOC_EVENT(xfs_alloc_near_greater); | |
1362 | DEFINE_ALLOC_EVENT(xfs_alloc_near_lesser); | |
1363 | DEFINE_ALLOC_EVENT(xfs_alloc_near_error); | |
1364 | DEFINE_ALLOC_EVENT(xfs_alloc_size_neither); | |
1365 | DEFINE_ALLOC_EVENT(xfs_alloc_size_noentry); | |
1366 | DEFINE_ALLOC_EVENT(xfs_alloc_size_nominleft); | |
1367 | DEFINE_ALLOC_EVENT(xfs_alloc_size_done); | |
1368 | DEFINE_ALLOC_EVENT(xfs_alloc_size_error); | |
1369 | DEFINE_ALLOC_EVENT(xfs_alloc_small_freelist); | |
1370 | DEFINE_ALLOC_EVENT(xfs_alloc_small_notenough); | |
1371 | DEFINE_ALLOC_EVENT(xfs_alloc_small_done); | |
1372 | DEFINE_ALLOC_EVENT(xfs_alloc_small_error); | |
1373 | DEFINE_ALLOC_EVENT(xfs_alloc_vextent_badargs); | |
1374 | DEFINE_ALLOC_EVENT(xfs_alloc_vextent_nofix); | |
1375 | DEFINE_ALLOC_EVENT(xfs_alloc_vextent_noagbp); | |
1376 | DEFINE_ALLOC_EVENT(xfs_alloc_vextent_loopfailed); | |
1377 | DEFINE_ALLOC_EVENT(xfs_alloc_vextent_allfailed); | |
1378 | ||
ea9a4888 CH |
1379 | DECLARE_EVENT_CLASS(xfs_dir2_class, |
1380 | TP_PROTO(struct xfs_da_args *args), | |
1381 | TP_ARGS(args), | |
1382 | TP_STRUCT__entry( | |
1383 | __field(dev_t, dev) | |
1384 | __field(xfs_ino_t, ino) | |
1385 | __dynamic_array(char, name, args->namelen) | |
1386 | __field(int, namelen) | |
1387 | __field(xfs_dahash_t, hashval) | |
1388 | __field(xfs_ino_t, inumber) | |
1389 | __field(int, op_flags) | |
1390 | ), | |
1391 | TP_fast_assign( | |
1392 | __entry->dev = VFS_I(args->dp)->i_sb->s_dev; | |
1393 | __entry->ino = args->dp->i_ino; | |
1394 | if (args->namelen) | |
1395 | memcpy(__get_str(name), args->name, args->namelen); | |
1396 | __entry->namelen = args->namelen; | |
1397 | __entry->hashval = args->hashval; | |
1398 | __entry->inumber = args->inumber; | |
1399 | __entry->op_flags = args->op_flags; | |
1400 | ), | |
1401 | TP_printk("dev %d:%d ino 0x%llx name %.*s namelen %d hashval 0x%x " | |
1402 | "inumber 0x%llx op_flags %s", | |
1403 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1404 | __entry->ino, | |
1405 | __entry->namelen, | |
1406 | __entry->namelen ? __get_str(name) : NULL, | |
1407 | __entry->namelen, | |
1408 | __entry->hashval, | |
1409 | __entry->inumber, | |
1410 | __print_flags(__entry->op_flags, "|", XFS_DA_OP_FLAGS)) | |
1411 | ) | |
1412 | ||
1413 | #define DEFINE_DIR2_EVENT(name) \ | |
1414 | DEFINE_EVENT(xfs_dir2_class, name, \ | |
0b1b213f | 1415 | TP_PROTO(struct xfs_da_args *args), \ |
ea9a4888 CH |
1416 | TP_ARGS(args)) |
1417 | DEFINE_DIR2_EVENT(xfs_dir2_sf_addname); | |
1418 | DEFINE_DIR2_EVENT(xfs_dir2_sf_create); | |
1419 | DEFINE_DIR2_EVENT(xfs_dir2_sf_lookup); | |
1420 | DEFINE_DIR2_EVENT(xfs_dir2_sf_replace); | |
1421 | DEFINE_DIR2_EVENT(xfs_dir2_sf_removename); | |
1422 | DEFINE_DIR2_EVENT(xfs_dir2_sf_toino4); | |
1423 | DEFINE_DIR2_EVENT(xfs_dir2_sf_toino8); | |
1424 | DEFINE_DIR2_EVENT(xfs_dir2_sf_to_block); | |
1425 | DEFINE_DIR2_EVENT(xfs_dir2_block_addname); | |
1426 | DEFINE_DIR2_EVENT(xfs_dir2_block_lookup); | |
1427 | DEFINE_DIR2_EVENT(xfs_dir2_block_replace); | |
1428 | DEFINE_DIR2_EVENT(xfs_dir2_block_removename); | |
1429 | DEFINE_DIR2_EVENT(xfs_dir2_block_to_sf); | |
1430 | DEFINE_DIR2_EVENT(xfs_dir2_block_to_leaf); | |
1431 | DEFINE_DIR2_EVENT(xfs_dir2_leaf_addname); | |
1432 | DEFINE_DIR2_EVENT(xfs_dir2_leaf_lookup); | |
1433 | DEFINE_DIR2_EVENT(xfs_dir2_leaf_replace); | |
1434 | DEFINE_DIR2_EVENT(xfs_dir2_leaf_removename); | |
1435 | DEFINE_DIR2_EVENT(xfs_dir2_leaf_to_block); | |
1436 | DEFINE_DIR2_EVENT(xfs_dir2_leaf_to_node); | |
1437 | DEFINE_DIR2_EVENT(xfs_dir2_node_addname); | |
1438 | DEFINE_DIR2_EVENT(xfs_dir2_node_lookup); | |
1439 | DEFINE_DIR2_EVENT(xfs_dir2_node_replace); | |
1440 | DEFINE_DIR2_EVENT(xfs_dir2_node_removename); | |
1441 | DEFINE_DIR2_EVENT(xfs_dir2_node_to_leaf); | |
1442 | ||
1443 | DECLARE_EVENT_CLASS(xfs_dir2_space_class, | |
1444 | TP_PROTO(struct xfs_da_args *args, int idx), | |
1445 | TP_ARGS(args, idx), | |
1446 | TP_STRUCT__entry( | |
1447 | __field(dev_t, dev) | |
1448 | __field(xfs_ino_t, ino) | |
1449 | __field(int, op_flags) | |
1450 | __field(int, idx) | |
1451 | ), | |
1452 | TP_fast_assign( | |
1453 | __entry->dev = VFS_I(args->dp)->i_sb->s_dev; | |
1454 | __entry->ino = args->dp->i_ino; | |
1455 | __entry->op_flags = args->op_flags; | |
1456 | __entry->idx = idx; | |
1457 | ), | |
1458 | TP_printk("dev %d:%d ino 0x%llx op_flags %s index %d", | |
1459 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1460 | __entry->ino, | |
1461 | __print_flags(__entry->op_flags, "|", XFS_DA_OP_FLAGS), | |
1462 | __entry->idx) | |
0b1b213f | 1463 | ) |
0b1b213f | 1464 | |
ea9a4888 CH |
1465 | #define DEFINE_DIR2_SPACE_EVENT(name) \ |
1466 | DEFINE_EVENT(xfs_dir2_space_class, name, \ | |
0b1b213f | 1467 | TP_PROTO(struct xfs_da_args *args, int idx), \ |
ea9a4888 CH |
1468 | TP_ARGS(args, idx)) |
1469 | DEFINE_DIR2_SPACE_EVENT(xfs_dir2_leafn_add); | |
1470 | DEFINE_DIR2_SPACE_EVENT(xfs_dir2_leafn_remove); | |
1471 | DEFINE_DIR2_SPACE_EVENT(xfs_dir2_grow_inode); | |
1472 | DEFINE_DIR2_SPACE_EVENT(xfs_dir2_shrink_inode); | |
0b1b213f CH |
1473 | |
1474 | TRACE_EVENT(xfs_dir2_leafn_moveents, | |
1475 | TP_PROTO(struct xfs_da_args *args, int src_idx, int dst_idx, int count), | |
1476 | TP_ARGS(args, src_idx, dst_idx, count), | |
1477 | TP_STRUCT__entry( | |
1478 | __field(dev_t, dev) | |
1479 | __field(xfs_ino_t, ino) | |
1480 | __field(int, op_flags) | |
1481 | __field(int, src_idx) | |
1482 | __field(int, dst_idx) | |
1483 | __field(int, count) | |
1484 | ), | |
1485 | TP_fast_assign( | |
1486 | __entry->dev = VFS_I(args->dp)->i_sb->s_dev; | |
1487 | __entry->ino = args->dp->i_ino; | |
1488 | __entry->op_flags = args->op_flags; | |
1489 | __entry->src_idx = src_idx; | |
1490 | __entry->dst_idx = dst_idx; | |
1491 | __entry->count = count; | |
1492 | ), | |
1493 | TP_printk("dev %d:%d ino 0x%llx op_flags %s " | |
1494 | "src_idx %d dst_idx %d count %d", | |
1495 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1496 | __entry->ino, | |
1497 | __print_flags(__entry->op_flags, "|", XFS_DA_OP_FLAGS), | |
1498 | __entry->src_idx, | |
1499 | __entry->dst_idx, | |
1500 | __entry->count) | |
1501 | ); | |
1502 | ||
3a85cd96 DC |
1503 | #define XFS_SWAPEXT_INODES \ |
1504 | { 0, "target" }, \ | |
1505 | { 1, "temp" } | |
1506 | ||
1507 | #define XFS_INODE_FORMAT_STR \ | |
1508 | { 0, "invalid" }, \ | |
1509 | { 1, "local" }, \ | |
1510 | { 2, "extent" }, \ | |
1511 | { 3, "btree" } | |
1512 | ||
1513 | DECLARE_EVENT_CLASS(xfs_swap_extent_class, | |
1514 | TP_PROTO(struct xfs_inode *ip, int which), | |
1515 | TP_ARGS(ip, which), | |
1516 | TP_STRUCT__entry( | |
1517 | __field(dev_t, dev) | |
1518 | __field(int, which) | |
1519 | __field(xfs_ino_t, ino) | |
1520 | __field(int, format) | |
1521 | __field(int, nex) | |
1522 | __field(int, max_nex) | |
1523 | __field(int, broot_size) | |
1524 | __field(int, fork_off) | |
1525 | ), | |
1526 | TP_fast_assign( | |
1527 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | |
1528 | __entry->which = which; | |
1529 | __entry->ino = ip->i_ino; | |
1530 | __entry->format = ip->i_d.di_format; | |
1531 | __entry->nex = ip->i_d.di_nextents; | |
1532 | __entry->max_nex = ip->i_df.if_ext_max; | |
1533 | __entry->broot_size = ip->i_df.if_broot_bytes; | |
1534 | __entry->fork_off = XFS_IFORK_BOFF(ip); | |
1535 | ), | |
1536 | TP_printk("dev %d:%d ino 0x%llx (%s), %s format, num_extents %d, " | |
1537 | "Max in-fork extents %d, broot size %d, fork offset %d", | |
1538 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1539 | __entry->ino, | |
1540 | __print_symbolic(__entry->which, XFS_SWAPEXT_INODES), | |
1541 | __print_symbolic(__entry->format, XFS_INODE_FORMAT_STR), | |
1542 | __entry->nex, | |
1543 | __entry->max_nex, | |
1544 | __entry->broot_size, | |
1545 | __entry->fork_off) | |
1546 | ) | |
1547 | ||
1548 | #define DEFINE_SWAPEXT_EVENT(name) \ | |
1549 | DEFINE_EVENT(xfs_swap_extent_class, name, \ | |
1550 | TP_PROTO(struct xfs_inode *ip, int which), \ | |
1551 | TP_ARGS(ip, which)) | |
1552 | ||
1553 | DEFINE_SWAPEXT_EVENT(xfs_swap_extent_before); | |
1554 | DEFINE_SWAPEXT_EVENT(xfs_swap_extent_after); | |
1555 | ||
9abbc539 DC |
1556 | DECLARE_EVENT_CLASS(xfs_log_recover_item_class, |
1557 | TP_PROTO(struct log *log, struct xlog_recover *trans, | |
1558 | struct xlog_recover_item *item, int pass), | |
1559 | TP_ARGS(log, trans, item, pass), | |
1560 | TP_STRUCT__entry( | |
1561 | __field(dev_t, dev) | |
1562 | __field(unsigned long, item) | |
1563 | __field(xlog_tid_t, tid) | |
1564 | __field(int, type) | |
1565 | __field(int, pass) | |
1566 | __field(int, count) | |
1567 | __field(int, total) | |
1568 | ), | |
1569 | TP_fast_assign( | |
1570 | __entry->dev = log->l_mp->m_super->s_dev; | |
1571 | __entry->item = (unsigned long)item; | |
1572 | __entry->tid = trans->r_log_tid; | |
1573 | __entry->type = ITEM_TYPE(item); | |
1574 | __entry->pass = pass; | |
1575 | __entry->count = item->ri_cnt; | |
1576 | __entry->total = item->ri_total; | |
1577 | ), | |
1578 | TP_printk("dev %d:%d trans 0x%x, pass %d, item 0x%p, item type %s " | |
1579 | "item region count/total %d/%d", | |
1580 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1581 | __entry->tid, | |
1582 | __entry->pass, | |
1583 | (void *)__entry->item, | |
1584 | __print_symbolic(__entry->type, XFS_LI_TYPE_DESC), | |
1585 | __entry->count, | |
1586 | __entry->total) | |
1587 | ) | |
1588 | ||
1589 | #define DEFINE_LOG_RECOVER_ITEM(name) \ | |
1590 | DEFINE_EVENT(xfs_log_recover_item_class, name, \ | |
1591 | TP_PROTO(struct log *log, struct xlog_recover *trans, \ | |
1592 | struct xlog_recover_item *item, int pass), \ | |
1593 | TP_ARGS(log, trans, item, pass)) | |
1594 | ||
1595 | DEFINE_LOG_RECOVER_ITEM(xfs_log_recover_item_add); | |
1596 | DEFINE_LOG_RECOVER_ITEM(xfs_log_recover_item_add_cont); | |
1597 | DEFINE_LOG_RECOVER_ITEM(xfs_log_recover_item_reorder_head); | |
1598 | DEFINE_LOG_RECOVER_ITEM(xfs_log_recover_item_reorder_tail); | |
1599 | DEFINE_LOG_RECOVER_ITEM(xfs_log_recover_item_recover); | |
1600 | ||
1601 | DECLARE_EVENT_CLASS(xfs_log_recover_buf_item_class, | |
1602 | TP_PROTO(struct log *log, struct xfs_buf_log_format *buf_f), | |
1603 | TP_ARGS(log, buf_f), | |
1604 | TP_STRUCT__entry( | |
1605 | __field(dev_t, dev) | |
1606 | __field(__int64_t, blkno) | |
1607 | __field(unsigned short, len) | |
1608 | __field(unsigned short, flags) | |
1609 | __field(unsigned short, size) | |
1610 | __field(unsigned int, map_size) | |
1611 | ), | |
1612 | TP_fast_assign( | |
1613 | __entry->dev = log->l_mp->m_super->s_dev; | |
1614 | __entry->blkno = buf_f->blf_blkno; | |
1615 | __entry->len = buf_f->blf_len; | |
1616 | __entry->flags = buf_f->blf_flags; | |
1617 | __entry->size = buf_f->blf_size; | |
1618 | __entry->map_size = buf_f->blf_map_size; | |
1619 | ), | |
1620 | TP_printk("dev %d:%d blkno 0x%llx, len %u, flags 0x%x, size %d, " | |
1621 | "map_size %d", | |
1622 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1623 | __entry->blkno, | |
1624 | __entry->len, | |
1625 | __entry->flags, | |
1626 | __entry->size, | |
1627 | __entry->map_size) | |
1628 | ) | |
1629 | ||
1630 | #define DEFINE_LOG_RECOVER_BUF_ITEM(name) \ | |
1631 | DEFINE_EVENT(xfs_log_recover_buf_item_class, name, \ | |
1632 | TP_PROTO(struct log *log, struct xfs_buf_log_format *buf_f), \ | |
1633 | TP_ARGS(log, buf_f)) | |
1634 | ||
1635 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_not_cancel); | |
1636 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_cancel); | |
1637 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_cancel_add); | |
1638 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_cancel_ref_inc); | |
1639 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_recover); | |
1640 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_inode_buf); | |
1641 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_reg_buf); | |
1642 | DEFINE_LOG_RECOVER_BUF_ITEM(xfs_log_recover_buf_dquot_buf); | |
1643 | ||
1644 | DECLARE_EVENT_CLASS(xfs_log_recover_ino_item_class, | |
1645 | TP_PROTO(struct log *log, struct xfs_inode_log_format *in_f), | |
1646 | TP_ARGS(log, in_f), | |
1647 | TP_STRUCT__entry( | |
1648 | __field(dev_t, dev) | |
1649 | __field(xfs_ino_t, ino) | |
1650 | __field(unsigned short, size) | |
1651 | __field(int, fields) | |
1652 | __field(unsigned short, asize) | |
1653 | __field(unsigned short, dsize) | |
1654 | __field(__int64_t, blkno) | |
1655 | __field(int, len) | |
1656 | __field(int, boffset) | |
1657 | ), | |
1658 | TP_fast_assign( | |
1659 | __entry->dev = log->l_mp->m_super->s_dev; | |
1660 | __entry->ino = in_f->ilf_ino; | |
1661 | __entry->size = in_f->ilf_size; | |
1662 | __entry->fields = in_f->ilf_fields; | |
1663 | __entry->asize = in_f->ilf_asize; | |
1664 | __entry->dsize = in_f->ilf_dsize; | |
1665 | __entry->blkno = in_f->ilf_blkno; | |
1666 | __entry->len = in_f->ilf_len; | |
1667 | __entry->boffset = in_f->ilf_boffset; | |
1668 | ), | |
1669 | TP_printk("dev %d:%d ino 0x%llx, size %u, fields 0x%x, asize %d, " | |
1670 | "dsize %d, blkno 0x%llx, len %d, boffset %d", | |
1671 | MAJOR(__entry->dev), MINOR(__entry->dev), | |
1672 | __entry->ino, | |
1673 | __entry->size, | |
1674 | __entry->fields, | |
1675 | __entry->asize, | |
1676 | __entry->dsize, | |
1677 | __entry->blkno, | |
1678 | __entry->len, | |
1679 | __entry->boffset) | |
1680 | ) | |
1681 | #define DEFINE_LOG_RECOVER_INO_ITEM(name) \ | |
1682 | DEFINE_EVENT(xfs_log_recover_ino_item_class, name, \ | |
1683 | TP_PROTO(struct log *log, struct xfs_inode_log_format *in_f), \ | |
1684 | TP_ARGS(log, in_f)) | |
1685 | ||
1686 | DEFINE_LOG_RECOVER_INO_ITEM(xfs_log_recover_inode_recover); | |
1687 | DEFINE_LOG_RECOVER_INO_ITEM(xfs_log_recover_inode_cancel); | |
1688 | DEFINE_LOG_RECOVER_INO_ITEM(xfs_log_recover_inode_skip); | |
1689 | ||
0b1b213f CH |
1690 | #endif /* _TRACE_XFS_H */ |
1691 | ||
1692 | #undef TRACE_INCLUDE_PATH | |
1693 | #define TRACE_INCLUDE_PATH . | |
1694 | #define TRACE_INCLUDE_FILE xfs_trace | |
1695 | #include <trace/define_trace.h> |