diff options
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r-- | kernel/trace/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index ce70677afbf9..1399f372b5dc 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -8,3 +8,16 @@ config TRACING | |||
8 | bool | 8 | bool |
9 | select DEBUG_FS | 9 | select DEBUG_FS |
10 | 10 | ||
11 | config 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. | ||