1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM cma
5 #if !defined(_TRACE_CMA_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/types.h>
9 #include <linux/tracepoint.h>
11 TRACE_EVENT(cma_alloc
,
13 TP_PROTO(unsigned long pfn
, const struct page
*page
,
14 unsigned int count
, unsigned int align
),
16 TP_ARGS(pfn
, page
, count
, align
),
19 __field(unsigned long, pfn
)
20 __field(const struct page
*, page
)
21 __field(unsigned int, count
)
22 __field(unsigned int, align
)
28 __entry
->count
= count
;
29 __entry
->align
= align
;
32 TP_printk("pfn=%lx page=%p count=%u align=%u",
39 TRACE_EVENT(cma_release
,
41 TP_PROTO(unsigned long pfn
, const struct page
*page
,
44 TP_ARGS(pfn
, page
, count
),
47 __field(unsigned long, pfn
)
48 __field(const struct page
*, page
)
49 __field(unsigned int, count
)
55 __entry
->count
= count
;
58 TP_printk("pfn=%lx page=%p count=%u",
64 #endif /* _TRACE_CMA_H */
66 /* This part must be outside protection */
67 #include <trace/define_trace.h>