Skip to content

Commit

Permalink
Combine instrumentation menus in kernel/Kconfig.instrumentation
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Mathieu Desnoyers authored and Linus Torvalds committed Oct 19, 2007
1 parent 1c3f0b8 commit 09caded
Show file tree
Hide file tree
Showing 38 changed files with 73 additions and 420 deletions.
2 changes: 1 addition & 1 deletion arch/alpha/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/alpha/oprofile/Kconfig"
source "kernel/Kconfig.instrumentation"

source "arch/alpha/Kconfig.debug"

Expand Down
23 changes: 0 additions & 23 deletions arch/alpha/oprofile/Kconfig

This file was deleted.

2 changes: 1 addition & 1 deletion arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ endmenu

source "fs/Kconfig"

source "arch/arm/oprofile/Kconfig"
source "kernel/Kconfig.instrumentation"

source "arch/arm/Kconfig.debug"

Expand Down
42 changes: 0 additions & 42 deletions arch/arm/oprofile/Kconfig

This file was deleted.

2 changes: 1 addition & 1 deletion arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/blackfin/oprofile/Kconfig"
source "kernel/Kconfig.instrumentation"

menu "Kernel hacking"

Expand Down
29 changes: 0 additions & 29 deletions arch/blackfin/oprofile/Kconfig

This file was deleted.

2 changes: 2 additions & 0 deletions arch/cris/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ source "sound/Kconfig"

source "drivers/usb/Kconfig"

source "kernel/Kconfig.instrumentation"

source "arch/cris/Kconfig.debug"

source "security/Kconfig"
Expand Down
2 changes: 2 additions & 0 deletions arch/frv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ source "drivers/Kconfig"

source "fs/Kconfig"

source "kernel/Kconfig.instrumentation"

source "arch/frv/Kconfig.debug"

source "security/Kconfig"
Expand Down
2 changes: 2 additions & 0 deletions arch/h8300/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ endmenu

source "fs/Kconfig"

source "kernel/Kconfig.instrumentation"

source "arch/h8300/Kconfig.debug"

source "security/Kconfig"
Expand Down
25 changes: 0 additions & 25 deletions arch/i386/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1256,31 +1256,6 @@ source "drivers/Kconfig"

source "fs/Kconfig"

menuconfig INSTRUMENTATION
bool "Instrumentation Support"
default y
---help---
Say Y here to get to see options related to performance measurement,
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 INSTRUMENTATION

source "arch/x86/oprofile/Kconfig"

config KPROBES
bool "Kprobes"
depends on KALLSYMS && MODULES
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".

endif # INSTRUMENTATION

source "arch/i386/Kconfig.debug"

source "security/Kconfig"
Expand Down
15 changes: 1 addition & 14 deletions arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -592,20 +592,7 @@ config IRQ_PER_CPU

source "arch/ia64/hp/sim/Kconfig"

menu "Instrumentation Support"

source "arch/ia64/oprofile/Kconfig"

config KPROBES
bool "Kprobes"
depends on KALLSYMS && MODULES
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".
endmenu
source "kernel/Kconfig.instrumentation"

source "arch/ia64/Kconfig.debug"

Expand Down
20 changes: 0 additions & 20 deletions arch/ia64/oprofile/Kconfig

This file was deleted.

2 changes: 1 addition & 1 deletion arch/m32r/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/m32r/oprofile/Kconfig"
source "kernel/Kconfig.instrumentation"

source "arch/m32r/Kconfig.debug"

Expand Down
23 changes: 0 additions & 23 deletions arch/m32r/oprofile/Kconfig

This file was deleted.

2 changes: 2 additions & 0 deletions arch/m68k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,8 @@ endmenu

source "fs/Kconfig"

source "kernel/Kconfig.instrumentation"

source "arch/m68k/Kconfig.debug"

source "security/Kconfig"
Expand Down
2 changes: 2 additions & 0 deletions arch/m68knommu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@ source "drivers/Kconfig"

source "fs/Kconfig"

source "kernel/Kconfig.instrumentation"

source "arch/m68knommu/Kconfig.debug"

source "security/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/mips/oprofile/Kconfig"
source "kernel/Kconfig.instrumentation"

source "arch/mips/Kconfig.debug"

Expand Down
23 changes: 0 additions & 23 deletions arch/mips/oprofile/Kconfig

This file was deleted.

2 changes: 1 addition & 1 deletion arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/parisc/oprofile/Kconfig"
source "kernel/Kconfig.instrumentation"

source "arch/parisc/Kconfig.debug"

Expand Down
23 changes: 0 additions & 23 deletions arch/parisc/oprofile/Kconfig

This file was deleted.

15 changes: 1 addition & 14 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -669,20 +669,7 @@ source "arch/powerpc/sysdev/qe_lib/Kconfig"

source "lib/Kconfig"

menu "Instrumentation Support"

source "arch/powerpc/oprofile/Kconfig"

config KPROBES
bool "Kprobes"
depends on !BOOKE && !4xx && KALLSYMS && MODULES
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".
endmenu
source "kernel/Kconfig.instrumentation"

source "arch/powerpc/Kconfig.debug"

Expand Down
24 changes: 0 additions & 24 deletions arch/powerpc/oprofile/Kconfig

This file was deleted.

2 changes: 1 addition & 1 deletion arch/ppc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ endmenu

source "lib/Kconfig"

source "arch/powerpc/oprofile/Kconfig"
source "kernel/Kconfig.instrumentation"

source "arch/ppc/Kconfig.debug"

Expand Down
Loading

0 comments on commit 09caded

Please sign in to comment.