Skip to content

Commit e64397f

Browse files
committed
PM: tracing: Hide psci_domain_idle events under ARM_PSCI_CPUIDLE
The events psci_domain_idle_enter and psci_domain_idle_exit events are only called when CONFIG_ARM_PSCI_CPUIDLE is defined. As each event can take up to 5K (less for DEFINE_EVENT()) 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 <mhiramat@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/20250612145408.074769245@goodmis.org Acked-by: Rafael J. Wysocki <rafael@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 647fe16 commit e64397f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/trace/events/power.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ TRACE_EVENT(cpu_idle_miss,
6262
(unsigned long)__entry->state, (__entry->below)?"below":"above")
6363
);
6464

65+
#ifdef CONFIG_ARM_PSCI_CPUIDLE
6566
DECLARE_EVENT_CLASS(psci_domain_idle,
6667

6768
TP_PROTO(unsigned int cpu_id, unsigned int state, bool s2idle),
@@ -98,6 +99,7 @@ DEFINE_EVENT(psci_domain_idle, psci_domain_idle_exit,
9899

99100
TP_ARGS(cpu_id, state, s2idle)
100101
);
102+
#endif
101103

102104
TRACE_EVENT(pstate_sample,
103105

0 commit comments

Comments
 (0)