lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 12 Oct 2017 18:25:01 -0400
From:   Steven Rostedt <rostedt@...dmis.org>
To:     LKML <linux-kernel@...r.kernel.org>
Cc:     Ingo Molnar <mingo@...nel.org>, Jean Pihet <j-pihet@...com>,
        Kevin Hilman <khilman@...com>
Subject: [PATCH] tracing: Hide power_domain_target trace event when not used

From: Steven Rostedt (VMware) <rostedt@...dmis.org>

The power_domain_target trace event is only used by the ARM OMAP2
platform. Defining events when they are not used wastes memory. Until
there are other users of the power_domain_target trace event,
encapsulate it with #ifdef CONFIG_ARM_OMAP2

Signed-off-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
---
Index: linux-trace.git/include/trace/events/power.h
===================================================================
--- linux-trace.git.orig/include/trace/events/power.h
+++ linux-trace.git/include/trace/events/power.h
@@ -253,6 +253,7 @@ DEFINE_EVENT(wakeup_source, wakeup_sourc
 	TP_ARGS(name, state)
 );
 
+#ifdef CONFIG_ARCH_OMAP2
 /*
  * The power domain events are used for power domains transitions
  */
@@ -284,6 +285,7 @@ DEFINE_EVENT(power_domain, power_domain_
 
 	TP_ARGS(name, state, cpu_id)
 );
+#endif
 
 /*
  * The pm qos events are used for pm qos update

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ