[PATCH 0/4] PM: tracing: Don't compile in unused trace events

From: Steven Rostedt
Date: Thu Jun 12 2025 - 10:58:34 EST



I have code that makes unsued events trigger a warning. I'm currently cleaning
up the kernel to remove the majority of events that are defined but not used.
When an event is defined, it can take up to 5K of text and meta data per
event. An event should not be created if it is not being used.

The powernv_throttle event is only used by the powernv code so I moved it to
its own header file and it gets created when the powernv code is compiled in.

For the other power events, I just added #ifdef around them with the configs
that enable them.

Steven Rostedt (4):
PM: cpufreq: powernv/tracing: Move powernv_throttle trace event
PM: tracing: Hide psci_domain_idle events under ARM_PSCI_CPUIDLE
PM: tracing: Hide device_pm_callback events under PM_SLEEP
PM: tracing: Hide power_domain_target event under ARCH_OMAP2PLUS

----
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/powernv-cpufreq.c | 4 +++-
drivers/cpufreq/powernv-trace.h | 44 +++++++++++++++++++++++++++++++++++++++
include/trace/events/power.h | 28 ++++++-------------------
kernel/trace/power-traces.c | 1 -
5 files changed, 54 insertions(+), 24 deletions(-)
create mode 100644 drivers/cpufreq/powernv-trace.h