[PATCH 0/2] tracing, thermal: Hide trace events when not in use

From: Steven Rostedt
Date: Fri Oct 13 2017 - 10:19:48 EST


As trace events when defined create data structures and functions to
process them, defining trace events when not using them is a waste of
memory.

The trace events thermal_power_devfreq_get_power and
thermal_power_devfreq_limit are only used when CONFIG_DEVFREQ_THERMAL
is set. Make those events only defined when that is set as well.

The trace events thermal_power_cpu_get_power and
thermal_power_cpu_limit are only used when CONFIG_CPU_THERMAL is set.
Make those events only defined when that is set as well.

-- Steve

include/trace/events/thermal.h | 4 ++++
1 file changed, 4 insertions(+)