diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-04-20 10:47:36 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-04-20 11:07:49 -0400 |
commit | 4ed9f0716e46bb9646f26e73f4a1b5b24db7947a (patch) | |
tree | c900491f9a7a67d063745d10f24e4e4010ffd901 | |
parent | 9ae5b8790037d05d32746f521af146c32089bfec (diff) |
tracing: create menuconfig for tracing infrastructure
During testing we often use randconfig to test various kernels.
The current configuration set up does not give an easy way to disable
all tracing with a single config. The case where randconfig would
test all tracing disabled is very unlikely.
This patch adds a config option to enable or disable all tracing.
It is hooked into the tracing menu just like other submenus are done.
[ Impact: allow randconfig to easily produce all traces disabled ]
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | kernel/trace/Kconfig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 3ee28db69be6..3fa36d2bc290 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -77,7 +77,12 @@ config TRACING_SUPPORT | |||
77 | 77 | ||
78 | if TRACING_SUPPORT | 78 | if TRACING_SUPPORT |
79 | 79 | ||
80 | menu "Tracers" | 80 | menuconfig FTRACE |
81 | bool "Tracers" | ||
82 | help | ||
83 | Enable the kernel tracing infrastructure. | ||
84 | |||
85 | if FTRACE | ||
81 | 86 | ||
82 | config FUNCTION_TRACER | 87 | config FUNCTION_TRACER |
83 | bool "Kernel Function Tracer" | 88 | bool "Kernel Function Tracer" |
@@ -462,7 +467,7 @@ config MMIOTRACE_TEST | |||
462 | 467 | ||
463 | Say N, unless you absolutely know what you are doing. | 468 | Say N, unless you absolutely know what you are doing. |
464 | 469 | ||
465 | endmenu | 470 | endif # FTRACE |
466 | 471 | ||
467 | endif # TRACING_SUPPORT | 472 | endif # TRACING_SUPPORT |
468 | 473 | ||