2 #define TRACE_SYSTEM thp
4 #if !defined(_TRACE_THP_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/types.h>
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(hugepage_invalidate
,
12 TP_PROTO(unsigned long addr
, unsigned long pte
),
15 __field(unsigned long, addr
)
16 __field(unsigned long, pte
)
24 TP_printk("hugepage invalidate at addr 0x%lx and pte = 0x%lx",
25 __entry
->addr
, __entry
->pte
)
28 TRACE_EVENT(hugepage_set_pmd
,
30 TP_PROTO(unsigned long addr
, unsigned long pmd
),
33 __field(unsigned long, addr
)
34 __field(unsigned long, pmd
)
42 TP_printk("Set pmd with 0x%lx with 0x%lx", __entry
->addr
, __entry
->pmd
)
46 TRACE_EVENT(hugepage_update
,
48 TP_PROTO(unsigned long addr
, unsigned long pte
, unsigned long clr
, unsigned long set
),
49 TP_ARGS(addr
, pte
, clr
, set
),
51 __field(unsigned long, addr
)
52 __field(unsigned long, pte
)
53 __field(unsigned long, clr
)
54 __field(unsigned long, set
)
65 TP_printk("hugepage update at addr 0x%lx and pte = 0x%lx clr = 0x%lx, set = 0x%lx", __entry
->addr
, __entry
->pte
, __entry
->clr
, __entry
->set
)
67 TRACE_EVENT(hugepage_splitting
,
69 TP_PROTO(unsigned long addr
, unsigned long pte
),
72 __field(unsigned long, addr
)
73 __field(unsigned long, pte
)
81 TP_printk("hugepage splitting at addr 0x%lx and pte = 0x%lx",
82 __entry
->addr
, __entry
->pte
)
85 #endif /* _TRACE_THP_H */
87 /* This part must be outside protection */
88 #include <trace/define_trace.h>