diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2007-10-19 02:41:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:54 -0400 |
commit | 09cadedbdc01f1a4bea1f427d4fb4642eaa19da9 (patch) | |
tree | 988da227d46be7eb239a37676b9140d325dc4335 /arch/powerpc | |
parent | 1c3f0b8e07de78a86f2dce911f5e245845ce40a8 (diff) |
Combine instrumentation menus in kernel/Kconfig.instrumentation
Quoting Randy:
"It seems sad that this patch sources Kconfig.marker, a 7-line file,
20-something times. Yes, you (we) don't want to put those 7 lines into
20-something different files, so sourcing is the right thing.
However, what you did for avr32 seems more on the right track to me: make
_one_ Instrumentation support menu that includes PROFILING, OPROFILE, KPROBES,
and MARKERS and then use (source) that in all of the arches."
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/Kconfig | 15 | ||||
-rw-r--r-- | arch/powerpc/oprofile/Kconfig | 24 |
2 files changed, 1 insertions, 38 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 3763f681ce4c..18f397ca05ef 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -669,20 +669,7 @@ source "arch/powerpc/sysdev/qe_lib/Kconfig" | |||
669 | 669 | ||
670 | source "lib/Kconfig" | 670 | source "lib/Kconfig" |
671 | 671 | ||
672 | menu "Instrumentation Support" | 672 | source "kernel/Kconfig.instrumentation" |
673 | |||
674 | source "arch/powerpc/oprofile/Kconfig" | ||
675 | |||
676 | config KPROBES | ||
677 | bool "Kprobes" | ||
678 | depends on !BOOKE && !4xx && KALLSYMS && MODULES | ||
679 | help | ||
680 | Kprobes allows you to trap at almost any kernel address and | ||
681 | execute a callback function. register_kprobe() establishes | ||
682 | a probepoint and specifies the callback. Kprobes is useful | ||
683 | for kernel debugging, non-intrusive instrumentation and testing. | ||
684 | If in doubt, say "N". | ||
685 | endmenu | ||
686 | 673 | ||
687 | source "arch/powerpc/Kconfig.debug" | 674 | source "arch/powerpc/Kconfig.debug" |
688 | 675 | ||
diff --git a/arch/powerpc/oprofile/Kconfig b/arch/powerpc/oprofile/Kconfig deleted file mode 100644 index 7089e79689b9..000000000000 --- a/arch/powerpc/oprofile/Kconfig +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | config PROFILING | ||
2 | bool "Profiling support (EXPERIMENTAL)" | ||
3 | help | ||
4 | Say Y here to enable the extended profiling support mechanisms used | ||
5 | by profilers such as OProfile. | ||
6 | |||
7 | |||
8 | config OPROFILE | ||
9 | tristate "OProfile system profiling (EXPERIMENTAL)" | ||
10 | depends on PROFILING | ||
11 | help | ||
12 | OProfile is a profiling system capable of profiling the | ||
13 | whole system, include the kernel, kernel modules, libraries, | ||
14 | and applications. | ||
15 | |||
16 | If unsure, say N. | ||
17 | |||
18 | config OPROFILE_CELL | ||
19 | bool "OProfile for Cell Broadband Engine" | ||
20 | depends on (SPU_FS = y && OPROFILE = m) || (SPU_FS = y && OPROFILE = y) || (SPU_FS = m && OPROFILE = m) | ||
21 | default y | ||
22 | help | ||
23 | Profiling of Cell BE SPUs requires special support enabled | ||
24 | by this option. | ||