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 <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Viresh Kumar <[email protected]> Cc: Madhavan Srinivasan <[email protected]> Cc: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/[email protected] Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 647fe16 commit e64397f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)