aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/Kconfig
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>2013-03-05 07:30:24 -0500
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 00:34:57 -0400
commit22cffc2bb4a50d8c56f03c56f9f19dea85b78e30 (patch)
tree39f6127ad367843e1a9bc36d8f2efbe00b3072fe /kernel/trace/Kconfig
parent873c642f5964b260480850040dec21e42d0ae4e4 (diff)
tracing: Enable snapshot when any latency tracer is enabled
The snapshot utility is extremely useful, and does not add any more overhead in memory when another latency tracer is enabled. They use the snapshot underneath. There's no reason to hide the snapshot file when a latency tracer has been enabled in the kernel. If any of the latency tracers (irq, preempt or wakeup) is enabled then also select the snapshot facility. Note, snapshot can be enabled without the latency tracers enabled. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r--kernel/trace/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index b516a8e19d51..590a27fc212f 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -191,6 +191,7 @@ config IRQSOFF_TRACER
191 select GENERIC_TRACER 191 select GENERIC_TRACER
192 select TRACER_MAX_TRACE 192 select TRACER_MAX_TRACE
193 select RING_BUFFER_ALLOW_SWAP 193 select RING_BUFFER_ALLOW_SWAP
194 select TRACER_SNAPSHOT
194 help 195 help
195 This option measures the time spent in irqs-off critical 196 This option measures the time spent in irqs-off critical
196 sections, with microsecond accuracy. 197 sections, with microsecond accuracy.
@@ -213,6 +214,7 @@ config PREEMPT_TRACER
213 select GENERIC_TRACER 214 select GENERIC_TRACER
214 select TRACER_MAX_TRACE 215 select TRACER_MAX_TRACE
215 select RING_BUFFER_ALLOW_SWAP 216 select RING_BUFFER_ALLOW_SWAP
217 select TRACER_SNAPSHOT
216 help 218 help
217 This option measures the time spent in preemption-off critical 219 This option measures the time spent in preemption-off critical
218 sections, with microsecond accuracy. 220 sections, with microsecond accuracy.
@@ -232,6 +234,7 @@ config SCHED_TRACER
232 select GENERIC_TRACER 234 select GENERIC_TRACER
233 select CONTEXT_SWITCH_TRACER 235 select CONTEXT_SWITCH_TRACER
234 select TRACER_MAX_TRACE 236 select TRACER_MAX_TRACE
237 select TRACER_SNAPSHOT
235 help 238 help
236 This tracer tracks the latency of the highest priority task 239 This tracer tracks the latency of the highest priority task
237 to be scheduled in, starting from the point it has woken up. 240 to be scheduled in, starting from the point it has woken up.