Commit 22cffc2b authored by Steven Rostedt (Red Hat)'s avatar Steven Rostedt (Red Hat) Committed by Steven Rostedt

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 873c642f
...@@ -191,6 +191,7 @@ config IRQSOFF_TRACER ...@@ -191,6 +191,7 @@ config IRQSOFF_TRACER
select GENERIC_TRACER select GENERIC_TRACER
select TRACER_MAX_TRACE select TRACER_MAX_TRACE
select RING_BUFFER_ALLOW_SWAP select RING_BUFFER_ALLOW_SWAP
select TRACER_SNAPSHOT
help help
This option measures the time spent in irqs-off critical This option measures the time spent in irqs-off critical
sections, with microsecond accuracy. sections, with microsecond accuracy.
...@@ -213,6 +214,7 @@ config PREEMPT_TRACER ...@@ -213,6 +214,7 @@ config PREEMPT_TRACER
select GENERIC_TRACER select GENERIC_TRACER
select TRACER_MAX_TRACE select TRACER_MAX_TRACE
select RING_BUFFER_ALLOW_SWAP select RING_BUFFER_ALLOW_SWAP
select TRACER_SNAPSHOT
help help
This option measures the time spent in preemption-off critical This option measures the time spent in preemption-off critical
sections, with microsecond accuracy. sections, with microsecond accuracy.
...@@ -232,6 +234,7 @@ config SCHED_TRACER ...@@ -232,6 +234,7 @@ config SCHED_TRACER
select GENERIC_TRACER select GENERIC_TRACER
select CONTEXT_SWITCH_TRACER select CONTEXT_SWITCH_TRACER
select TRACER_MAX_TRACE select TRACER_MAX_TRACE
select TRACER_SNAPSHOT
help help
This tracer tracks the latency of the highest priority task This tracer tracks the latency of the highest priority task
to be scheduled in, starting from the point it has woken up. to be scheduled in, starting from the point it has woken up.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment