blob: 892ecc94a82b62f2282523bfbf989c4e6d8f170b [file] [log] [blame]
Arnaldo Carvalho de Melo16444a82008-05-12 21:20:42 +02001#
2# Architectures that offer an FTRACE implementation should select HAVE_FTRACE:
3#
4config HAVE_FTRACE
5 bool
Steven Rostedtbc0c38d2008-05-12 21:20:42 +02006
Steven Rostedt352ad252008-05-12 21:20:42 +02007config TRACER_MAX_TRACE
8 bool
9
Steven Rostedtbc0c38d2008-05-12 21:20:42 +020010config TRACING
11 bool
12 select DEBUG_FS
13
Steven Rostedt1b29b012008-05-12 21:20:42 +020014config FTRACE
15 bool "Kernel Function Tracer"
16 depends on DEBUG_KERNEL && HAVE_FTRACE
17 select FRAME_POINTER
18 select TRACING
Steven Rostedt35e8e302008-05-12 21:20:42 +020019 select CONTEXT_SWITCH_TRACER
Steven Rostedt1b29b012008-05-12 21:20:42 +020020 help
21 Enable the kernel to trace every kernel function. This is done
22 by using a compiler feature to insert a small, 5-byte No-Operation
23 instruction to the beginning of every kernel function, which NOP
24 sequence is then dynamically patched into a tracer call when
25 tracing is enabled by the administrator. If it's runtime disabled
26 (the bootup default), then the overhead of the instructions is very
27 small and not measurable even in micro-benchmarks.
Steven Rostedt35e8e302008-05-12 21:20:42 +020028
Steven Rostedt352ad252008-05-12 21:20:42 +020029config SCHED_TRACER
30 bool "Scheduling Latency Tracer"
31 depends on DEBUG_KERNEL
32 select TRACING
33 select CONTEXT_SWITCH_TRACER
34 select TRACER_MAX_TRACE
35 help
36 This tracer tracks the latency of the highest priority task
37 to be scheduled in, starting from the point it has woken up.
38
Steven Rostedt35e8e302008-05-12 21:20:42 +020039config CONTEXT_SWITCH_TRACER
40 bool "Trace process context switches"
41 depends on DEBUG_KERNEL
42 select TRACING
43 select MARKERS
44 help
45 This tracer gets called from the context switch and records
46 all switching of tasks.
47