diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-21 19:22:33 -0500 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-21 19:22:33 -0500 |
commit | 2f73e135b83c5001dad84cbd1d445d23fd045b83 (patch) | |
tree | fc4cb2ad4987347c3b3264057a259e1016c87d1e /fs/ocfs2/ocfs2_trace.h | |
parent | a04733d8afad9cd0bfb8269173e30d28fb96088e (diff) |
ocfs2: Remove mlog(0) from fs/ocfs2/suballoc.c
This is the 3rd step to remove the debug info of DISK_ALLOC.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_trace.h')
-rw-r--r-- | fs/ocfs2/ocfs2_trace.h | 212 |
1 files changed, 212 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_trace.h b/fs/ocfs2/ocfs2_trace.h index 5bba629766ca..11980ecba546 100644 --- a/fs/ocfs2/ocfs2_trace.h +++ b/fs/ocfs2/ocfs2_trace.h | |||
@@ -40,6 +40,23 @@ DEFINE_EVENT(ocfs2__uint, name, \ | |||
40 | TP_PROTO(unsigned int num), \ | 40 | TP_PROTO(unsigned int num), \ |
41 | TP_ARGS(num)) | 41 | TP_ARGS(num)) |
42 | 42 | ||
43 | DECLARE_EVENT_CLASS(ocfs2__ull, | ||
44 | TP_PROTO(unsigned long long blkno), | ||
45 | TP_ARGS(blkno), | ||
46 | TP_STRUCT__entry( | ||
47 | __field(unsigned long long, blkno) | ||
48 | ), | ||
49 | TP_fast_assign( | ||
50 | __entry->blkno = blkno; | ||
51 | ), | ||
52 | TP_printk("%llu", __entry->blkno) | ||
53 | ); | ||
54 | |||
55 | #define DEFINE_OCFS2_ULL_EVENT(name) \ | ||
56 | DEFINE_EVENT(ocfs2__ull, name, \ | ||
57 | TP_PROTO(unsigned long long num), \ | ||
58 | TP_ARGS(num)) | ||
59 | |||
43 | DECLARE_EVENT_CLASS(ocfs2__int_int, | 60 | DECLARE_EVENT_CLASS(ocfs2__int_int, |
44 | TP_PROTO(int value1, int value2), | 61 | TP_PROTO(int value1, int value2), |
45 | TP_ARGS(value1, value2), | 62 | TP_ARGS(value1, value2), |
@@ -59,6 +76,25 @@ DEFINE_EVENT(ocfs2__int_int, name, \ | |||
59 | TP_PROTO(int val1, int val2), \ | 76 | TP_PROTO(int val1, int val2), \ |
60 | TP_ARGS(val1, val2)) | 77 | TP_ARGS(val1, val2)) |
61 | 78 | ||
79 | DECLARE_EVENT_CLASS(ocfs2__uint_uint, | ||
80 | TP_PROTO(unsigned int value1, unsigned int value2), | ||
81 | TP_ARGS(value1, value2), | ||
82 | TP_STRUCT__entry( | ||
83 | __field(unsigned int, value1) | ||
84 | __field(unsigned int, value2) | ||
85 | ), | ||
86 | TP_fast_assign( | ||
87 | __entry->value1 = value1; | ||
88 | __entry->value2 = value2; | ||
89 | ), | ||
90 | TP_printk("%u %u", __entry->value1, __entry->value2) | ||
91 | ); | ||
92 | |||
93 | #define DEFINE_OCFS2_UINT_UINT_EVENT(name) \ | ||
94 | DEFINE_EVENT(ocfs2__uint_uint, name, \ | ||
95 | TP_PROTO(unsigned int val1, unsigned int val2), \ | ||
96 | TP_ARGS(val1, val2)) | ||
97 | |||
62 | DECLARE_EVENT_CLASS(ocfs2__ull_uint, | 98 | DECLARE_EVENT_CLASS(ocfs2__ull_uint, |
63 | TP_PROTO(unsigned long long value1, unsigned int value2), | 99 | TP_PROTO(unsigned long long value1, unsigned int value2), |
64 | TP_ARGS(value1, value2), | 100 | TP_ARGS(value1, value2), |
@@ -78,6 +114,49 @@ DEFINE_EVENT(ocfs2__ull_uint, name, \ | |||
78 | TP_PROTO(unsigned long long val1, unsigned int val2), \ | 114 | TP_PROTO(unsigned long long val1, unsigned int val2), \ |
79 | TP_ARGS(val1, val2)) | 115 | TP_ARGS(val1, val2)) |
80 | 116 | ||
117 | DECLARE_EVENT_CLASS(ocfs2__ull_ull, | ||
118 | TP_PROTO(unsigned long long value1, unsigned long long value2), | ||
119 | TP_ARGS(value1, value2), | ||
120 | TP_STRUCT__entry( | ||
121 | __field(unsigned long long, value1) | ||
122 | __field(unsigned long long, value2) | ||
123 | ), | ||
124 | TP_fast_assign( | ||
125 | __entry->value1 = value1; | ||
126 | __entry->value2 = value2; | ||
127 | ), | ||
128 | TP_printk("%llu %llu", __entry->value1, __entry->value2) | ||
129 | ); | ||
130 | |||
131 | #define DEFINE_OCFS2_ULL_ULL_EVENT(name) \ | ||
132 | DEFINE_EVENT(ocfs2__ull_ull, name, \ | ||
133 | TP_PROTO(unsigned long long val1, unsigned long long val2), \ | ||
134 | TP_ARGS(val1, val2)) | ||
135 | |||
136 | DECLARE_EVENT_CLASS(ocfs2__ull_uint_uint, | ||
137 | TP_PROTO(unsigned long long value1, | ||
138 | unsigned int value2, unsigned int value3), | ||
139 | TP_ARGS(value1, value2, value3), | ||
140 | TP_STRUCT__entry( | ||
141 | __field(unsigned long long, value1) | ||
142 | __field(unsigned int, value2) | ||
143 | __field(unsigned int, value3) | ||
144 | ), | ||
145 | TP_fast_assign( | ||
146 | __entry->value1 = value1; | ||
147 | __entry->value2 = value2; | ||
148 | __entry->value3 = value3; | ||
149 | ), | ||
150 | TP_printk("%llu %u %u", __entry->value1, | ||
151 | __entry->value2, __entry->value3) | ||
152 | ); | ||
153 | |||
154 | #define DEFINE_OCFS2_ULL_UINT_UINT_EVENT(name) \ | ||
155 | DEFINE_EVENT(ocfs2__ull_uint_uint, name, \ | ||
156 | TP_PROTO(unsigned long long val1, \ | ||
157 | unsigned int val2, unsigned int val3), \ | ||
158 | TP_ARGS(val1, val2, val3)) | ||
159 | |||
81 | DECLARE_EVENT_CLASS(ocfs2__uint_uint_uint, | 160 | DECLARE_EVENT_CLASS(ocfs2__uint_uint_uint, |
82 | TP_PROTO(unsigned int value1, unsigned int value2, | 161 | TP_PROTO(unsigned int value1, unsigned int value2, |
83 | unsigned int value3), | 162 | unsigned int value3), |
@@ -127,6 +206,33 @@ DEFINE_EVENT(ocfs2__ull_int_int_int, name, \ | |||
127 | int value2, int value3), \ | 206 | int value2, int value3), \ |
128 | TP_ARGS(ull, value1, value2, value3)) | 207 | TP_ARGS(ull, value1, value2, value3)) |
129 | 208 | ||
209 | DECLARE_EVENT_CLASS(ocfs2__ull_uint_uint_uint, | ||
210 | TP_PROTO(unsigned long long ull, unsigned int value1, | ||
211 | unsigned int value2, unsigned int value3), | ||
212 | TP_ARGS(ull, value1, value2, value3), | ||
213 | TP_STRUCT__entry( | ||
214 | __field(unsigned long long, ull) | ||
215 | __field(unsigned int, value1) | ||
216 | __field(unsigned int, value2) | ||
217 | __field(unsigned int, value3) | ||
218 | ), | ||
219 | TP_fast_assign( | ||
220 | __entry->ull = ull; | ||
221 | __entry->value1 = value1; | ||
222 | __entry->value2 = value2; | ||
223 | __entry->value3 = value3; | ||
224 | ), | ||
225 | TP_printk("%llu %u %u %u", | ||
226 | __entry->ull, __entry->value1, | ||
227 | __entry->value2, __entry->value3) | ||
228 | ); | ||
229 | |||
230 | #define DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(name) \ | ||
231 | DEFINE_EVENT(ocfs2__ull_uint_uint_uint, name, \ | ||
232 | TP_PROTO(unsigned long long ull, unsigned int value1, \ | ||
233 | unsigned int value2, unsigned int value3), \ | ||
234 | TP_ARGS(ull, value1, value2, value3)) | ||
235 | |||
130 | /* Trace events for fs/ocfs2/alloc.c. */ | 236 | /* Trace events for fs/ocfs2/alloc.c. */ |
131 | DECLARE_EVENT_CLASS(ocfs2__btree_ops, | 237 | DECLARE_EVENT_CLASS(ocfs2__btree_ops, |
132 | TP_PROTO(unsigned long long owner,\ | 238 | TP_PROTO(unsigned long long owner,\ |
@@ -483,6 +589,112 @@ DEFINE_OCFS2_INT_INT_EVENT(ocfs2_local_alloc_new_window); | |||
483 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_local_alloc_new_window_result); | 589 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_local_alloc_new_window_result); |
484 | 590 | ||
485 | /* End of trace events for fs/ocfs2/localalloc.c. */ | 591 | /* End of trace events for fs/ocfs2/localalloc.c. */ |
592 | |||
593 | /* Trace events for fs/ocfs2/suballoc.c. */ | ||
594 | |||
595 | DEFINE_OCFS2_ULL_EVENT(ocfs2_validate_group_descriptor); | ||
596 | |||
597 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_block_group_alloc_contig); | ||
598 | |||
599 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_block_group_alloc_discontig); | ||
600 | |||
601 | DEFINE_OCFS2_ULL_EVENT(ocfs2_block_group_alloc); | ||
602 | |||
603 | DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_reserve_suballoc_bits_nospc); | ||
604 | |||
605 | DEFINE_OCFS2_UINT_UINT_UINT_EVENT(ocfs2_reserve_suballoc_bits_no_new_group); | ||
606 | |||
607 | DEFINE_OCFS2_ULL_EVENT(ocfs2_reserve_new_inode_new_group); | ||
608 | |||
609 | DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_block_group_set_bits); | ||
610 | |||
611 | TRACE_EVENT(ocfs2_relink_block_group, | ||
612 | TP_PROTO(unsigned long long i_blkno, unsigned int chain, | ||
613 | unsigned long long bg_blkno, | ||
614 | unsigned long long prev_blkno), | ||
615 | TP_ARGS(i_blkno, chain, bg_blkno, prev_blkno), | ||
616 | TP_STRUCT__entry( | ||
617 | __field(unsigned long long, i_blkno) | ||
618 | __field(unsigned int, chain) | ||
619 | __field(unsigned long long, bg_blkno) | ||
620 | __field(unsigned long long, prev_blkno) | ||
621 | ), | ||
622 | TP_fast_assign( | ||
623 | __entry->i_blkno = i_blkno; | ||
624 | __entry->chain = chain; | ||
625 | __entry->bg_blkno = bg_blkno; | ||
626 | __entry->prev_blkno = prev_blkno; | ||
627 | ), | ||
628 | TP_printk("%llu %u %llu %llu", | ||
629 | __entry->i_blkno, __entry->chain, __entry->bg_blkno, | ||
630 | __entry->prev_blkno) | ||
631 | ); | ||
632 | |||
633 | DEFINE_OCFS2_ULL_UINT_UINT_UINT_EVENT(ocfs2_cluster_group_search_wrong_max_bits); | ||
634 | |||
635 | DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_cluster_group_search_max_block); | ||
636 | |||
637 | DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_block_group_search_max_block); | ||
638 | |||
639 | DEFINE_OCFS2_ULL_UINT_UINT_EVENT(ocfs2_search_chain_begin); | ||
640 | |||
641 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_search_chain_succ); | ||
642 | |||
643 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_search_chain_end); | ||
644 | |||
645 | DEFINE_OCFS2_UINT_EVENT(ocfs2_claim_suballoc_bits); | ||
646 | |||
647 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_claim_new_inode_at_loc); | ||
648 | |||
649 | DEFINE_OCFS2_UINT_UINT_EVENT(ocfs2_block_group_clear_bits); | ||
650 | |||
651 | TRACE_EVENT(ocfs2_free_suballoc_bits, | ||
652 | TP_PROTO(unsigned long long inode, unsigned long long group, | ||
653 | unsigned int start_bit, unsigned int count), | ||
654 | TP_ARGS(inode, group, start_bit, count), | ||
655 | TP_STRUCT__entry( | ||
656 | __field(unsigned long long, inode) | ||
657 | __field(unsigned long long, group) | ||
658 | __field(unsigned int, start_bit) | ||
659 | __field(unsigned int, count) | ||
660 | ), | ||
661 | TP_fast_assign( | ||
662 | __entry->inode = inode; | ||
663 | __entry->group = group; | ||
664 | __entry->start_bit = start_bit; | ||
665 | __entry->count = count; | ||
666 | ), | ||
667 | TP_printk("%llu %llu %u %u", __entry->inode, __entry->group, | ||
668 | __entry->start_bit, __entry->count) | ||
669 | ); | ||
670 | |||
671 | TRACE_EVENT(ocfs2_free_clusters, | ||
672 | TP_PROTO(unsigned long long bg_blkno, unsigned long long start_blk, | ||
673 | unsigned int start_bit, unsigned int count), | ||
674 | TP_ARGS(bg_blkno, start_blk, start_bit, count), | ||
675 | TP_STRUCT__entry( | ||
676 | __field(unsigned long long, bg_blkno) | ||
677 | __field(unsigned long long, start_blk) | ||
678 | __field(unsigned int, start_bit) | ||
679 | __field(unsigned int, count) | ||
680 | ), | ||
681 | TP_fast_assign( | ||
682 | __entry->bg_blkno = bg_blkno; | ||
683 | __entry->start_blk = start_blk; | ||
684 | __entry->start_bit = start_bit; | ||
685 | __entry->count = count; | ||
686 | ), | ||
687 | TP_printk("%llu %llu %u %u", __entry->bg_blkno, __entry->start_blk, | ||
688 | __entry->start_bit, __entry->count) | ||
689 | ); | ||
690 | |||
691 | DEFINE_OCFS2_ULL_EVENT(ocfs2_get_suballoc_slot_bit); | ||
692 | |||
693 | DEFINE_OCFS2_ULL_UINT_EVENT(ocfs2_test_suballoc_bit); | ||
694 | |||
695 | DEFINE_OCFS2_ULL_EVENT(ocfs2_test_inode_bit); | ||
696 | |||
697 | /* End of trace events for fs/ocfs2/suballoc.c. */ | ||
486 | #endif /* _TRACE_OCFS2_H */ | 698 | #endif /* _TRACE_OCFS2_H */ |
487 | 699 | ||
488 | /* This part must be outside protection */ | 700 | /* This part must be outside protection */ |