2 # Architectures that offer an FTRACE implementation should select HAVE_FTRACE:
7 config HAVE_DYNAMIC_FTRACE
10 config TRACER_MAX_TRACE
19 bool "Kernel Function Tracer"
20 depends on HAVE_FTRACE
23 select CONTEXT_SWITCH_TRACER
25 Enable the kernel to trace every kernel function. This is done
26 by using a compiler feature to insert a small, 5-byte No-Operation
27 instruction to the beginning of every kernel function, which NOP
28 sequence is then dynamically patched into a tracer call when
29 tracing is enabled by the administrator. If it's runtime disabled
30 (the bootup default), then the overhead of the instructions is very
31 small and not measurable even in micro-benchmarks.
34 bool "Interrupts-off Latency Tracer"
36 depends on TRACE_IRQFLAGS_SUPPORT
37 depends on GENERIC_TIME
38 depends on HAVE_FTRACE
41 select TRACER_MAX_TRACE
43 This option measures the time spent in irqs-off critical
44 sections, with microsecond accuracy.
46 The default measurement method is a maximum search, which is
47 disabled by default and can be runtime (re-)started
50 echo 0 > /debugfs/tracing/tracing_max_latency
52 (Note that kernel size and overhead increases with this option
53 enabled. This option and the preempt-off timing option can be
54 used together or separately.)
57 bool "Preemption-off Latency Tracer"
59 depends on GENERIC_TIME
61 depends on HAVE_FTRACE
63 select TRACER_MAX_TRACE
65 This option measures the time spent in preemption off critical
66 sections, with microsecond accuracy.
68 The default measurement method is a maximum search, which is
69 disabled by default and can be runtime (re-)started
72 echo 0 > /debugfs/tracing/tracing_max_latency
74 (Note that kernel size and overhead increases with this option
75 enabled. This option and the irqs-off timing option can be
76 used together or separately.)
79 bool "Scheduling Latency Tracer"
80 depends on HAVE_FTRACE
82 select CONTEXT_SWITCH_TRACER
83 select TRACER_MAX_TRACE
85 This tracer tracks the latency of the highest priority task
86 to be scheduled in, starting from the point it has woken up.
88 config CONTEXT_SWITCH_TRACER
89 bool "Trace process context switches"
90 depends on HAVE_FTRACE
94 This tracer gets called from the context switch and records
95 all switching of tasks.
98 bool "enable/disable ftrace tracepoints dynamically"
100 depends on HAVE_DYNAMIC_FTRACE
103 This option will modify all the calls to ftrace dynamically
104 (will patch them out of the binary image and replaces them
105 with a No-Op instruction) as they are called. A table is
106 created to dynamically enable them again.
108 This way a CONFIG_FTRACE kernel is slightly larger, but otherwise
109 has native performance as long as no tracing is active.
111 The changes to the code are done by a kernel thread that
112 wakes up once a second and checks to see if any ftrace calls
113 were made. If so, it runs stop_machine (stops all CPUS)
114 and modifies the code to jump over the call to ftrace.
116 config FTRACE_SELFTEST
119 config FTRACE_STARTUP_TEST
120 bool "Perform a startup test on ftrace"
122 select FTRACE_SELFTEST
124 This option performs a series of startup tests on ftrace. On bootup
125 a series of tests are made to verify that the tracer is
126 functioning properly. It will do tests on all the configured