diff options
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r-- | kernel/trace/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 1399f372b5dc..5d6aa92866cd 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -13,6 +13,7 @@ config FTRACE | |||
13 | depends on DEBUG_KERNEL && HAVE_FTRACE | 13 | depends on DEBUG_KERNEL && HAVE_FTRACE |
14 | select FRAME_POINTER | 14 | select FRAME_POINTER |
15 | select TRACING | 15 | select TRACING |
16 | select CONTEXT_SWITCH_TRACER | ||
16 | help | 17 | help |
17 | Enable the kernel to trace every kernel function. This is done | 18 | 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 | by using a compiler feature to insert a small, 5-byte No-Operation |
@@ -21,3 +22,13 @@ config FTRACE | |||
21 | tracing is enabled by the administrator. If it's runtime disabled | 22 | tracing is enabled by the administrator. If it's runtime disabled |
22 | (the bootup default), then the overhead of the instructions is very | 23 | (the bootup default), then the overhead of the instructions is very |
23 | small and not measurable even in micro-benchmarks. | 24 | small and not measurable even in micro-benchmarks. |
25 | |||
26 | config CONTEXT_SWITCH_TRACER | ||
27 | bool "Trace process context switches" | ||
28 | depends on DEBUG_KERNEL | ||
29 | select TRACING | ||
30 | select MARKERS | ||
31 | help | ||
32 | This tracer gets called from the context switch and records | ||
33 | all switching of tasks. | ||
34 | |||