blob: 1399f372b5dcc54709fdfc162ef8bbe143f5b249 [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
7config TRACING
8 bool
9 select DEBUG_FS
10
Steven Rostedt1b29b012008-05-12 21:20:42 +020011config FTRACE
12 bool "Kernel Function Tracer"
13 depends on DEBUG_KERNEL && HAVE_FTRACE
14 select FRAME_POINTER
15 select TRACING
16 help
17 Enable the kernel to trace every kernel function. This is done
18 by using a compiler feature to insert a small, 5-byte No-Operation
19 instruction to the beginning of every kernel function, which NOP
20 sequence is then dynamically patched into a tracer call when
21 tracing is enabled by the administrator. If it's runtime disabled
22 (the bootup default), then the overhead of the instructions is very
23 small and not measurable even in micro-benchmarks.