1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM maple_tree
5 #if !defined(_TRACE_MM_H) || defined(TRACE_HEADER_MULTI_READ)
9 #include <linux/tracepoint.h>
15 TP_PROTO(const char *fn
, struct ma_state
*mas
),
20 __field(const char *, fn
)
21 __field(unsigned long, min
)
22 __field(unsigned long, max
)
23 __field(unsigned long, index
)
24 __field(unsigned long, last
)
30 __entry
->min
= mas
->min
;
31 __entry
->max
= mas
->max
;
32 __entry
->index
= mas
->index
;
33 __entry
->last
= mas
->last
;
34 __entry
->node
= mas
->node
;
37 TP_printk("%s\tNode: %p (%lu %lu) range: %lu-%lu",
39 (void *) __entry
->node
,
40 (unsigned long) __entry
->min
,
41 (unsigned long) __entry
->max
,
42 (unsigned long) __entry
->index
,
43 (unsigned long) __entry
->last
48 TP_PROTO(const char *fn
, struct ma_state
*mas
),
53 __field(const char *, fn
)
54 __field(unsigned long, min
)
55 __field(unsigned long, max
)
56 __field(unsigned long, index
)
57 __field(unsigned long, last
)
63 __entry
->min
= mas
->min
;
64 __entry
->max
= mas
->max
;
65 __entry
->index
= mas
->index
;
66 __entry
->last
= mas
->last
;
67 __entry
->node
= mas
->node
;
70 TP_printk("%s\tNode: %p (%lu %lu) range: %lu-%lu",
72 (void *) __entry
->node
,
73 (unsigned long) __entry
->min
,
74 (unsigned long) __entry
->max
,
75 (unsigned long) __entry
->index
,
76 (unsigned long) __entry
->last
82 TP_PROTO(const char *fn
, struct ma_state
*mas
, unsigned long piv
,
85 TP_ARGS(fn
, mas
, piv
, val
),
88 __field(const char *, fn
)
89 __field(unsigned long, min
)
90 __field(unsigned long, max
)
91 __field(unsigned long, index
)
92 __field(unsigned long, last
)
93 __field(unsigned long, piv
)
100 __entry
->min
= mas
->min
;
101 __entry
->max
= mas
->max
;
102 __entry
->index
= mas
->index
;
103 __entry
->last
= mas
->last
;
106 __entry
->node
= mas
->node
;
109 TP_printk("%s\tNode %p (%lu %lu) range:%lu-%lu piv (%lu) val %p",
111 (void *) __entry
->node
,
112 (unsigned long) __entry
->min
,
113 (unsigned long) __entry
->max
,
114 (unsigned long) __entry
->index
,
115 (unsigned long) __entry
->last
,
116 (unsigned long) __entry
->piv
,
117 (void *) __entry
->val
120 #endif /* _TRACE_MM_H */
122 /* This part must be outside protection */
123 #include <trace/define_trace.h>