[PATCH v3 2/4] trace/preemptirq: make TRACE_PREEMPT_TOGGLE user-selectable

Wander Lairson Costa posted 4 patches 3 weeks, 6 days ago
[PATCH v3 2/4] trace/preemptirq: make TRACE_PREEMPT_TOGGLE user-selectable
Posted by Wander Lairson Costa 3 weeks, 6 days ago
Make TRACE_PREEMPT_TOGGLE directly selectable so that
preempt_enable/preempt_disable tracepoints can be enabled in
production kernels without requiring the preemptoff latency tracer
overhead.

Signed-off-by: Wander Lairson Costa <wander@redhat.com>
---
 kernel/trace/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 49de13cae4288..e007459ecf361 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -413,10 +413,10 @@ config STACK_TRACER
 	  Say N if unsure.
 
 config TRACE_PREEMPT_TOGGLE
-	bool
+	bool "Preempt disable/enable tracing hooks"
 	help
-	  Enables hooks which will be called when preemption is first disabled,
-	  and last enabled.
+	  Enables hooks into preemption disable and enable paths for
+	  tracing or latency measurement.
 
 config IRQSOFF_TRACER
 	bool "Interrupts-off Latency Tracer"
-- 
2.53.0