aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r--kernel/trace/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 163fbfc2f39f..1ea0d1234f4a 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -62,6 +62,12 @@ config EVENT_TRACING
62config CONTEXT_SWITCH_TRACER 62config CONTEXT_SWITCH_TRACER
63 bool 63 bool
64 64
65config RING_BUFFER_ALLOW_SWAP
66 bool
67 help
68 Allow the use of ring_buffer_swap_cpu.
69 Adds a very slight overhead to tracing when enabled.
70
65# All tracer options should select GENERIC_TRACER. For those options that are 71# All tracer options should select GENERIC_TRACER. For those options that are
66# enabled by all tracers (context switch and event tracer) they select TRACING. 72# enabled by all tracers (context switch and event tracer) they select TRACING.
67# This allows those options to appear when no other tracer is selected. But the 73# This allows those options to appear when no other tracer is selected. But the
@@ -146,6 +152,7 @@ config IRQSOFF_TRACER
146 select TRACE_IRQFLAGS 152 select TRACE_IRQFLAGS
147 select GENERIC_TRACER 153 select GENERIC_TRACER
148 select TRACER_MAX_TRACE 154 select TRACER_MAX_TRACE
155 select RING_BUFFER_ALLOW_SWAP
149 help 156 help
150 This option measures the time spent in irqs-off critical 157 This option measures the time spent in irqs-off critical
151 sections, with microsecond accuracy. 158 sections, with microsecond accuracy.
@@ -167,6 +174,7 @@ config PREEMPT_TRACER
167 depends on PREEMPT 174 depends on PREEMPT
168 select GENERIC_TRACER 175 select GENERIC_TRACER
169 select TRACER_MAX_TRACE 176 select TRACER_MAX_TRACE
177 select RING_BUFFER_ALLOW_SWAP
170 help 178 help
171 This option measures the time spent in preemption off critical 179 This option measures the time spent in preemption off critical
172 sections, with microsecond accuracy. 180 sections, with microsecond accuracy.