Skip to content

Commit 43cf0e0

Browse files
committed
powerpc/thp: tracing: Hide hugepage events under CONFIG_PPC_BOOK3S_64
The events hugepage_set_pmd, hugepage_set_pud, hugepage_update_pmd and hugepage_update_pud are only called when CONFIG_PPC_BOOK3S_64 is defined. As each event can take up to 5K regardless if they are used or not, it's best not to define them when they are not used. Add #ifdef around these events when they are not used. Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/[email protected] Acked-by: David Hildenbrand <[email protected]> Acked-by: Madhavan Srinivasan <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 8c4e53a commit 43cf0e0

File tree

1 file changed

+2
-0
lines changed
  • include/trace/events

1 file changed

+2
-0
lines changed

include/trace/events/thp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/types.h>
99
#include <linux/tracepoint.h>
1010

11+
#ifdef CONFIG_PPC_BOOK3S_64
1112
DECLARE_EVENT_CLASS(hugepage_set,
1213

1314
TP_PROTO(unsigned long addr, unsigned long pte),
@@ -66,6 +67,7 @@ DEFINE_EVENT(hugepage_update, hugepage_update_pud,
6667
TP_PROTO(unsigned long addr, unsigned long pud, unsigned long clr, unsigned long set),
6768
TP_ARGS(addr, pud, clr, set)
6869
);
70+
#endif /* CONFIG_PPC_BOOK3S_64 */
6971

7072
DECLARE_EVENT_CLASS(migration_pmd,
7173

0 commit comments

Comments
 (0)