aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/Kconfig
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-05-12 15:20:42 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:32:54 -0400
commit6cd8a4bb2f97527a9ceb30bc77ea4e959c6a95e3 (patch)
tree845af8f3c7f8956b4f3591759a0d67248af243a2 /kernel/trace/Kconfig
parent81d68a96a39844853b37f20cc8282d9b65b78ef3 (diff)
ftrace: trace preempt off critical timings
Add preempt off timings. A lot of kernel core code is taken from the RT patch latency trace that was written by Ingo Molnar. This adds "preemptoff" and "preemptirqsoff" to /debugfs/tracing/available_tracers Now instead of just tracing irqs off, preemption off can be selected to be recorded. When this is selected, it shares the same files as irqs off timings. One can either trace preemption off, irqs off, or one or the other off. By echoing "preemptoff" into /debugfs/tracing/current_tracer, recording of preempt off only is performed. "irqsoff" will only record the time irqs are disabled, but "preemptirqsoff" will take the total time irqs or preemption are disabled. Runtime switching of these options is now supported by simpling echoing in the appropriate trace name into /debugfs/tracing/current_tracer. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r--kernel/trace/Kconfig25
1 files changed, 25 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 896df1cf6adc..6430016b98e8 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -44,6 +44,31 @@ config IRQSOFF_TRACER
44 44
45 echo 0 > /debugfs/tracing/tracing_max_latency 45 echo 0 > /debugfs/tracing/tracing_max_latency
46 46
47 (Note that kernel size and overhead increases with this option
48 enabled. This option and the preempt-off timing option can be
49 used together or separately.)
50
51config PREEMPT_TRACER
52 bool "Preemption-off Latency Tracer"
53 default n
54 depends on GENERIC_TIME
55 depends on PREEMPT
56 select TRACING
57 select TRACER_MAX_TRACE
58 help
59 This option measures the time spent in preemption off critical
60 sections, with microsecond accuracy.
61
62 The default measurement method is a maximum search, which is
63 disabled by default and can be runtime (re-)started
64 via:
65
66 echo 0 > /debugfs/tracing/tracing_max_latency
67
68 (Note that kernel size and overhead increases with this option
69 enabled. This option and the irqs-off timing option can be
70 used together or separately.)
71
47config SCHED_TRACER 72config SCHED_TRACER
48 bool "Scheduling Latency Tracer" 73 bool "Scheduling Latency Tracer"
49 depends on DEBUG_KERNEL 74 depends on DEBUG_KERNEL