Linux 4.8.3
[linux/fpc-iii.git] / include / trace / events / cma.h
blobd7cd961720a73e63b48d58dfab6747b96a885385
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM cma
4 #if !defined(_TRACE_CMA_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_CMA_H
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),
17 TP_STRUCT__entry(
18 __field(unsigned long, pfn)
19 __field(const struct page *, page)
20 __field(unsigned int, count)
21 __field(unsigned int, align)
24 TP_fast_assign(
25 __entry->pfn = pfn;
26 __entry->page = page;
27 __entry->count = count;
28 __entry->align = align;
31 TP_printk("pfn=%lx page=%p count=%u align=%u",
32 __entry->pfn,
33 __entry->page,
34 __entry->count,
35 __entry->align)
38 TRACE_EVENT(cma_release,
40 TP_PROTO(unsigned long pfn, const struct page *page,
41 unsigned int count),
43 TP_ARGS(pfn, page, count),
45 TP_STRUCT__entry(
46 __field(unsigned long, pfn)
47 __field(const struct page *, page)
48 __field(unsigned int, count)
51 TP_fast_assign(
52 __entry->pfn = pfn;
53 __entry->page = page;
54 __entry->count = count;
57 TP_printk("pfn=%lx page=%p count=%u",
58 __entry->pfn,
59 __entry->page,
60 __entry->count)
63 #endif /* _TRACE_CMA_H */
65 /* This part must be outside protection */
66 #include <trace/define_trace.h>