1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM thp
5 #if !defined(_TRACE_THP_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/types.h>
9 #include <linux/tracepoint.h>
11 TRACE_EVENT(hugepage_invalidate
,
13 TP_PROTO(unsigned long addr
, unsigned long pte
),
16 __field(unsigned long, addr
)
17 __field(unsigned long, pte
)
25 TP_printk("hugepage invalidate at addr 0x%lx and pte = 0x%lx",
26 __entry
->addr
, __entry
->pte
)
29 TRACE_EVENT(hugepage_set_pmd
,
31 TP_PROTO(unsigned long addr
, unsigned long pmd
),
34 __field(unsigned long, addr
)
35 __field(unsigned long, pmd
)
43 TP_printk("Set pmd with 0x%lx with 0x%lx", __entry
->addr
, __entry
->pmd
)
47 TRACE_EVENT(hugepage_update
,
49 TP_PROTO(unsigned long addr
, unsigned long pte
, unsigned long clr
, unsigned long set
),
50 TP_ARGS(addr
, pte
, clr
, set
),
52 __field(unsigned long, addr
)
53 __field(unsigned long, pte
)
54 __field(unsigned long, clr
)
55 __field(unsigned long, set
)
66 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
)
68 TRACE_EVENT(hugepage_splitting
,
70 TP_PROTO(unsigned long addr
, unsigned long pte
),
73 __field(unsigned long, addr
)
74 __field(unsigned long, pte
)
82 TP_printk("hugepage splitting at addr 0x%lx and pte = 0x%lx",
83 __entry
->addr
, __entry
->pte
)
86 #endif /* _TRACE_THP_H */
88 /* This part must be outside protection */
89 #include <trace/define_trace.h>