Move the instrumentation Kconfig to arch/Kconfig for architecture dependent options - oprofile - kprobes and init/Kconfig for architecture independent options - profiling - markers Remove the "Instrumentation Support" menu. Everything moves to "General setup". Delete the kernel/Kconfig.instrumentation file. Signed-off-by: Mathieu Desnoyers CC: Linus Torvalds CC: Sam Ravnborg --- arch/Kconfig | 22 ++++++++++++++++++ arch/alpha/Kconfig | 2 - arch/arm/Kconfig | 2 - arch/blackfin/Kconfig | 2 - arch/cris/Kconfig | 2 - arch/frv/Kconfig | 2 - arch/h8300/Kconfig | 2 - arch/ia64/Kconfig | 2 - arch/m32r/Kconfig | 2 - arch/m68k/Kconfig | 2 - arch/m68knommu/Kconfig | 2 - arch/mips/Kconfig | 2 - arch/parisc/Kconfig | 2 - arch/powerpc/Kconfig | 2 - arch/ppc/Kconfig | 2 - arch/s390/Kconfig | 2 - arch/sh/Kconfig | 2 - arch/sh64/Kconfig | 2 - arch/sparc/Kconfig | 2 - arch/sparc64/Kconfig | 2 - arch/um/Kconfig | 2 - arch/v850/Kconfig | 2 - arch/x86/Kconfig.i386 | 2 - arch/x86/Kconfig.x86_64 | 2 - arch/xtensa/Kconfig | 2 - init/Kconfig | 12 ++++++++++ kernel/Kconfig.instrumentation | 49 ----------------------------------------- 27 files changed, 34 insertions(+), 97 deletions(-) Index: linux-2.6-lttng.stable/arch/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/Kconfig 2007-10-30 20:20:32.000000000 -0400 +++ linux-2.6-lttng.stable/arch/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -1,3 +1,25 @@ # # General architecture dependent options # + +config OPROFILE + tristate "OProfile system profiling (EXPERIMENTAL)" + depends on PROFILING + depends on ARCH_SUPPORTS_OPROFILE + help + OProfile is a profiling system capable of profiling the + whole system, include the kernel, kernel modules, libraries, + and applications. + + If unsure, say N. + +config KPROBES + bool "Kprobes" + depends on KALLSYMS && MODULES + depends on ARCH_SUPPORTS_KPROBES + help + Kprobes allows you to trap at almost any kernel address and + execute a callback function. register_kprobe() establishes + a probepoint and specifies the callback. Kprobes is useful + for kernel debugging, non-intrusive instrumentation and testing. + If in doubt, say "N". Index: linux-2.6-lttng.stable/init/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/init/Kconfig 2007-10-30 20:21:04.000000000 -0400 +++ linux-2.6-lttng.stable/init/Kconfig 2007-10-30 20:21:27.000000000 -0400 @@ -644,6 +644,18 @@ config SLOB endchoice +config PROFILING + bool "Profiling support (EXPERIMENTAL)" + help + Say Y here to enable the extended profiling support mechanisms used + by profilers such as OProfile. + +config MARKERS + bool "Activate markers" + help + Place an empty function call at each marker site. Can be + dynamically changed for a probe function. + source "arch/Kconfig" endmenu # General setup Index: linux-2.6-lttng.stable/kernel/Kconfig.instrumentation =================================================================== --- linux-2.6-lttng.stable.orig/kernel/Kconfig.instrumentation 2007-10-30 20:21:07.000000000 -0400 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,49 +0,0 @@ -menuconfig INSTRUMENTATION - bool "Instrumentation Support" - default y - ---help--- - Say Y here to get to see options related to performance measurement, - system-wide debugging, and testing. This option alone does not add any - kernel code. - - If you say N, all options in this submenu will be skipped and - disabled. If you're trying to debug the kernel itself, go see the - Kernel Hacking menu. - -if INSTRUMENTATION - -config PROFILING - bool "Profiling support (EXPERIMENTAL)" - help - Say Y here to enable the extended profiling support mechanisms used - by profilers such as OProfile. - -config OPROFILE - tristate "OProfile system profiling (EXPERIMENTAL)" - depends on PROFILING - depends on ARCH_SUPPORTS_OPROFILE - help - OProfile is a profiling system capable of profiling the - whole system, include the kernel, kernel modules, libraries, - and applications. - - If unsure, say N. - -config KPROBES - bool "Kprobes" - depends on KALLSYMS && MODULES - depends on ARCH_SUPPORTS_KPROBES - help - Kprobes allows you to trap at almost any kernel address and - execute a callback function. register_kprobe() establishes - a probepoint and specifies the callback. Kprobes is useful - for kernel debugging, non-intrusive instrumentation and testing. - If in doubt, say "N". - -config MARKERS - bool "Activate markers" - help - Place an empty function call at each marker site. Can be - dynamically changed for a probe function. - -endif # INSTRUMENTATION Index: linux-2.6-lttng.stable/arch/alpha/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/alpha/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/alpha/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -658,8 +658,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/alpha/Kconfig.debug" # DUMMY_CONSOLE may be defined in drivers/video/console/Kconfig Index: linux-2.6-lttng.stable/arch/arm/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/arm/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/arm/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -1072,8 +1072,6 @@ endmenu source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/arm/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/blackfin/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/blackfin/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/blackfin/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -1077,8 +1077,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - menu "Kernel hacking" source "lib/Kconfig.debug" Index: linux-2.6-lttng.stable/arch/cris/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/cris/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/cris/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -196,8 +196,6 @@ source "sound/Kconfig" source "drivers/usb/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/cris/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/frv/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/frv/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/frv/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -375,8 +375,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/frv/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/h8300/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/h8300/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/h8300/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -223,8 +223,6 @@ endmenu source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/h8300/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/ia64/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/ia64/Kconfig 2007-10-30 20:21:07.000000000 -0400 +++ linux-2.6-lttng.stable/arch/ia64/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -600,8 +600,6 @@ config IRQ_PER_CPU source "arch/ia64/hp/sim/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/ia64/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/m32r/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/m32r/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/m32r/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -430,8 +430,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/m32r/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/m68k/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/m68k/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/m68k/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -683,8 +683,6 @@ endmenu source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/m68k/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/m68knommu/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/m68knommu/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/m68knommu/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -707,8 +707,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/m68knommu/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/mips/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/mips/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/mips/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -2019,8 +2019,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/mips/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/parisc/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/parisc/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/parisc/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -271,8 +271,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/parisc/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/powerpc/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/powerpc/Kconfig 2007-10-30 20:21:07.000000000 -0400 +++ linux-2.6-lttng.stable/arch/powerpc/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -677,8 +677,6 @@ source "arch/powerpc/sysdev/qe_lib/Kconf source "lib/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/powerpc/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/ppc/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/ppc/Kconfig 2007-10-30 20:21:07.000000000 -0400 +++ linux-2.6-lttng.stable/arch/ppc/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -1325,8 +1325,6 @@ endmenu source "lib/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/ppc/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/s390/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/s390/Kconfig 2007-10-30 20:21:07.000000000 -0400 +++ linux-2.6-lttng.stable/arch/s390/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -537,8 +537,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/s390/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/sh/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/sh/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/sh/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -762,8 +762,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/sh/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/sh64/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/sh64/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/sh64/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -288,8 +288,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/sh64/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/sparc/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/sparc/Kconfig 2007-10-30 20:21:06.000000000 -0400 +++ linux-2.6-lttng.stable/arch/sparc/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -324,8 +324,6 @@ endmenu source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/sparc/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/sparc64/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/sparc64/Kconfig 2007-10-30 20:21:07.000000000 -0400 +++ linux-2.6-lttng.stable/arch/sparc64/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -470,8 +470,6 @@ source "drivers/sbus/char/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/sparc64/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/um/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/um/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/um/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -289,6 +289,4 @@ config INPUT bool default n -source "kernel/Kconfig.instrumentation" - source "arch/um/Kconfig.debug" Index: linux-2.6-lttng.stable/arch/v850/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/v850/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/v850/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -331,8 +331,6 @@ source "sound/Kconfig" source "drivers/usb/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/v850/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/x86/Kconfig.i386 =================================================================== --- linux-2.6-lttng.stable.orig/arch/x86/Kconfig.i386 2007-10-30 20:21:07.000000000 -0400 +++ linux-2.6-lttng.stable/arch/x86/Kconfig.i386 2007-10-30 20:21:07.000000000 -0400 @@ -1278,8 +1278,6 @@ source "drivers/Kconfig" source "fs/Kconfig" -source "kernel/Kconfig.instrumentation" - source "arch/x86/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/x86/Kconfig.x86_64 =================================================================== --- linux-2.6-lttng.stable.orig/arch/x86/Kconfig.x86_64 2007-10-30 20:21:07.000000000 -0400 +++ linux-2.6-lttng.stable/arch/x86/Kconfig.x86_64 2007-10-30 20:21:07.000000000 -0400 @@ -836,8 +836,6 @@ source "drivers/firmware/Kconfig" source fs/Kconfig -source "kernel/Kconfig.instrumentation" - source "arch/x86/Kconfig.debug" source "security/Kconfig" Index: linux-2.6-lttng.stable/arch/xtensa/Kconfig =================================================================== --- linux-2.6-lttng.stable.orig/arch/xtensa/Kconfig 2007-10-30 20:20:23.000000000 -0400 +++ linux-2.6-lttng.stable/arch/xtensa/Kconfig 2007-10-30 20:21:07.000000000 -0400 @@ -251,8 +251,6 @@ config EMBEDDED_RAMDISK_IMAGE provide one yourself. endmenu -source "kernel/Kconfig.instrumentation" - source "arch/xtensa/Kconfig.debug" source "security/Kconfig" -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/