mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] tracing, thermal: Hide trace events when not in use
@ 2017-10-13 14:19 Steven Rostedt
  2017-10-13 14:21 ` [PATCH 1/2] tracing, thermal: Hide devfreq " Steven Rostedt
  2017-10-13 14:23 ` [PATCH 2/2] tracing, thermal: Hide cpu cooling " Steven Rostedt
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Rostedt @ 2017-10-13 14:19 UTC (permalink / raw)
  To: LKML; +Cc: Javi Merino, Eduardo Valentin

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(+)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-17  7:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-13 14:19 [PATCH 0/2] tracing, thermal: Hide trace events when not in use Steven Rostedt
2017-10-13 14:21 ` [PATCH 1/2] tracing, thermal: Hide devfreq " Steven Rostedt
2017-10-17  7:15   ` Javi Merino
2017-10-13 14:23 ` [PATCH 2/2] tracing, thermal: Hide cpu cooling " Steven Rostedt
2017-10-17  7:16   ` Javi Merino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®