2 #define TRACE_SYSTEM cma
4 #if !defined(_TRACE_CMA_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/types.h>
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(cma_alloc
,
12 TP_PROTO(unsigned long pfn
, const struct page
*page
,
13 unsigned int count
, unsigned int align
),
15 TP_ARGS(pfn
, page
, count
, align
),
18 __field(unsigned long, pfn
)
19 __field(const struct page
*, page
)
20 __field(unsigned int, count
)
21 __field(unsigned int, align
)
27 __entry
->count
= count
;
28 __entry
->align
= align
;
31 TP_printk("pfn=%lx page=%p count=%u align=%u",
38 TRACE_EVENT(cma_release
,
40 TP_PROTO(unsigned long pfn
, const struct page
*page
,
43 TP_ARGS(pfn
, page
, count
),
46 __field(unsigned long, pfn
)
47 __field(const struct page
*, page
)
48 __field(unsigned int, count
)
54 __entry
->count
= count
;
57 TP_printk("pfn=%lx page=%p count=%u",
63 #endif /* _TRACE_CMA_H */
65 /* This part must be outside protection */
66 #include <trace/define_trace.h>