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 <[email protected]>
---
 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


Reply via email to