2 #define TRACE_SYSTEM ocfs2
4 #if !defined(_TRACE_OCFS2_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/tracepoint.h>
9 DECLARE_EVENT_CLASS(ocfs2__int,
18 TP_printk("%d", __entry->num)
21 #define DEFINE_OCFS2_INT_EVENT(name) \
22 DEFINE_EVENT(ocfs2__int, name, \
26 DECLARE_EVENT_CLASS(ocfs2__uint,
27 TP_PROTO(unsigned int num),
30 __field( unsigned int, num )
35 TP_printk("%u", __entry->num)
38 #define DEFINE_OCFS2_UINT_EVENT(name) \
39 DEFINE_EVENT(ocfs2__uint, name, \
40 TP_PROTO(unsigned int num), \
43 DECLARE_EVENT_CLASS(ocfs2__ull,
44 TP_PROTO(unsigned long long blkno),
47 __field(unsigned long long, blkno)
50 __entry->blkno = blkno;
52 TP_printk("%llu", __entry->blkno)
55 #define DEFINE_OCFS2_ULL_EVENT(name) \
56 DEFINE_EVENT(ocfs2__ull, name, \
57 TP_PROTO(unsigned long long num), \
60 DECLARE_EVENT_CLASS(ocfs2__pointer,
61 TP_PROTO(void *pointer),
64 __field(void *, pointer)
67 __entry->pointer = pointer;
69 TP_printk("%p", __entry->pointer)
72 #define DEFINE_OCFS2_POINTER_EVENT(name) \
73 DEFINE_EVENT(ocfs2__pointer, name, \
74 TP_PROTO(void *pointer), \
77 DECLARE_EVENT_CLASS(ocfs2__string,
78 TP_PROTO(const char *name),
84 __assign_str(name, name);
86 TP_printk("%s", __get_str(name))
89 #define DEFINE_OCFS2_STRING_EVENT(name) \
90 DEFINE_EVENT(ocfs2__string, name, \
91 TP_PROTO(const char *name), \
94 DECLARE_EVENT_CLASS(ocfs2__int_int,
95 TP_PROTO(int value1, int value2),
96 TP_ARGS(value1, value2),
102 __entry->value1 = value1;
103 __entry->value2 = value2;
105 TP_printk("%d %d", __entry->value1, __entry->value2)
108 #define DEFINE_OCFS2_INT_INT_EVENT(name) \
109 DEFINE_EVENT(ocfs2__int_int, name, \
110 TP_PROTO(int val1, int val2), \
113 DECLARE_EVENT_CLASS(ocfs2__uint_int,
114 TP_PROTO(unsigned int value1, int value2),
115 TP_ARGS(value1, value2),
117 __field(unsigned int, value1)
121 __entry->value1 = value1;
122 __entry->value2 = value2;
124 TP_printk("%u %d", __entry->value1, __entry->value2)
127 #define DEFINE_OCFS2_UINT_INT_EVENT(name) \
128 DEFINE_EVENT(ocfs2__uint_int, name, \
129 TP_PROTO(unsigned int val1, int val2), \
132 DECLARE_EVENT_CLASS(ocfs2__uint_uint,
133 TP_PROTO(unsigned int value1, unsigned int value2),
134 TP_ARGS(value1, value2),
136 __field(unsigned int, value1)
137 __field(unsigned int, value2)
140 __entry->value1 = value1;
141 __entry->value2 = value2;
143 TP_printk("%u %u", __entry->value1, __entry->value2)
146 #define DEFINE_OCFS2_UINT_UINT_EVENT(name) \
147 DEFINE_EVENT(ocfs2__uint_uint, name, \
148 TP_PROTO(unsigned int val1, unsigned int val2), \
151 DECLARE_EVENT_CLASS(ocfs2__ull_uint,
152 TP_PROTO(unsigned long long value1, unsigned int value2),
153 TP_ARGS(value1, value2),
155 __field(unsigned long long, value1)
156 __field(unsigned int, value2)
159 __entry->value1 = value1;
160 __entry->value2 = value2;
162 TP_printk("%llu %u", __entry->value1, __entry->value2)
165 #define DEFINE_OCFS2_ULL_UINT_EVENT(name) \
166 DEFINE_EVENT(ocfs2__ull_uint, name, \
167 TP_PROTO(unsigned long long val1, unsigned int val2), \
170 DECLARE_EVENT_CLASS(ocfs2__ull_int,
171 TP_PROTO(unsigned long long value1, int value2),
172 TP_ARGS(value1, value2),
174 __field(unsigned long long, value1)
178 __entry->value1 = value1;
179 __entry->value2 = value2;
181 TP_printk("%llu %d", __entry->value1, __entry->value2)
184 #define DEFINE_OCFS2_ULL_INT_EVENT(name) \
185 DEFINE_EVENT(ocfs2__ull_int, name, \
186 TP_PROTO(unsigned long long val1, int val2), \
189 DECLARE_EVENT_CLASS(ocfs2__ull_ull,
190 TP_PROTO(unsigned long long value1, unsigned long long value2),
191 TP_ARGS(value1, value2),
193 __field(unsigned long long, value1)
194 __field(unsigned long long, value2)
197 __entry->value1 = value1;
198 __entry->value2 = value2;
200 TP_printk("%llu %llu", __entry->value1, __entry->value2)
203 #define DEFINE_OCFS2_ULL_ULL_EVENT(name) \
204 DEFINE_EVENT(ocfs2__ull_ull, name, \
205 TP_PROTO(unsigned long long val1, unsigned long long val2), \
208 DECLARE_EVENT_CLASS(ocfs2__ull_ull_uint,
209 TP_PROTO(unsigned long long value1,
210 unsigned long long value2, unsigned int value3),
211 TP_ARGS(value1, value2, value3),
213 __field(unsigned long long, value1)
214 __field(unsigned long long, value2)
215 __field(unsigned int, value3)
218 __entry->value1 = value1;
219 __entry->value2 = value2;
220 __entry->value3 = value3;
222 TP_printk("%llu %llu %u",
223 __entry->value1, __entry->value2, __entry->value3)
226 #define DEFINE_OCFS2_ULL_ULL_UINT_EVENT(name) \
227 DEFINE_EVENT(ocfs2__ull_ull_uint, name, \
228 TP_PROTO(unsigned long long val1, \
229 unsigned long long val2, unsigned int val3), \
230 TP_ARGS(val1, val2, val3))
232 DECLARE_EVENT_CLASS(ocfs2__ull_uint_uint,
233 TP_PROTO(unsigned long long value1,
234 unsigned int value2, unsigned int value3),
235 TP_ARGS(value1, value2, value3),
237 __field(unsigned long long, value1)
238 __field(unsigned int, value2)
239 __field(unsigned int, value3)
242 __entry->value1 = value1;
243 __entry->value2 = value2;
244 __entry->value3 = value3;
246 TP_printk("%llu %u %u", __entry->value1,
247 __entry->value2, __entry->value3)
250 #define DEFINE_OCFS2_ULL_UINT_UINT_EVENT(name) \
251 DEFINE_EVENT(ocfs2__ull_uint_uint, name, \
252 TP_PROTO(unsigned long long val1, \
253 unsigned int val2, unsigned int val3), \
254 TP_ARGS(val1, val2, val3))
256 DECLARE_EVENT_CLASS(ocfs2__uint_uint_uint,
257 TP_PROTO(unsigned int value1, unsigned int value2,
258 unsigned int value3),
259 TP_ARGS(value1, value2, value3),
261 __field( unsigned int, value1 )
262 __field( unsigned int, value2 )
263 __field( unsigned int, value3 )
266 __entry->value1 = value1;
267 __entry->value2 = value2;
268 __entry->value3 = value3;
270 TP_printk("%u %u %u", __entry->value1, __entry->value2, __entry->value3)
273 #define DEFINE_OCFS2_UINT_UINT_UINT_EVENT(name) \
274 DEFINE_EVENT(ocfs2__uint_uint_uint, name, \
275 TP_PROTO(unsigned int value1, unsigned int value2, \
276 unsigned int value3), \
277 TP_ARGS(value1, value2, value3))
279 DECLARE_EVENT_CLASS(ocfs2__ull_ull_ull,
280 TP_PROTO(unsigned long long value1,
281 unsigned long long value2, unsigned long long value3),
282 TP_ARGS(value1, value2, value3),
284 __field(unsigned long long, value1)
285 __field(unsigned long long, value2)
286 __field(unsigned long long, value3)
289 __entry->value1 = value1;
290 __entry->value2 = value2;
291 __entry->value3 = value3;
293 TP_printk("%llu %llu %llu",
294 __entry->value1, __entry->value2, __entry->value3)
297 #define DEFINE_OCFS2_ULL_ULL_ULL_EVENT(name) \
298 DEFINE_EVENT(ocfs2__ull_ull_ull, name, \
299 TP_PROTO(unsigned long long value1, unsigned long long value2, \
300 unsigned long long value3), \
301 TP_ARGS(value1, value2, value3))
303 DECLARE_EVENT_CLASS(ocfs2__ull_int_int_int,
304 TP_PROTO(unsigned long long ull, int value1, int value2, int value3),
305 TP_ARGS(ull, value1, value2, value3),
307 __field( unsigned long long, ull )
308 __field( int, value1 )
309 __field( int, value2 )
310 __field( int, value3 )
314 __entry->value1 = value1;
315 __entry->value2 = value2;
316 __entry->value3 = value3;
318 TP_printk("%llu %d %d %d",
319 __entry->ull, __entry->value1,
320 __entry->value2, __entry->value3)
323 #define DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(name) \
324 DEFINE_EVENT(ocfs2__ull_int_int_int, name, \
325 TP_PROTO(unsigned long long ull, int value1, \
326 int value2, int value3), \
327 TP_ARGS(ull, value1, value2, value3))
329 DECLARE_EVENT_CLASS(ocfs2__ull_uint_uint_uint,
330 TP_PROTO(unsigned long long ull, unsigned int value1,
331 unsigned int value2, unsigned int value3),
332 TP_ARGS(ull, value1, value2, value3),
334 __field(unsigned long long, ull)
335 __field(unsigned int, value1)
336 __field(unsigned int, value2)
337 __field(unsigned int, value3)
341 __entry->value1 = value1;
342 __entry->value2 = value2;
343 __entry->value3 = value3;
345 TP_printk("%llu %u %u %u",
346 __entry->ull, __entry->value1,
347 __entry->value2, __entry->value3)
350 #define DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(name) \
351 DEFINE_EVENT(ocfs2__ull_uint_uint_uint, name, \
352 TP_PROTO(unsigned long long ull, unsigned int value1, \
353 unsigned int value2, unsigned int value3), \
354 TP_ARGS(ull, value1, value2, value3))
356 DECLARE_EVENT_CLASS(ocfs2__ull_ull_uint_uint,
357 TP_PROTO(unsigned long long value1, unsigned long long value2,
358 unsigned int value3, unsigned int value4),
359 TP_ARGS(value1, value2, value3, value4),
361 __field(unsigned long long, value1)
362 __field(unsigned long long, value2)
363 __field(unsigned int, value3)
364 __field(unsigned int, value4)
367 __entry->value1 = value1;
368 __entry->value2 = value2;
369 __entry->value3 = value3;
370 __entry->value4 = value4;
372 TP_printk("%llu %llu %u %u",
373 __entry->value1, __entry->value2,
374 __entry->value3, __entry->value4)
377 #define DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(name) \
378 DEFINE_EVENT(ocfs2__ull_ull_uint_uint, name, \
379 TP_PROTO(unsigned long long ull, unsigned long long ull1, \
380 unsigned int value2, unsigned int value3), \
381 TP_ARGS(ull, ull1, value2, value3))
383 /* Trace events for fs/ocfs2/alloc.c. */
384 DECLARE_EVENT_CLASS(ocfs2__btree_ops,
385 TP_PROTO(unsigned long long owner,\
386 unsigned int value1, unsigned int value2),
387 TP_ARGS(owner, value1, value2),
389 __field(unsigned long long, owner)
390 __field(unsigned int, value1)
391 __field(unsigned int, value2)
394 __entry->owner = owner;
395 __entry->value1 = value1;
396 __entry->value2 = value2;
398 TP_printk("%llu %u %u",
399 __entry->owner, __entry->value1, __entry->value2)
402 #define DEFINE_OCFS2_BTREE_EVENT(name) \
403 DEFINE_EVENT(ocfs2__btree_ops, name, \
404 TP_PROTO(unsigned long long owner, \
405 unsigned int value1, unsigned int value2), \
406 TP_ARGS(owner, value1, value2))
408 DEFINE_OCFS2_BTREE_EVENT(ocfs2_adjust_rightmost_branch);
410 DEFINE_OCFS2_BTREE_EVENT(ocfs2_rotate_tree_right);
412 DEFINE_OCFS2_BTREE_EVENT(ocfs2_append_rec_to_path);
414 DEFINE_OCFS2_BTREE_EVENT(ocfs2_insert_extent_start);
416 DEFINE_OCFS2_BTREE_EVENT(ocfs2_add_clusters_in_btree);
418 DEFINE_OCFS2_INT_EVENT(ocfs2_num_free_extents);
420 DEFINE_OCFS2_INT_EVENT(ocfs2_complete_edge_insert);
422 TRACE_EVENT(ocfs2_grow_tree,
423 TP_PROTO(unsigned long long owner, int depth),
424 TP_ARGS(owner, depth),
426 __field(unsigned long long, owner)
430 __entry->owner = owner;
431 __entry->depth = depth;
433 TP_printk("%llu %d", __entry->owner, __entry->depth)
436 TRACE_EVENT(ocfs2_rotate_subtree,
437 TP_PROTO(int subtree_root, unsigned long long blkno,
439 TP_ARGS(subtree_root, blkno, depth),
441 __field(int, subtree_root)
442 __field(unsigned long long, blkno)
446 __entry->subtree_root = subtree_root;
447 __entry->blkno = blkno;
448 __entry->depth = depth;
450 TP_printk("%d %llu %d", __entry->subtree_root,
451 __entry->blkno, __entry->depth)
454 TRACE_EVENT(ocfs2_insert_extent,
455 TP_PROTO(unsigned int ins_appending, unsigned int ins_contig,
456 int ins_contig_index, int free_records, int ins_tree_depth),
457 TP_ARGS(ins_appending, ins_contig, ins_contig_index, free_records,
460 __field(unsigned int, ins_appending)
461 __field(unsigned int, ins_contig)
462 __field(int, ins_contig_index)
463 __field(int, free_records)
464 __field(int, ins_tree_depth)
467 __entry->ins_appending = ins_appending;
468 __entry->ins_contig = ins_contig;
469 __entry->ins_contig_index = ins_contig_index;
470 __entry->free_records = free_records;
471 __entry->ins_tree_depth = ins_tree_depth;
473 TP_printk("%u %u %d %d %d",
474 __entry->ins_appending, __entry->ins_contig,
475 __entry->ins_contig_index, __entry->free_records,
476 __entry->ins_tree_depth)
479 TRACE_EVENT(ocfs2_split_extent,
480 TP_PROTO(int split_index, unsigned int c_contig_type,
481 unsigned int c_has_empty_extent,
482 unsigned int c_split_covers_rec),
483 TP_ARGS(split_index, c_contig_type,
484 c_has_empty_extent, c_split_covers_rec),
486 __field(int, split_index)
487 __field(unsigned int, c_contig_type)
488 __field(unsigned int, c_has_empty_extent)
489 __field(unsigned int, c_split_covers_rec)
492 __entry->split_index = split_index;
493 __entry->c_contig_type = c_contig_type;
494 __entry->c_has_empty_extent = c_has_empty_extent;
495 __entry->c_split_covers_rec = c_split_covers_rec;
497 TP_printk("%d %u %u %u", __entry->split_index, __entry->c_contig_type,
498 __entry->c_has_empty_extent, __entry->c_split_covers_rec)
501 TRACE_EVENT(ocfs2_remove_extent,
502 TP_PROTO(unsigned long long owner, unsigned int cpos,
503 unsigned int len, int index,
504 unsigned int e_cpos, unsigned int clusters),
505 TP_ARGS(owner, cpos, len, index, e_cpos, clusters),
507 __field(unsigned long long, owner)
508 __field(unsigned int, cpos)
509 __field(unsigned int, len)
511 __field(unsigned int, e_cpos)
512 __field(unsigned int, clusters)
515 __entry->owner = owner;
516 __entry->cpos = cpos;
518 __entry->index = index;
519 __entry->e_cpos = e_cpos;
520 __entry->clusters = clusters;
522 TP_printk("%llu %u %u %d %u %u",
523 __entry->owner, __entry->cpos, __entry->len, __entry->index,
524 __entry->e_cpos, __entry->clusters)
527 TRACE_EVENT(ocfs2_commit_truncate,
528 TP_PROTO(unsigned long long ino, unsigned int new_cpos,
529 unsigned int clusters, unsigned int depth),
530 TP_ARGS(ino, new_cpos, clusters, depth),
532 __field(unsigned long long, ino)
533 __field(unsigned int, new_cpos)
534 __field(unsigned int, clusters)
535 __field(unsigned int, depth)
539 __entry->new_cpos = new_cpos;
540 __entry->clusters = clusters;
541 __entry->depth = depth;
543 TP_printk("%llu %u %u %u",
544 __entry->ino, __entry->new_cpos,
545 __entry->clusters, __entry->depth)
548 TRACE_EVENT(ocfs2_validate_extent_block,
549 TP_PROTO(unsigned long long blkno),
552 __field(unsigned long long, blkno)
555 __entry->blkno = blkno;
557 TP_printk("%llu ", __entry->blkno)
560 TRACE_EVENT(ocfs2_rotate_leaf,
561 TP_PROTO(unsigned int insert_cpos, int insert_index,
562 int has_empty, int next_free,
563 unsigned int l_count),
564 TP_ARGS(insert_cpos, insert_index, has_empty,
567 __field(unsigned int, insert_cpos)
568 __field(int, insert_index)
569 __field(int, has_empty)
570 __field(int, next_free)
571 __field(unsigned int, l_count)
574 __entry->insert_cpos = insert_cpos;
575 __entry->insert_index = insert_index;
576 __entry->has_empty = has_empty;
577 __entry->next_free = next_free;
578 __entry->l_count = l_count;
580 TP_printk("%u %d %d %d %u", __entry->insert_cpos,
581 __entry->insert_index, __entry->has_empty,
582 __entry->next_free, __entry->l_count)
585 TRACE_EVENT(ocfs2_add_clusters_in_btree_ret,
586 TP_PROTO(int status, int reason, int err),
587 TP_ARGS(status, reason, err),
594 __entry->status = status;
595 __entry->reason = reason;
598 TP_printk("%d %d %d", __entry->status,
599 __entry->reason, __entry->err)
602 TRACE_EVENT(ocfs2_mark_extent_written,
603 TP_PROTO(unsigned long long owner, unsigned int cpos,
604 unsigned int len, unsigned int phys),
605 TP_ARGS(owner, cpos, len, phys),
607 __field(unsigned long long, owner)
608 __field(unsigned int, cpos)
609 __field(unsigned int, len)
610 __field(unsigned int, phys)
613 __entry->owner = owner;
614 __entry->cpos = cpos;
616 __entry->phys = phys;
618 TP_printk("%llu %u %u %u",
619 __entry->owner, __entry->cpos,
620 __entry->len, __entry->phys)
623 DECLARE_EVENT_CLASS(ocfs2__truncate_log_ops,
624 TP_PROTO(unsigned long long blkno, int index,
625 unsigned int start, unsigned int num),
626 TP_ARGS(blkno, index, start, num),
628 __field(unsigned long long, blkno)
630 __field(unsigned int, start)
631 __field(unsigned int, num)
634 __entry->blkno = blkno;
635 __entry->index = index;
636 __entry->start = start;
639 TP_printk("%llu %d %u %u",
640 __entry->blkno, __entry->index,
641 __entry->start, __entry->num)
644 #define DEFINE_OCFS2_TRUNCATE_LOG_OPS_EVENT(name) \
645 DEFINE_EVENT(ocfs2__truncate_log_ops, name, \
646 TP_PROTO(unsigned long long blkno, int index, \
647 unsigned int start, unsigned int num), \
648 TP_ARGS(blkno, index, start, num))
650 DEFINE_OCFS2_TRUNCATE_LOG_OPS_EVENT(ocfs2_truncate_log_append);
652 DEFINE_OCFS2_TRUNCATE_LOG_OPS_EVENT(ocfs2_replay_truncate_records);
654 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_flush_truncate_log);
656 DEFINE_OCFS2_INT_EVENT(ocfs2_begin_truncate_log_recovery);
658 DEFINE_OCFS2_INT_EVENT(ocfs2_truncate_log_recovery_num);
660 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_complete_truncate_log_recovery);
662 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_free_cached_blocks);
664 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_cache_cluster_dealloc);
666 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_run_deallocs);
668 TRACE_EVENT(ocfs2_cache_block_dealloc,
669 TP_PROTO(int type, int slot, unsigned long long suballoc,
670 unsigned long long blkno, unsigned int bit),
671 TP_ARGS(type, slot, suballoc, blkno, bit),
675 __field(unsigned long long, suballoc)
676 __field(unsigned long long, blkno)
677 __field(unsigned int, bit)
680 __entry->type = type;
681 __entry->slot = slot;
682 __entry->suballoc = suballoc;
683 __entry->blkno = blkno;
686 TP_printk("%d %d %llu %llu %u",
687 __entry->type, __entry->slot, __entry->suballoc,
688 __entry->blkno, __entry->bit)
691 TRACE_EVENT(ocfs2_trim_extent,
692 TP_PROTO(struct super_block *sb, unsigned long long blk,
693 unsigned long long count),
694 TP_ARGS(sb, blk, count),
696 __field(int, dev_major)
697 __field(int, dev_minor)
698 __field(unsigned long long, blk)
699 __field(__u64, count)
702 __entry->dev_major = MAJOR(sb->s_dev);
703 __entry->dev_minor = MINOR(sb->s_dev);
705 __entry->count = count;
707 TP_printk("%d %d %llu %llu",
708 __entry->dev_major, __entry->dev_minor,
709 __entry->blk, __entry->count)
712 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_trim_group);
714 DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_trim_fs);
716 /* End of trace events for fs/ocfs2/alloc.c. */
718 /* Trace events for fs/ocfs2/localalloc.c. */
720 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_la_set_sizes);
722 DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_alloc_should_use_local);
724 DEFINE_OCFS2_INT_EVENT(ocfs2_load_local_alloc);
726 DEFINE_OCFS2_INT_EVENT(ocfs2_begin_local_alloc_recovery);
728 DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_reserve_local_alloc_bits);
730 DEFINE_OCFS2_UINT_EVENT(ocfs2_local_alloc_count_bits);
732 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_local_alloc_find_clear_bits_search_bitmap);
734 DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_local_alloc_find_clear_bits);
736 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_sync_local_to_main);
738 TRACE_EVENT(ocfs2_sync_local_to_main_free,
739 TP_PROTO(int count, int bit, unsigned long long start_blk,
740 unsigned long long blkno),
741 TP_ARGS(count, bit, start_blk, blkno),
745 __field(unsigned long long, start_blk)
746 __field(unsigned long long, blkno)
749 __entry->count = count;
751 __entry->start_blk = start_blk;
752 __entry->blkno = blkno;
754 TP_printk("%d %d %llu %llu",
755 __entry->count, __entry->bit, __entry->start_blk,
759 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_local_alloc_new_window);
761 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_local_alloc_new_window_result);
763 /* End of trace events for fs/ocfs2/localalloc.c. */
765 /* Trace events for fs/ocfs2/resize.c. */
767 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_update_last_group_and_inode);
769 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_group_extend);
771 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_group_add);
773 /* End of trace events for fs/ocfs2/resize.c. */
775 /* Trace events for fs/ocfs2/suballoc.c. */
777 DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_group_descriptor);
779 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_block_group_alloc_contig);
781 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_block_group_alloc_discontig);
783 DEFINE_OCFS2_ULL_EVENT(ocfs2_block_group_alloc);
785 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_reserve_suballoc_bits_nospc);
787 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_reserve_suballoc_bits_no_new_group);
789 DEFINE_OCFS2_ULL_EVENT(ocfs2_reserve_new_inode_new_group);
791 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_block_group_set_bits);
793 TRACE_EVENT(ocfs2_relink_block_group,
794 TP_PROTO(unsigned long long i_blkno, unsigned int chain,
795 unsigned long long bg_blkno,
796 unsigned long long prev_blkno),
797 TP_ARGS(i_blkno, chain, bg_blkno, prev_blkno),
799 __field(unsigned long long, i_blkno)
800 __field(unsigned int, chain)
801 __field(unsigned long long, bg_blkno)
802 __field(unsigned long long, prev_blkno)
805 __entry->i_blkno = i_blkno;
806 __entry->chain = chain;
807 __entry->bg_blkno = bg_blkno;
808 __entry->prev_blkno = prev_blkno;
810 TP_printk("%llu %u %llu %llu",
811 __entry->i_blkno, __entry->chain, __entry->bg_blkno,
815 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_cluster_group_search_wrong_max_bits);
817 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_cluster_group_search_max_block);
819 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_block_group_search_max_block);
821 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_search_chain_begin);
823 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_search_chain_succ);
825 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_search_chain_end);
827 DEFINE_OCFS2_UINT_EVENT(ocfs2_claim_suballoc_bits);
829 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_claim_new_inode_at_loc);
831 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_block_group_clear_bits);
833 TRACE_EVENT(ocfs2_free_suballoc_bits,
834 TP_PROTO(unsigned long long inode, unsigned long long group,
835 unsigned int start_bit, unsigned int count),
836 TP_ARGS(inode, group, start_bit, count),
838 __field(unsigned long long, inode)
839 __field(unsigned long long, group)
840 __field(unsigned int, start_bit)
841 __field(unsigned int, count)
844 __entry->inode = inode;
845 __entry->group = group;
846 __entry->start_bit = start_bit;
847 __entry->count = count;
849 TP_printk("%llu %llu %u %u", __entry->inode, __entry->group,
850 __entry->start_bit, __entry->count)
853 TRACE_EVENT(ocfs2_free_clusters,
854 TP_PROTO(unsigned long long bg_blkno, unsigned long long start_blk,
855 unsigned int start_bit, unsigned int count),
856 TP_ARGS(bg_blkno, start_blk, start_bit, count),
858 __field(unsigned long long, bg_blkno)
859 __field(unsigned long long, start_blk)
860 __field(unsigned int, start_bit)
861 __field(unsigned int, count)
864 __entry->bg_blkno = bg_blkno;
865 __entry->start_blk = start_blk;
866 __entry->start_bit = start_bit;
867 __entry->count = count;
869 TP_printk("%llu %llu %u %u", __entry->bg_blkno, __entry->start_blk,
870 __entry->start_bit, __entry->count)
873 DEFINE_OCFS2_ULL_EVENT(ocfs2_get_suballoc_slot_bit);
875 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_test_suballoc_bit);
877 DEFINE_OCFS2_ULL_EVENT(ocfs2_test_inode_bit);
879 /* End of trace events for fs/ocfs2/suballoc.c. */
881 /* Trace events for fs/ocfs2/refcounttree.c. */
883 DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_refcount_block);
885 DEFINE_OCFS2_ULL_EVENT(ocfs2_purge_refcount_trees);
887 DEFINE_OCFS2_ULL_EVENT(ocfs2_create_refcount_tree);
889 DEFINE_OCFS2_ULL_EVENT(ocfs2_create_refcount_tree_blkno);
891 DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_change_refcount_rec);
893 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_expand_inline_ref_root);
895 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_divide_leaf_refcount_block);
897 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_new_leaf_refcount_block);
899 DECLARE_EVENT_CLASS(ocfs2__refcount_tree_ops,
900 TP_PROTO(unsigned long long blkno, int index,
901 unsigned long long cpos,
902 unsigned int clusters, unsigned int refcount),
903 TP_ARGS(blkno, index, cpos, clusters, refcount),
905 __field(unsigned long long, blkno)
907 __field(unsigned long long, cpos)
908 __field(unsigned int, clusters)
909 __field(unsigned int, refcount)
912 __entry->blkno = blkno;
913 __entry->index = index;
914 __entry->cpos = cpos;
915 __entry->clusters = clusters;
916 __entry->refcount = refcount;
918 TP_printk("%llu %d %llu %u %u", __entry->blkno, __entry->index,
919 __entry->cpos, __entry->clusters, __entry->refcount)
922 #define DEFINE_OCFS2_REFCOUNT_TREE_OPS_EVENT(name) \
923 DEFINE_EVENT(ocfs2__refcount_tree_ops, name, \
924 TP_PROTO(unsigned long long blkno, int index, \
925 unsigned long long cpos, \
926 unsigned int count, unsigned int refcount), \
927 TP_ARGS(blkno, index, cpos, count, refcount))
929 DEFINE_OCFS2_REFCOUNT_TREE_OPS_EVENT(ocfs2_insert_refcount_rec);
931 TRACE_EVENT(ocfs2_split_refcount_rec,
932 TP_PROTO(unsigned long long cpos,
933 unsigned int clusters, unsigned int refcount,
934 unsigned long long split_cpos,
935 unsigned int split_clusters, unsigned int split_refcount),
936 TP_ARGS(cpos, clusters, refcount,
937 split_cpos, split_clusters, split_refcount),
939 __field(unsigned long long, cpos)
940 __field(unsigned int, clusters)
941 __field(unsigned int, refcount)
942 __field(unsigned long long, split_cpos)
943 __field(unsigned int, split_clusters)
944 __field(unsigned int, split_refcount)
947 __entry->cpos = cpos;
948 __entry->clusters = clusters;
949 __entry->refcount = refcount;
950 __entry->split_cpos = split_cpos;
951 __entry->split_clusters = split_clusters;
952 __entry->split_refcount = split_refcount;
954 TP_printk("%llu %u %u %llu %u %u",
955 __entry->cpos, __entry->clusters, __entry->refcount,
956 __entry->split_cpos, __entry->split_clusters,
957 __entry->split_refcount)
960 DEFINE_OCFS2_REFCOUNT_TREE_OPS_EVENT(ocfs2_split_refcount_rec_insert);
962 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_increase_refcount_begin);
964 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_increase_refcount_change);
966 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_increase_refcount_insert);
968 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_increase_refcount_split);
970 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_remove_refcount_extent);
972 DEFINE_OCFS2_ULL_EVENT(ocfs2_restore_refcount_block);
974 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_decrease_refcount_rec);
976 TRACE_EVENT(ocfs2_decrease_refcount,
977 TP_PROTO(unsigned long long owner,
978 unsigned long long cpos,
979 unsigned int len, int delete),
980 TP_ARGS(owner, cpos, len, delete),
982 __field(unsigned long long, owner)
983 __field(unsigned long long, cpos)
984 __field(unsigned int, len)
988 __entry->owner = owner;
989 __entry->cpos = cpos;
991 __entry->delete = delete;
993 TP_printk("%llu %llu %u %d",
994 __entry->owner, __entry->cpos, __entry->len, __entry->delete)
997 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_mark_extent_refcounted);
999 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_calc_refcount_meta_credits);
1001 TRACE_EVENT(ocfs2_calc_refcount_meta_credits_iterate,
1002 TP_PROTO(int recs_add, unsigned long long cpos,
1003 unsigned int clusters, unsigned long long r_cpos,
1004 unsigned int r_clusters, unsigned int refcount, int index),
1005 TP_ARGS(recs_add, cpos, clusters, r_cpos, r_clusters, refcount, index),
1007 __field(int, recs_add)
1008 __field(unsigned long long, cpos)
1009 __field(unsigned int, clusters)
1010 __field(unsigned long long, r_cpos)
1011 __field(unsigned int, r_clusters)
1012 __field(unsigned int, refcount)
1016 __entry->recs_add = recs_add;
1017 __entry->cpos = cpos;
1018 __entry->clusters = clusters;
1019 __entry->r_cpos = r_cpos;
1020 __entry->r_clusters = r_clusters;
1021 __entry->refcount = refcount;
1022 __entry->index = index;
1024 TP_printk("%d %llu %u %llu %u %u %d",
1025 __entry->recs_add, __entry->cpos, __entry->clusters,
1026 __entry->r_cpos, __entry->r_clusters,
1027 __entry->refcount, __entry->index)
1030 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_add_refcount_flag);
1032 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_prepare_refcount_change_for_del);
1034 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_lock_refcount_allocators);
1036 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_duplicate_clusters_by_page);
1038 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_duplicate_clusters_by_jbd);
1040 TRACE_EVENT(ocfs2_clear_ext_refcount,
1041 TP_PROTO(unsigned long long ino, unsigned int cpos,
1042 unsigned int len, unsigned int p_cluster,
1043 unsigned int ext_flags),
1044 TP_ARGS(ino, cpos, len, p_cluster, ext_flags),
1046 __field(unsigned long long, ino)
1047 __field(unsigned int, cpos)
1048 __field(unsigned int, len)
1049 __field(unsigned int, p_cluster)
1050 __field(unsigned int, ext_flags)
1054 __entry->cpos = cpos;
1056 __entry->p_cluster = p_cluster;
1057 __entry->ext_flags = ext_flags;
1059 TP_printk("%llu %u %u %u %u",
1060 __entry->ino, __entry->cpos, __entry->len,
1061 __entry->p_cluster, __entry->ext_flags)
1064 TRACE_EVENT(ocfs2_replace_clusters,
1065 TP_PROTO(unsigned long long ino, unsigned int cpos,
1066 unsigned int old, unsigned int new, unsigned int len,
1067 unsigned int ext_flags),
1068 TP_ARGS(ino, cpos, old, new, len, ext_flags),
1070 __field(unsigned long long, ino)
1071 __field(unsigned int, cpos)
1072 __field(unsigned int, old)
1073 __field(unsigned int, new)
1074 __field(unsigned int, len)
1075 __field(unsigned int, ext_flags)
1079 __entry->cpos = cpos;
1083 __entry->ext_flags = ext_flags;
1085 TP_printk("%llu %u %u %u %u %u",
1086 __entry->ino, __entry->cpos, __entry->old, __entry->new,
1087 __entry->len, __entry->ext_flags)
1090 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_make_clusters_writable);
1092 TRACE_EVENT(ocfs2_refcount_cow_hunk,
1093 TP_PROTO(unsigned long long ino, unsigned int cpos,
1094 unsigned int write_len, unsigned int max_cpos,
1095 unsigned int cow_start, unsigned int cow_len),
1096 TP_ARGS(ino, cpos, write_len, max_cpos, cow_start, cow_len),
1098 __field(unsigned long long, ino)
1099 __field(unsigned int, cpos)
1100 __field(unsigned int, write_len)
1101 __field(unsigned int, max_cpos)
1102 __field(unsigned int, cow_start)
1103 __field(unsigned int, cow_len)
1107 __entry->cpos = cpos;
1108 __entry->write_len = write_len;
1109 __entry->max_cpos = max_cpos;
1110 __entry->cow_start = cow_start;
1111 __entry->cow_len = cow_len;
1113 TP_printk("%llu %u %u %u %u %u",
1114 __entry->ino, __entry->cpos, __entry->write_len,
1115 __entry->max_cpos, __entry->cow_start, __entry->cow_len)
1118 /* End of trace events for fs/ocfs2/refcounttree.c. */
1120 /* Trace events for fs/ocfs2/aops.c. */
1122 DECLARE_EVENT_CLASS(ocfs2__get_block,
1123 TP_PROTO(unsigned long long ino, unsigned long long iblock,
1124 void *bh_result, int create),
1125 TP_ARGS(ino, iblock, bh_result, create),
1127 __field(unsigned long long, ino)
1128 __field(unsigned long long, iblock)
1129 __field(void *, bh_result)
1130 __field(int, create)
1134 __entry->iblock = iblock;
1135 __entry->bh_result = bh_result;
1136 __entry->create = create;
1138 TP_printk("%llu %llu %p %d",
1139 __entry->ino, __entry->iblock,
1140 __entry->bh_result, __entry->create)
1143 #define DEFINE_OCFS2_GET_BLOCK_EVENT(name) \
1144 DEFINE_EVENT(ocfs2__get_block, name, \
1145 TP_PROTO(unsigned long long ino, unsigned long long iblock, \
1146 void *bh_result, int create), \
1147 TP_ARGS(ino, iblock, bh_result, create))
1149 DEFINE_OCFS2_GET_BLOCK_EVENT(ocfs2_symlink_get_block);
1151 DEFINE_OCFS2_GET_BLOCK_EVENT(ocfs2_get_block);
1153 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_get_block_end);
1155 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_readpage);
1157 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_writepage);
1159 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_bmap);
1161 TRACE_EVENT(ocfs2_try_to_write_inline_data,
1162 TP_PROTO(unsigned long long ino, unsigned int len,
1163 unsigned long long pos, unsigned int flags),
1164 TP_ARGS(ino, len, pos, flags),
1166 __field(unsigned long long, ino)
1167 __field(unsigned int, len)
1168 __field(unsigned long long, pos)
1169 __field(unsigned int, flags)
1175 __entry->flags = flags;
1177 TP_printk("%llu %u %llu 0x%x",
1178 __entry->ino, __entry->len, __entry->pos, __entry->flags)
1181 TRACE_EVENT(ocfs2_write_begin_nolock,
1182 TP_PROTO(unsigned long long ino,
1183 long long i_size, unsigned int i_clusters,
1184 unsigned long long pos, unsigned int len,
1185 unsigned int flags, void *page,
1186 unsigned int clusters, unsigned int extents_to_split),
1187 TP_ARGS(ino, i_size, i_clusters, pos, len, flags,
1188 page, clusters, extents_to_split),
1190 __field(unsigned long long, ino)
1191 __field(long long, i_size)
1192 __field(unsigned int, i_clusters)
1193 __field(unsigned long long, pos)
1194 __field(unsigned int, len)
1195 __field(unsigned int, flags)
1196 __field(void *, page)
1197 __field(unsigned int, clusters)
1198 __field(unsigned int, extents_to_split)
1202 __entry->i_size = i_size;
1203 __entry->i_clusters = i_clusters;
1206 __entry->flags = flags;
1207 __entry->page = page;
1208 __entry->clusters = clusters;
1209 __entry->extents_to_split = extents_to_split;
1211 TP_printk("%llu %lld %u %llu %u %u %p %u %u",
1212 __entry->ino, __entry->i_size, __entry->i_clusters,
1213 __entry->pos, __entry->len,
1214 __entry->flags, __entry->page, __entry->clusters,
1215 __entry->extents_to_split)
1218 TRACE_EVENT(ocfs2_write_end_inline,
1219 TP_PROTO(unsigned long long ino,
1220 unsigned long long pos, unsigned int copied,
1221 unsigned int id_count, unsigned int features),
1222 TP_ARGS(ino, pos, copied, id_count, features),
1224 __field(unsigned long long, ino)
1225 __field(unsigned long long, pos)
1226 __field(unsigned int, copied)
1227 __field(unsigned int, id_count)
1228 __field(unsigned int, features)
1233 __entry->copied = copied;
1234 __entry->id_count = id_count;
1235 __entry->features = features;
1237 TP_printk("%llu %llu %u %u %u",
1238 __entry->ino, __entry->pos, __entry->copied,
1239 __entry->id_count, __entry->features)
1242 /* End of trace events for fs/ocfs2/aops.c. */
1244 /* Trace events for fs/ocfs2/mmap.c. */
1246 TRACE_EVENT(ocfs2_fault,
1247 TP_PROTO(unsigned long long ino,
1248 void *area, void *page, unsigned long pgoff),
1249 TP_ARGS(ino, area, page, pgoff),
1251 __field(unsigned long long, ino)
1252 __field(void *, area)
1253 __field(void *, page)
1254 __field(unsigned long, pgoff)
1258 __entry->area = area;
1259 __entry->page = page;
1260 __entry->pgoff = pgoff;
1262 TP_printk("%llu %p %p %lu",
1263 __entry->ino, __entry->area, __entry->page, __entry->pgoff)
1266 /* End of trace events for fs/ocfs2/mmap.c. */
1268 /* Trace events for fs/ocfs2/file.c. */
1270 DECLARE_EVENT_CLASS(ocfs2__file_ops,
1271 TP_PROTO(void *inode, void *file, void *dentry,
1272 unsigned long long ino,
1273 unsigned int d_len, const unsigned char *d_name,
1274 unsigned long long para),
1275 TP_ARGS(inode, file, dentry, ino, d_len, d_name, para),
1277 __field(void *, inode)
1278 __field(void *, file)
1279 __field(void *, dentry)
1280 __field(unsigned long long, ino)
1281 __field(unsigned int, d_len)
1282 __string(d_name, d_name)
1283 __field(unsigned long long, para)
1286 __entry->inode = inode;
1287 __entry->file = file;
1288 __entry->dentry = dentry;
1290 __entry->d_len = d_len;
1291 __assign_str(d_name, d_name);
1292 __entry->para = para;
1294 TP_printk("%p %p %p %llu %llu %.*s", __entry->inode, __entry->file,
1295 __entry->dentry, __entry->ino, __entry->para,
1296 __entry->d_len, __get_str(d_name))
1299 #define DEFINE_OCFS2_FILE_OPS(name) \
1300 DEFINE_EVENT(ocfs2__file_ops, name, \
1301 TP_PROTO(void *inode, void *file, void *dentry, \
1302 unsigned long long ino, \
1303 unsigned int d_len, const unsigned char *d_name, \
1304 unsigned long long mode), \
1305 TP_ARGS(inode, file, dentry, ino, d_len, d_name, mode))
1307 DEFINE_OCFS2_FILE_OPS(ocfs2_file_open);
1309 DEFINE_OCFS2_FILE_OPS(ocfs2_file_release);
1311 DEFINE_OCFS2_FILE_OPS(ocfs2_sync_file);
1313 DEFINE_OCFS2_FILE_OPS(ocfs2_file_aio_write);
1315 DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_write);
1317 DEFINE_OCFS2_FILE_OPS(ocfs2_file_aio_read);
1319 DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_truncate_file);
1321 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_truncate_file_error);
1323 TRACE_EVENT(ocfs2_extend_allocation,
1324 TP_PROTO(unsigned long long ip_blkno, unsigned long long size,
1325 unsigned int clusters, unsigned int clusters_to_add,
1326 int why, int restart_func),
1327 TP_ARGS(ip_blkno, size, clusters, clusters_to_add, why, restart_func),
1329 __field(unsigned long long, ip_blkno)
1330 __field(unsigned long long, size)
1331 __field(unsigned int, clusters)
1332 __field(unsigned int, clusters_to_add)
1334 __field(int, restart_func)
1337 __entry->ip_blkno = ip_blkno;
1338 __entry->size = size;
1339 __entry->clusters = clusters;
1340 __entry->clusters_to_add = clusters_to_add;
1342 __entry->restart_func = restart_func;
1344 TP_printk("%llu %llu %u %u %d %d",
1345 __entry->ip_blkno, __entry->size, __entry->clusters,
1346 __entry->clusters_to_add, __entry->why, __entry->restart_func)
1349 TRACE_EVENT(ocfs2_extend_allocation_end,
1350 TP_PROTO(unsigned long long ino,
1351 unsigned int di_clusters, unsigned long long di_size,
1352 unsigned int ip_clusters, unsigned long long i_size),
1353 TP_ARGS(ino, di_clusters, di_size, ip_clusters, i_size),
1355 __field(unsigned long long, ino)
1356 __field(unsigned int, di_clusters)
1357 __field(unsigned long long, di_size)
1358 __field(unsigned int, ip_clusters)
1359 __field(unsigned long long, i_size)
1363 __entry->di_clusters = di_clusters;
1364 __entry->di_size = di_size;
1365 __entry->ip_clusters = ip_clusters;
1366 __entry->i_size = i_size;
1368 TP_printk("%llu %u %llu %u %llu", __entry->ino, __entry->di_clusters,
1369 __entry->di_size, __entry->ip_clusters, __entry->i_size)
1372 TRACE_EVENT(ocfs2_write_zero_page,
1373 TP_PROTO(unsigned long long ino,
1374 unsigned long long abs_from, unsigned long long abs_to,
1375 unsigned long index, unsigned int zero_from,
1376 unsigned int zero_to),
1377 TP_ARGS(ino, abs_from, abs_to, index, zero_from, zero_to),
1379 __field(unsigned long long, ino)
1380 __field(unsigned long long, abs_from)
1381 __field(unsigned long long, abs_to)
1382 __field(unsigned long, index)
1383 __field(unsigned int, zero_from)
1384 __field(unsigned int, zero_to)
1388 __entry->abs_from = abs_from;
1389 __entry->abs_to = abs_to;
1390 __entry->index = index;
1391 __entry->zero_from = zero_from;
1392 __entry->zero_to = zero_to;
1394 TP_printk("%llu %llu %llu %lu %u %u", __entry->ino,
1395 __entry->abs_from, __entry->abs_to,
1396 __entry->index, __entry->zero_from, __entry->zero_to)
1399 DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_zero_extend_range);
1401 DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_zero_extend);
1403 TRACE_EVENT(ocfs2_setattr,
1404 TP_PROTO(void *inode, void *dentry,
1405 unsigned long long ino,
1406 unsigned int d_len, const unsigned char *d_name,
1407 unsigned int ia_valid, unsigned int ia_mode,
1408 unsigned int ia_uid, unsigned int ia_gid),
1409 TP_ARGS(inode, dentry, ino, d_len, d_name,
1410 ia_valid, ia_mode, ia_uid, ia_gid),
1412 __field(void *, inode)
1413 __field(void *, dentry)
1414 __field(unsigned long long, ino)
1415 __field(unsigned int, d_len)
1416 __string(d_name, d_name)
1417 __field(unsigned int, ia_valid)
1418 __field(unsigned int, ia_mode)
1419 __field(unsigned int, ia_uid)
1420 __field(unsigned int, ia_gid)
1423 __entry->inode = inode;
1424 __entry->dentry = dentry;
1426 __entry->d_len = d_len;
1427 __assign_str(d_name, d_name);
1428 __entry->ia_valid = ia_valid;
1429 __entry->ia_mode = ia_mode;
1430 __entry->ia_uid = ia_uid;
1431 __entry->ia_gid = ia_gid;
1433 TP_printk("%p %p %llu %.*s %u %u %u %u", __entry->inode,
1434 __entry->dentry, __entry->ino, __entry->d_len,
1435 __get_str(d_name), __entry->ia_valid, __entry->ia_mode,
1436 __entry->ia_uid, __entry->ia_gid)
1439 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_write_remove_suid);
1441 DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_zero_partial_clusters);
1443 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_zero_partial_clusters_range1);
1445 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_zero_partial_clusters_range2);
1447 DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_remove_inode_range);
1449 TRACE_EVENT(ocfs2_prepare_inode_for_write,
1450 TP_PROTO(unsigned long long ino, unsigned long long saved_pos,
1451 unsigned long count),
1452 TP_ARGS(ino, saved_pos, count),
1454 __field(unsigned long long, ino)
1455 __field(unsigned long long, saved_pos)
1456 __field(unsigned long, count)
1460 __entry->saved_pos = saved_pos;
1461 __entry->count = count;
1463 TP_printk("%llu %llu %lu", __entry->ino,
1464 __entry->saved_pos, __entry->count)
1467 DEFINE_OCFS2_INT_EVENT(generic_file_aio_read_ret);
1469 /* End of trace events for fs/ocfs2/file.c. */
1471 /* Trace events for fs/ocfs2/inode.c. */
1473 TRACE_EVENT(ocfs2_iget_begin,
1474 TP_PROTO(unsigned long long ino, unsigned int flags, int sysfile_type),
1475 TP_ARGS(ino, flags, sysfile_type),
1477 __field(unsigned long long, ino)
1478 __field(unsigned int, flags)
1479 __field(int, sysfile_type)
1483 __entry->flags = flags;
1484 __entry->sysfile_type = sysfile_type;
1486 TP_printk("%llu %u %d", __entry->ino,
1487 __entry->flags, __entry->sysfile_type)
1490 DEFINE_OCFS2_ULL_EVENT(ocfs2_iget5_locked);
1492 TRACE_EVENT(ocfs2_iget_end,
1493 TP_PROTO(void *inode, unsigned long long ino),
1494 TP_ARGS(inode, ino),
1496 __field(void *, inode)
1497 __field(unsigned long long, ino)
1500 __entry->inode = inode;
1503 TP_printk("%p %llu", __entry->inode, __entry->ino)
1506 TRACE_EVENT(ocfs2_find_actor,
1507 TP_PROTO(void *inode, unsigned long long ino,
1508 void *args, unsigned long long fi_blkno),
1509 TP_ARGS(inode, ino, args, fi_blkno),
1511 __field(void *, inode)
1512 __field(unsigned long long, ino)
1513 __field(void *, args)
1514 __field(unsigned long long, fi_blkno)
1517 __entry->inode = inode;
1519 __entry->args = args;
1520 __entry->fi_blkno = fi_blkno;
1522 TP_printk("%p %llu %p %llu", __entry->inode, __entry->ino,
1523 __entry->args, __entry->fi_blkno)
1526 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_populate_inode);
1528 DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_read_locked_inode);
1530 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_check_orphan_recovery_state);
1532 DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_inode_block);
1533 DEFINE_OCFS2_ULL_EVENT(ocfs2_filecheck_validate_inode_block);
1534 DEFINE_OCFS2_ULL_EVENT(ocfs2_filecheck_repair_inode_block);
1536 TRACE_EVENT(ocfs2_inode_is_valid_to_delete,
1537 TP_PROTO(void *task, void *dc_task, unsigned long long ino,
1538 unsigned int flags),
1539 TP_ARGS(task, dc_task, ino, flags),
1541 __field(void *, task)
1542 __field(void *, dc_task)
1543 __field(unsigned long long, ino)
1544 __field(unsigned int, flags)
1547 __entry->task = task;
1548 __entry->dc_task = dc_task;
1550 __entry->flags = flags;
1552 TP_printk("%p %p %llu %u", __entry->task, __entry->dc_task,
1553 __entry->ino, __entry->flags)
1556 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_query_inode_wipe_begin);
1558 DEFINE_OCFS2_UINT_EVENT(ocfs2_query_inode_wipe_succ);
1560 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_query_inode_wipe_end);
1562 DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_cleanup_delete_inode);
1564 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_delete_inode);
1566 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_clear_inode);
1568 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_drop_inode);
1570 TRACE_EVENT(ocfs2_inode_revalidate,
1571 TP_PROTO(void *inode, unsigned long long ino,
1572 unsigned int flags),
1573 TP_ARGS(inode, ino, flags),
1575 __field(void *, inode)
1576 __field(unsigned long long, ino)
1577 __field(unsigned int, flags)
1580 __entry->inode = inode;
1582 __entry->flags = flags;
1584 TP_printk("%p %llu %u", __entry->inode, __entry->ino, __entry->flags)
1587 DEFINE_OCFS2_ULL_EVENT(ocfs2_mark_inode_dirty);
1589 /* End of trace events for fs/ocfs2/inode.c. */
1591 /* Trace events for fs/ocfs2/extent_map.c. */
1593 TRACE_EVENT(ocfs2_read_virt_blocks,
1594 TP_PROTO(void *inode, unsigned long long vblock, int nr,
1595 void *bhs, unsigned int flags, void *validate),
1596 TP_ARGS(inode, vblock, nr, bhs, flags, validate),
1598 __field(void *, inode)
1599 __field(unsigned long long, vblock)
1601 __field(void *, bhs)
1602 __field(unsigned int, flags)
1603 __field(void *, validate)
1606 __entry->inode = inode;
1607 __entry->vblock = vblock;
1610 __entry->flags = flags;
1611 __entry->validate = validate;
1613 TP_printk("%p %llu %d %p %x %p", __entry->inode, __entry->vblock,
1614 __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
1617 /* End of trace events for fs/ocfs2/extent_map.c. */
1619 /* Trace events for fs/ocfs2/slot_map.c. */
1621 DEFINE_OCFS2_UINT_EVENT(ocfs2_refresh_slot_info);
1623 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_map_slot_buffers);
1625 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_map_slot_buffers_block);
1627 DEFINE_OCFS2_INT_EVENT(ocfs2_find_slot);
1629 /* End of trace events for fs/ocfs2/slot_map.c. */
1631 /* Trace events for fs/ocfs2/heartbeat.c. */
1633 DEFINE_OCFS2_INT_EVENT(ocfs2_do_node_down);
1635 /* End of trace events for fs/ocfs2/heartbeat.c. */
1637 /* Trace events for fs/ocfs2/super.c. */
1639 TRACE_EVENT(ocfs2_remount,
1640 TP_PROTO(unsigned long s_flags, unsigned long osb_flags, int flags),
1641 TP_ARGS(s_flags, osb_flags, flags),
1643 __field(unsigned long, s_flags)
1644 __field(unsigned long, osb_flags)
1648 __entry->s_flags = s_flags;
1649 __entry->osb_flags = osb_flags;
1650 __entry->flags = flags;
1652 TP_printk("%lu %lu %d", __entry->s_flags,
1653 __entry->osb_flags, __entry->flags)
1656 TRACE_EVENT(ocfs2_fill_super,
1657 TP_PROTO(void *sb, void *data, int silent),
1658 TP_ARGS(sb, data, silent),
1661 __field(void *, data)
1662 __field(int, silent)
1666 __entry->data = data;
1667 __entry->silent = silent;
1669 TP_printk("%p %p %d", __entry->sb,
1670 __entry->data, __entry->silent)
1673 TRACE_EVENT(ocfs2_parse_options,
1674 TP_PROTO(int is_remount, char *options),
1675 TP_ARGS(is_remount, options),
1677 __field(int, is_remount)
1678 __string(options, options)
1681 __entry->is_remount = is_remount;
1682 __assign_str(options, options);
1684 TP_printk("%d %s", __entry->is_remount, __get_str(options))
1687 DEFINE_OCFS2_POINTER_EVENT(ocfs2_put_super);
1689 TRACE_EVENT(ocfs2_statfs,
1690 TP_PROTO(void *sb, void *buf),
1694 __field(void *, buf)
1700 TP_printk("%p %p", __entry->sb, __entry->buf)
1703 DEFINE_OCFS2_POINTER_EVENT(ocfs2_dismount_volume);
1705 TRACE_EVENT(ocfs2_initialize_super,
1706 TP_PROTO(char *label, char *uuid_str, unsigned long long root_dir,
1707 unsigned long long system_dir, int cluster_bits),
1708 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits),
1710 __string(label, label)
1711 __string(uuid_str, uuid_str)
1712 __field(unsigned long long, root_dir)
1713 __field(unsigned long long, system_dir)
1714 __field(int, cluster_bits)
1717 __assign_str(label, label);
1718 __assign_str(uuid_str, uuid_str);
1719 __entry->root_dir = root_dir;
1720 __entry->system_dir = system_dir;
1721 __entry->cluster_bits = cluster_bits;
1723 TP_printk("%s %s %llu %llu %d", __get_str(label), __get_str(uuid_str),
1724 __entry->root_dir, __entry->system_dir, __entry->cluster_bits)
1727 /* End of trace events for fs/ocfs2/super.c. */
1729 /* Trace events for fs/ocfs2/xattr.c. */
1731 DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_xattr_block);
1733 DEFINE_OCFS2_UINT_EVENT(ocfs2_xattr_extend_allocation);
1735 TRACE_EVENT(ocfs2_init_xattr_set_ctxt,
1736 TP_PROTO(const char *name, int meta, int clusters, int credits),
1737 TP_ARGS(name, meta, clusters, credits),
1739 __string(name, name)
1741 __field(int, clusters)
1742 __field(int, credits)
1745 __assign_str(name, name);
1746 __entry->meta = meta;
1747 __entry->clusters = clusters;
1748 __entry->credits = credits;
1750 TP_printk("%s %d %d %d", __get_str(name), __entry->meta,
1751 __entry->clusters, __entry->credits)
1754 DECLARE_EVENT_CLASS(ocfs2__xattr_find,
1755 TP_PROTO(unsigned long long ino, const char *name, int name_index,
1756 unsigned int hash, unsigned long long location,
1758 TP_ARGS(ino, name, name_index, hash, location, xe_index),
1760 __field(unsigned long long, ino)
1761 __string(name, name)
1762 __field(int, name_index)
1763 __field(unsigned int, hash)
1764 __field(unsigned long long, location)
1765 __field(int, xe_index)
1769 __assign_str(name, name);
1770 __entry->name_index = name_index;
1771 __entry->hash = hash;
1772 __entry->location = location;
1773 __entry->xe_index = xe_index;
1775 TP_printk("%llu %s %d %u %llu %d", __entry->ino, __get_str(name),
1776 __entry->name_index, __entry->hash, __entry->location,
1780 #define DEFINE_OCFS2_XATTR_FIND_EVENT(name) \
1781 DEFINE_EVENT(ocfs2__xattr_find, name, \
1782 TP_PROTO(unsigned long long ino, const char *name, int name_index, \
1783 unsigned int hash, unsigned long long bucket, \
1785 TP_ARGS(ino, name, name_index, hash, bucket, xe_index))
1787 DEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_bucket_find);
1789 DEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_index_block_find);
1791 DEFINE_OCFS2_XATTR_FIND_EVENT(ocfs2_xattr_index_block_find_rec);
1793 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_iterate_xattr_buckets);
1795 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_iterate_xattr_bucket);
1797 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_cp_xattr_block_to_bucket_begin);
1799 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_cp_xattr_block_to_bucket_end);
1801 DEFINE_OCFS2_ULL_EVENT(ocfs2_xattr_create_index_block_begin);
1803 DEFINE_OCFS2_ULL_EVENT(ocfs2_xattr_create_index_block);
1805 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_defrag_xattr_bucket);
1807 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_mv_xattr_bucket_cross_cluster);
1809 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_divide_xattr_bucket_begin);
1811 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_divide_xattr_bucket_move);
1813 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_cp_xattr_bucket);
1815 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_mv_xattr_buckets);
1817 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_adjust_xattr_cross_cluster);
1819 DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_add_new_xattr_cluster_begin);
1821 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_add_new_xattr_cluster);
1823 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_add_new_xattr_cluster_insert);
1825 DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_extend_xattr_bucket);
1827 DEFINE_OCFS2_ULL_EVENT(ocfs2_add_new_xattr_bucket);
1829 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_xattr_bucket_value_truncate);
1831 DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_rm_xattr_cluster);
1833 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_header);
1835 DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_create_empty_xattr_block);
1837 DEFINE_OCFS2_STRING_EVENT(ocfs2_xattr_set_entry_bucket);
1839 DEFINE_OCFS2_STRING_EVENT(ocfs2_xattr_set_entry_index_block);
1841 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_xattr_bucket_value_refcount);
1843 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_reflink_xattr_buckets);
1845 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_reflink_xattr_rec);
1847 /* End of trace events for fs/ocfs2/xattr.c. */
1849 /* Trace events for fs/ocfs2/reservations.c. */
1851 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resv_insert);
1853 DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_resmap_find_free_bits_begin);
1855 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resmap_find_free_bits_end);
1857 TRACE_EVENT(ocfs2_resv_find_window_begin,
1858 TP_PROTO(unsigned int r_start, unsigned int r_end, unsigned int goal,
1859 unsigned int wanted, int empty_root),
1860 TP_ARGS(r_start, r_end, goal, wanted, empty_root),
1862 __field(unsigned int, r_start)
1863 __field(unsigned int, r_end)
1864 __field(unsigned int, goal)
1865 __field(unsigned int, wanted)
1866 __field(int, empty_root)
1869 __entry->r_start = r_start;
1870 __entry->r_end = r_end;
1871 __entry->goal = goal;
1872 __entry->wanted = wanted;
1873 __entry->empty_root = empty_root;
1875 TP_printk("%u %u %u %u %d", __entry->r_start, __entry->r_end,
1876 __entry->goal, __entry->wanted, __entry->empty_root)
1879 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resv_find_window_prev);
1881 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_resv_find_window_next);
1883 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_cannibalize_resv_begin);
1885 TRACE_EVENT(ocfs2_cannibalize_resv_end,
1886 TP_PROTO(unsigned int start, unsigned int end, unsigned int len,
1887 unsigned int last_start, unsigned int last_len),
1888 TP_ARGS(start, end, len, last_start, last_len),
1890 __field(unsigned int, start)
1891 __field(unsigned int, end)
1892 __field(unsigned int, len)
1893 __field(unsigned int, last_start)
1894 __field(unsigned int, last_len)
1897 __entry->start = start;
1900 __entry->last_start = last_start;
1901 __entry->last_len = last_len;
1903 TP_printk("%u %u %u %u %u", __entry->start, __entry->end,
1904 __entry->len, __entry->last_start, __entry->last_len)
1907 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_resmap_resv_bits);
1909 TRACE_EVENT(ocfs2_resmap_claimed_bits_begin,
1910 TP_PROTO(unsigned int cstart, unsigned int cend, unsigned int clen,
1911 unsigned int r_start, unsigned int r_end, unsigned int r_len,
1912 unsigned int last_start, unsigned int last_len),
1913 TP_ARGS(cstart, cend, clen, r_start, r_end,
1914 r_len, last_start, last_len),
1916 __field(unsigned int, cstart)
1917 __field(unsigned int, cend)
1918 __field(unsigned int, clen)
1919 __field(unsigned int, r_start)
1920 __field(unsigned int, r_end)
1921 __field(unsigned int, r_len)
1922 __field(unsigned int, last_start)
1923 __field(unsigned int, last_len)
1926 __entry->cstart = cstart;
1927 __entry->cend = cend;
1928 __entry->clen = clen;
1929 __entry->r_start = r_start;
1930 __entry->r_end = r_end;
1931 __entry->r_len = r_len;
1932 __entry->last_start = last_start;
1933 __entry->last_len = last_len;
1935 TP_printk("%u %u %u %u %u %u %u %u",
1936 __entry->cstart, __entry->cend, __entry->clen,
1937 __entry->r_start, __entry->r_end, __entry->r_len,
1938 __entry->last_start, __entry->last_len)
1941 TRACE_EVENT(ocfs2_resmap_claimed_bits_end,
1942 TP_PROTO(unsigned int start, unsigned int end, unsigned int len,
1943 unsigned int last_start, unsigned int last_len),
1944 TP_ARGS(start, end, len, last_start, last_len),
1946 __field(unsigned int, start)
1947 __field(unsigned int, end)
1948 __field(unsigned int, len)
1949 __field(unsigned int, last_start)
1950 __field(unsigned int, last_len)
1953 __entry->start = start;
1956 __entry->last_start = last_start;
1957 __entry->last_len = last_len;
1959 TP_printk("%u %u %u %u %u", __entry->start, __entry->end,
1960 __entry->len, __entry->last_start, __entry->last_len)
1963 /* End of trace events for fs/ocfs2/reservations.c. */
1965 /* Trace events for fs/ocfs2/quota_local.c. */
1967 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_recover_local_quota_file);
1969 DEFINE_OCFS2_INT_EVENT(ocfs2_finish_quota_recovery);
1971 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(olq_set_dquot);
1973 /* End of trace events for fs/ocfs2/quota_local.c. */
1975 /* Trace events for fs/ocfs2/quota_global.c. */
1977 DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_quota_block);
1979 TRACE_EVENT(ocfs2_sync_dquot,
1980 TP_PROTO(unsigned int dq_id, long long dqb_curspace,
1981 long long spacechange, long long curinodes,
1982 long long inodechange),
1983 TP_ARGS(dq_id, dqb_curspace, spacechange, curinodes, inodechange),
1985 __field(unsigned int, dq_id)
1986 __field(long long, dqb_curspace)
1987 __field(long long, spacechange)
1988 __field(long long, curinodes)
1989 __field(long long, inodechange)
1992 __entry->dq_id = dq_id;
1993 __entry->dqb_curspace = dqb_curspace;
1994 __entry->spacechange = spacechange;
1995 __entry->curinodes = curinodes;
1996 __entry->inodechange = inodechange;
1998 TP_printk("%u %lld %lld %lld %lld", __entry->dq_id,
1999 __entry->dqb_curspace, __entry->spacechange,
2000 __entry->curinodes, __entry->inodechange)
2003 TRACE_EVENT(ocfs2_sync_dquot_helper,
2004 TP_PROTO(unsigned int dq_id, unsigned int dq_type, unsigned long type,
2006 TP_ARGS(dq_id, dq_type, type, s_id),
2009 __field(unsigned int, dq_id)
2010 __field(unsigned int, dq_type)
2011 __field(unsigned long, type)
2012 __string(s_id, s_id)
2015 __entry->dq_id = dq_id;
2016 __entry->dq_type = dq_type;
2017 __entry->type = type;
2018 __assign_str(s_id, s_id);
2020 TP_printk("%u %u %lu %s", __entry->dq_id, __entry->dq_type,
2021 __entry->type, __get_str(s_id))
2024 DEFINE_OCFS2_UINT_INT_EVENT(ocfs2_write_dquot);
2026 DEFINE_OCFS2_UINT_INT_EVENT(ocfs2_release_dquot);
2028 DEFINE_OCFS2_UINT_INT_EVENT(ocfs2_acquire_dquot);
2030 DEFINE_OCFS2_UINT_INT_EVENT(ocfs2_get_next_id);
2032 DEFINE_OCFS2_UINT_INT_EVENT(ocfs2_mark_dquot_dirty);
2034 /* End of trace events for fs/ocfs2/quota_global.c. */
2036 /* Trace events for fs/ocfs2/dir.c. */
2037 DEFINE_OCFS2_INT_EVENT(ocfs2_search_dirblock);
2039 DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_dir_block);
2041 DEFINE_OCFS2_POINTER_EVENT(ocfs2_find_entry_el);
2043 TRACE_EVENT(ocfs2_dx_dir_search,
2044 TP_PROTO(unsigned long long ino, int namelen, const char *name,
2045 unsigned int major_hash, unsigned int minor_hash,
2046 unsigned long long blkno),
2047 TP_ARGS(ino, namelen, name, major_hash, minor_hash, blkno),
2049 __field(unsigned long long, ino)
2050 __field(int, namelen)
2051 __string(name, name)
2052 __field(unsigned int, major_hash)
2053 __field(unsigned int,minor_hash)
2054 __field(unsigned long long, blkno)
2058 __entry->namelen = namelen;
2059 __assign_str(name, name);
2060 __entry->major_hash = major_hash;
2061 __entry->minor_hash = minor_hash;
2062 __entry->blkno = blkno;
2064 TP_printk("%llu %.*s %u %u %llu", __entry->ino,
2065 __entry->namelen, __get_str(name),
2066 __entry->major_hash, __entry->minor_hash, __entry->blkno)
2069 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_dx_dir_search_leaf_info);
2071 DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_delete_entry_dx);
2073 DEFINE_OCFS2_ULL_EVENT(ocfs2_readdir);
2075 TRACE_EVENT(ocfs2_find_files_on_disk,
2076 TP_PROTO(int namelen, const char *name, void *blkno,
2077 unsigned long long dir),
2078 TP_ARGS(namelen, name, blkno, dir),
2080 __field(int, namelen)
2081 __string(name, name)
2082 __field(void *, blkno)
2083 __field(unsigned long long, dir)
2086 __entry->namelen = namelen;
2087 __assign_str(name, name);
2088 __entry->blkno = blkno;
2091 TP_printk("%.*s %p %llu", __entry->namelen, __get_str(name),
2092 __entry->blkno, __entry->dir)
2095 TRACE_EVENT(ocfs2_check_dir_for_entry,
2096 TP_PROTO(unsigned long long dir, int namelen, const char *name),
2097 TP_ARGS(dir, namelen, name),
2099 __field(unsigned long long, dir)
2100 __field(int, namelen)
2101 __string(name, name)
2105 __entry->namelen = namelen;
2106 __assign_str(name, name);
2108 TP_printk("%llu %.*s", __entry->dir,
2109 __entry->namelen, __get_str(name))
2112 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_dx_dir_attach_index);
2114 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_dx_dir_format_cluster);
2116 TRACE_EVENT(ocfs2_dx_dir_index_root_block,
2117 TP_PROTO(unsigned long long dir,
2118 unsigned int major_hash, unsigned int minor_hash,
2119 int namelen, const char *name, unsigned int num_used),
2120 TP_ARGS(dir, major_hash, minor_hash, namelen, name, num_used),
2122 __field(unsigned long long, dir)
2123 __field(unsigned int, major_hash)
2124 __field(unsigned int, minor_hash)
2125 __field(int, namelen)
2126 __string(name, name)
2127 __field(unsigned int, num_used)
2131 __entry->major_hash = major_hash;
2132 __entry->minor_hash = minor_hash;
2133 __entry->namelen = namelen;
2134 __assign_str(name, name);
2135 __entry->num_used = num_used;
2137 TP_printk("%llu %x %x %.*s %u", __entry->dir,
2138 __entry->major_hash, __entry->minor_hash,
2139 __entry->namelen, __get_str(name), __entry->num_used)
2142 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_extend_dir);
2144 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_dx_dir_rebalance);
2146 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_dx_dir_rebalance_split);
2148 DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_prepare_dir_for_insert);
2150 /* End of trace events for fs/ocfs2/dir.c. */
2152 /* Trace events for fs/ocfs2/namei.c. */
2154 DECLARE_EVENT_CLASS(ocfs2__dentry_ops,
2155 TP_PROTO(void *dir, void *dentry, int name_len, const char *name,
2156 unsigned long long dir_blkno, unsigned long long extra),
2157 TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra),
2159 __field(void *, dir)
2160 __field(void *, dentry)
2161 __field(int, name_len)
2162 __string(name, name)
2163 __field(unsigned long long, dir_blkno)
2164 __field(unsigned long long, extra)
2168 __entry->dentry = dentry;
2169 __entry->name_len = name_len;
2170 __assign_str(name, name);
2171 __entry->dir_blkno = dir_blkno;
2172 __entry->extra = extra;
2174 TP_printk("%p %p %.*s %llu %llu", __entry->dir, __entry->dentry,
2175 __entry->name_len, __get_str(name),
2176 __entry->dir_blkno, __entry->extra)
2179 #define DEFINE_OCFS2_DENTRY_OPS(name) \
2180 DEFINE_EVENT(ocfs2__dentry_ops, name, \
2181 TP_PROTO(void *dir, void *dentry, int name_len, const char *name, \
2182 unsigned long long dir_blkno, unsigned long long extra), \
2183 TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra))
2185 DEFINE_OCFS2_DENTRY_OPS(ocfs2_lookup);
2187 DEFINE_OCFS2_DENTRY_OPS(ocfs2_mkdir);
2189 DEFINE_OCFS2_DENTRY_OPS(ocfs2_create);
2191 DEFINE_OCFS2_DENTRY_OPS(ocfs2_unlink);
2193 DEFINE_OCFS2_DENTRY_OPS(ocfs2_symlink_create);
2195 DEFINE_OCFS2_DENTRY_OPS(ocfs2_mv_orphaned_inode_to_new);
2197 DEFINE_OCFS2_POINTER_EVENT(ocfs2_lookup_ret);
2199 TRACE_EVENT(ocfs2_mknod,
2200 TP_PROTO(void *dir, void *dentry, int name_len, const char *name,
2201 unsigned long long dir_blkno, unsigned long dev, int mode),
2202 TP_ARGS(dir, dentry, name_len, name, dir_blkno, dev, mode),
2204 __field(void *, dir)
2205 __field(void *, dentry)
2206 __field(int, name_len)
2207 __string(name, name)
2208 __field(unsigned long long, dir_blkno)
2209 __field(unsigned long, dev)
2214 __entry->dentry = dentry;
2215 __entry->name_len = name_len;
2216 __assign_str(name, name);
2217 __entry->dir_blkno = dir_blkno;
2219 __entry->mode = mode;
2221 TP_printk("%p %p %.*s %llu %lu %d", __entry->dir, __entry->dentry,
2222 __entry->name_len, __get_str(name),
2223 __entry->dir_blkno, __entry->dev, __entry->mode)
2226 TRACE_EVENT(ocfs2_link,
2227 TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
2228 int name_len, const char *name),
2229 TP_ARGS(ino, old_len, old_name, name_len, name),
2231 __field(unsigned long long, ino)
2232 __field(int, old_len)
2233 __string(old_name, old_name)
2234 __field(int, name_len)
2235 __string(name, name)
2239 __entry->old_len = old_len;
2240 __assign_str(old_name, old_name);
2241 __entry->name_len = name_len;
2242 __assign_str(name, name);
2244 TP_printk("%llu %.*s %.*s", __entry->ino,
2245 __entry->old_len, __get_str(old_name),
2246 __entry->name_len, __get_str(name))
2249 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_unlink_noent);
2251 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_double_lock);
2253 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_double_lock_end);
2255 TRACE_EVENT(ocfs2_rename,
2256 TP_PROTO(void *old_dir, void *old_dentry,
2257 void *new_dir, void *new_dentry,
2258 int old_len, const char *old_name,
2259 int new_len, const char *new_name),
2260 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry,
2261 old_len, old_name, new_len, new_name),
2263 __field(void *, old_dir)
2264 __field(void *, old_dentry)
2265 __field(void *, new_dir)
2266 __field(void *, new_dentry)
2267 __field(int, old_len)
2268 __string(old_name, old_name)
2269 __field(int, new_len)
2270 __string(new_name, new_name)
2273 __entry->old_dir = old_dir;
2274 __entry->old_dentry = old_dentry;
2275 __entry->new_dir = new_dir;
2276 __entry->new_dentry = new_dentry;
2277 __entry->old_len = old_len;
2278 __assign_str(old_name, old_name);
2279 __entry->new_len = new_len;
2280 __assign_str(new_name, new_name);
2282 TP_printk("%p %p %p %p %.*s %.*s",
2283 __entry->old_dir, __entry->old_dentry,
2284 __entry->new_dir, __entry->new_dentry,
2285 __entry->old_len, __get_str(old_name),
2286 __entry->new_len, __get_str(new_name))
2289 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_rename_not_permitted);
2291 TRACE_EVENT(ocfs2_rename_target_exists,
2292 TP_PROTO(int new_len, const char *new_name),
2293 TP_ARGS(new_len, new_name),
2295 __field(int, new_len)
2296 __string(new_name, new_name)
2299 __entry->new_len = new_len;
2300 __assign_str(new_name, new_name);
2302 TP_printk("%.*s", __entry->new_len, __get_str(new_name))
2305 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_rename_disagree);
2307 TRACE_EVENT(ocfs2_rename_over_existing,
2308 TP_PROTO(unsigned long long new_blkno, void *new_bh,
2309 unsigned long long newdi_blkno),
2310 TP_ARGS(new_blkno, new_bh, newdi_blkno),
2312 __field(unsigned long long, new_blkno)
2313 __field(void *, new_bh)
2314 __field(unsigned long long, newdi_blkno)
2317 __entry->new_blkno = new_blkno;
2318 __entry->new_bh = new_bh;
2319 __entry->newdi_blkno = newdi_blkno;
2321 TP_printk("%llu %p %llu", __entry->new_blkno, __entry->new_bh,
2322 __entry->newdi_blkno)
2325 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_create_symlink_data);
2327 TRACE_EVENT(ocfs2_symlink_begin,
2328 TP_PROTO(void *dir, void *dentry, const char *symname,
2329 int len, const char *name),
2330 TP_ARGS(dir, dentry, symname, len, name),
2332 __field(void *, dir)
2333 __field(void *, dentry)
2334 __field(const char *, symname)
2336 __string(name, name)
2340 __entry->dentry = dentry;
2341 __entry->symname = symname;
2343 __assign_str(name, name);
2345 TP_printk("%p %p %s %.*s", __entry->dir, __entry->dentry,
2346 __entry->symname, __entry->len, __get_str(name))
2349 TRACE_EVENT(ocfs2_blkno_stringify,
2350 TP_PROTO(unsigned long long blkno, const char *name, int namelen),
2351 TP_ARGS(blkno, name, namelen),
2353 __field(unsigned long long, blkno)
2354 __string(name, name)
2355 __field(int, namelen)
2358 __entry->blkno = blkno;
2359 __assign_str(name, name);
2360 __entry->namelen = namelen;
2362 TP_printk("%llu %s %d", __entry->blkno, __get_str(name),
2366 DEFINE_OCFS2_ULL_EVENT(ocfs2_orphan_add_begin);
2368 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_orphan_add_end);
2370 TRACE_EVENT(ocfs2_orphan_del,
2371 TP_PROTO(unsigned long long dir, const char *name, int namelen),
2372 TP_ARGS(dir, name, namelen),
2374 __field(unsigned long long, dir)
2375 __string(name, name)
2376 __field(int, namelen)
2380 __assign_str(name, name);
2381 __entry->namelen = namelen;
2383 TP_printk("%llu %s %d", __entry->dir, __get_str(name),
2387 /* End of trace events for fs/ocfs2/namei.c. */
2389 /* Trace events for fs/ocfs2/dcache.c. */
2391 TRACE_EVENT(ocfs2_dentry_revalidate,
2392 TP_PROTO(void *dentry, int len, const char *name),
2393 TP_ARGS(dentry, len, name),
2395 __field(void *, dentry)
2397 __string(name, name)
2400 __entry->dentry = dentry;
2402 __assign_str(name, name);
2404 TP_printk("%p %.*s", __entry->dentry, __entry->len, __get_str(name))
2407 TRACE_EVENT(ocfs2_dentry_revalidate_negative,
2408 TP_PROTO(int len, const char *name, unsigned long pgen,
2410 TP_ARGS(len, name, pgen, gen),
2413 __string(name, name)
2414 __field(unsigned long, pgen)
2415 __field(unsigned long, gen)
2419 __assign_str(name, name);
2420 __entry->pgen = pgen;
2423 TP_printk("%.*s %lu %lu", __entry->len, __get_str(name),
2424 __entry->pgen, __entry->gen)
2427 DEFINE_OCFS2_ULL_EVENT(ocfs2_dentry_revalidate_delete);
2429 DEFINE_OCFS2_ULL_INT_EVENT(ocfs2_dentry_revalidate_orphaned);
2431 DEFINE_OCFS2_ULL_EVENT(ocfs2_dentry_revalidate_nofsdata);
2433 DEFINE_OCFS2_INT_EVENT(ocfs2_dentry_revalidate_ret);
2435 TRACE_EVENT(ocfs2_find_local_alias,
2436 TP_PROTO(int len, const char *name),
2440 __string(name, name)
2444 __assign_str(name, name);
2446 TP_printk("%.*s", __entry->len, __get_str(name))
2449 TRACE_EVENT(ocfs2_dentry_attach_lock,
2450 TP_PROTO(int len, const char *name,
2451 unsigned long long parent, void *fsdata),
2452 TP_ARGS(len, name, parent, fsdata),
2455 __string(name, name)
2456 __field(unsigned long long, parent)
2457 __field(void *, fsdata)
2461 __assign_str(name, name);
2462 __entry->parent = parent;
2463 __entry->fsdata = fsdata;
2465 TP_printk("%.*s %llu %p", __entry->len, __get_str(name),
2466 __entry->parent, __entry->fsdata)
2469 TRACE_EVENT(ocfs2_dentry_attach_lock_found,
2470 TP_PROTO(const char *name, unsigned long long parent,
2471 unsigned long long ino),
2472 TP_ARGS(name, parent, ino),
2474 __string(name, name)
2475 __field(unsigned long long, parent)
2476 __field(unsigned long long, ino)
2479 __assign_str(name, name);
2480 __entry->parent = parent;
2483 TP_printk("%s %llu %llu", __get_str(name), __entry->parent, __entry->ino)
2485 /* End of trace events for fs/ocfs2/dcache.c. */
2487 /* Trace events for fs/ocfs2/export.c. */
2489 TRACE_EVENT(ocfs2_get_dentry_begin,
2490 TP_PROTO(void *sb, void *handle, unsigned long long blkno),
2491 TP_ARGS(sb, handle, blkno),
2494 __field(void *, handle)
2495 __field(unsigned long long, blkno)
2499 __entry->handle = handle;
2500 __entry->blkno = blkno;
2502 TP_printk("%p %p %llu", __entry->sb, __entry->handle, __entry->blkno)
2505 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_get_dentry_test_bit);
2507 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_get_dentry_stale);
2509 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_get_dentry_generation);
2511 DEFINE_OCFS2_POINTER_EVENT(ocfs2_get_dentry_end);
2513 TRACE_EVENT(ocfs2_get_parent,
2514 TP_PROTO(void *child, int len, const char *name,
2515 unsigned long long ino),
2516 TP_ARGS(child, len, name, ino),
2518 __field(void *, child)
2520 __string(name, name)
2521 __field(unsigned long long, ino)
2524 __entry->child = child;
2526 __assign_str(name, name);
2529 TP_printk("%p %.*s %llu", __entry->child, __entry->len,
2530 __get_str(name), __entry->ino)
2533 DEFINE_OCFS2_POINTER_EVENT(ocfs2_get_parent_end);
2535 TRACE_EVENT(ocfs2_encode_fh_begin,
2536 TP_PROTO(void *dentry, int name_len, const char *name,
2537 void *fh, int len, int connectable),
2538 TP_ARGS(dentry, name_len, name, fh, len, connectable),
2540 __field(void *, dentry)
2541 __field(int, name_len)
2542 __string(name, name)
2545 __field(int, connectable)
2548 __entry->dentry = dentry;
2549 __entry->name_len = name_len;
2550 __assign_str(name, name);
2553 __entry->connectable = connectable;
2555 TP_printk("%p %.*s %p %d %d", __entry->dentry, __entry->name_len,
2556 __get_str(name), __entry->fh, __entry->len,
2557 __entry->connectable)
2560 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_encode_fh_self);
2562 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_encode_fh_parent);
2564 DEFINE_OCFS2_INT_EVENT(ocfs2_encode_fh_type);
2566 /* End of trace events for fs/ocfs2/export.c. */
2568 /* Trace events for fs/ocfs2/journal.c. */
2570 DEFINE_OCFS2_UINT_EVENT(ocfs2_commit_cache_begin);
2572 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_commit_cache_end);
2574 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_extend_trans);
2576 DEFINE_OCFS2_INT_EVENT(ocfs2_extend_trans_restart);
2578 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_allocate_extend_trans);
2580 DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_journal_access);
2582 DEFINE_OCFS2_ULL_EVENT(ocfs2_journal_dirty);
2584 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_journal_init);
2586 DEFINE_OCFS2_UINT_EVENT(ocfs2_journal_init_maxlen);
2588 DEFINE_OCFS2_INT_EVENT(ocfs2_journal_shutdown);
2590 DEFINE_OCFS2_POINTER_EVENT(ocfs2_journal_shutdown_wait);
2592 DEFINE_OCFS2_ULL_EVENT(ocfs2_complete_recovery);
2594 DEFINE_OCFS2_INT_EVENT(ocfs2_complete_recovery_end);
2596 TRACE_EVENT(ocfs2_complete_recovery_slot,
2597 TP_PROTO(int slot, unsigned long long la_ino,
2598 unsigned long long tl_ino, void *qrec),
2599 TP_ARGS(slot, la_ino, tl_ino, qrec),
2602 __field(unsigned long long, la_ino)
2603 __field(unsigned long long, tl_ino)
2604 __field(void *, qrec)
2607 __entry->slot = slot;
2608 __entry->la_ino = la_ino;
2609 __entry->tl_ino = tl_ino;
2610 __entry->qrec = qrec;
2612 TP_printk("%d %llu %llu %p", __entry->slot, __entry->la_ino,
2613 __entry->tl_ino, __entry->qrec)
2616 DEFINE_OCFS2_INT_INT_EVENT(ocfs2_recovery_thread_node);
2618 DEFINE_OCFS2_INT_EVENT(ocfs2_recovery_thread_end);
2620 TRACE_EVENT(ocfs2_recovery_thread,
2621 TP_PROTO(int node_num, int osb_node_num, int disable,
2622 void *recovery_thread, int map_set),
2623 TP_ARGS(node_num, osb_node_num, disable, recovery_thread, map_set),
2625 __field(int, node_num)
2626 __field(int, osb_node_num)
2627 __field(int,disable)
2628 __field(void *, recovery_thread)
2629 __field(int,map_set)
2632 __entry->node_num = node_num;
2633 __entry->osb_node_num = osb_node_num;
2634 __entry->disable = disable;
2635 __entry->recovery_thread = recovery_thread;
2636 __entry->map_set = map_set;
2638 TP_printk("%d %d %d %p %d", __entry->node_num,
2639 __entry->osb_node_num, __entry->disable,
2640 __entry->recovery_thread, __entry->map_set)
2643 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_replay_journal_recovered);
2645 DEFINE_OCFS2_INT_EVENT(ocfs2_replay_journal_lock_err);
2647 DEFINE_OCFS2_INT_EVENT(ocfs2_replay_journal_skip);
2649 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_recover_node);
2651 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_recover_node_skip);
2653 DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_mark_dead_nodes);
2655 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_queue_orphan_scan_begin);
2657 DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_queue_orphan_scan_end);
2659 DEFINE_OCFS2_ULL_EVENT(ocfs2_orphan_filldir);
2661 DEFINE_OCFS2_INT_EVENT(ocfs2_recover_orphans);
2663 DEFINE_OCFS2_ULL_EVENT(ocfs2_recover_orphans_iput);
2665 DEFINE_OCFS2_INT_EVENT(ocfs2_wait_on_mount);
2667 /* End of trace events for fs/ocfs2/journal.c. */
2669 /* Trace events for fs/ocfs2/buffer_head_io.c. */
2671 DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_read_blocks_sync);
2673 DEFINE_OCFS2_ULL_EVENT(ocfs2_read_blocks_sync_jbd);
2675 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_read_blocks_from_disk);
2677 DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_read_blocks_bh);
2679 DEFINE_OCFS2_ULL_INT_INT_INT_EVENT(ocfs2_read_blocks_end);
2681 TRACE_EVENT(ocfs2_write_block,
2682 TP_PROTO(unsigned long long block, void *ci),
2685 __field(unsigned long long, block)
2689 __entry->block = block;
2692 TP_printk("%llu %p", __entry->block, __entry->ci)
2695 TRACE_EVENT(ocfs2_read_blocks_begin,
2696 TP_PROTO(void *ci, unsigned long long block,
2697 unsigned int nr, int flags),
2698 TP_ARGS(ci, block, nr, flags),
2701 __field(unsigned long long, block)
2702 __field(unsigned int, nr)
2707 __entry->block = block;
2709 __entry->flags = flags;
2711 TP_printk("%p %llu %u %d", __entry->ci, __entry->block,
2712 __entry->nr, __entry->flags)
2715 /* End of trace events for fs/ocfs2/buffer_head_io.c. */
2717 /* Trace events for fs/ocfs2/uptodate.c. */
2719 DEFINE_OCFS2_ULL_EVENT(ocfs2_purge_copied_metadata_tree);
2721 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_metadata_cache_purge);
2723 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_buffer_cached_begin);
2725 TRACE_EVENT(ocfs2_buffer_cached_end,
2726 TP_PROTO(int index, void *item),
2727 TP_ARGS(index, item),
2730 __field(void *, item)
2733 __entry->index = index;
2734 __entry->item = item;
2736 TP_printk("%d %p", __entry->index, __entry->item)
2739 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_append_cache_array);
2741 DEFINE_OCFS2_ULL_ULL_UINT_EVENT(ocfs2_insert_cache_tree);
2743 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_expand_cache);
2745 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_set_buffer_uptodate);
2747 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_set_buffer_uptodate_begin);
2749 DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_remove_metadata_array);
2751 DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_remove_metadata_tree);
2753 DEFINE_OCFS2_ULL_ULL_UINT_UINT_EVENT(ocfs2_remove_block_from_cache);
2755 /* End of trace events for fs/ocfs2/uptodate.c. */
2756 #endif /* _TRACE_OCFS2_H */
2758 /* This part must be outside protection */
2759 #undef TRACE_INCLUDE_PATH
2760 #define TRACE_INCLUDE_PATH .
2761 #define TRACE_INCLUDE_FILE ocfs2_trace
2762 #include <trace/define_trace.h>