Re: [PATCH 1/4] PM: cpufreq: powernv/tracing: Move powernv_throttle trace event

From
Viresh Kumar <viresh.kumar@linaro.org>
Date
2025-06-13 03:16:52
Also in
linux-pm, linux-trace-kernel, lkml
Reply to
Steven Rostedt, 2025-06-12
On 12-06-25, 10:53, Steven Rostedt wrote:
From: Steven Rostedt <rostedt@goodmis.org>

As the trace event powernv_throttle is only used by the powernv code, move
it to a separate include file and have that code directly enable it.

Trace events can take up around 5K of memory when they are defined
regardless if they are used or not. It wastes memory to have them defined
in configurations where the tracepoint is not used.

Fixes: 0306e481d479a ("cpufreq: powernv/tracing: Add powernv_throttle tracepoint")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 drivers/cpufreq/Makefile          |  1 +
 drivers/cpufreq/powernv-cpufreq.c |  4 ++-
 drivers/cpufreq/powernv-trace.h   | 44 +++++++++++++++++++++++++++++++
 include/trace/events/power.h      | 22 ----------------
 kernel/trace/power-traces.c       |  1 -
 5 files changed, 48 insertions(+), 24 deletions(-)
 create mode 100644 drivers/cpufreq/powernv-trace.h
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh
Thread (7 messages) 7 messages, 3 authors, last reply 2025-06-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help