Skip to content

Commit 09caded

Browse files
Mathieu DesnoyersLinus Torvalds
authored andcommitted
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>
1 parent 1c3f0b8 commit 09caded

38 files changed

Lines changed: 73 additions & 420 deletions

File tree

‎arch/alpha/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ source "drivers/Kconfig"
654654

655655
source "fs/Kconfig"
656656

657-
source "arch/alpha/oprofile/Kconfig"
657+
source "kernel/Kconfig.instrumentation"
658658

659659
source "arch/alpha/Kconfig.debug"
660660

‎arch/alpha/oprofile/Kconfig‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ endmenu
10681068

10691069
source "fs/Kconfig"
10701070

1071-
source "arch/arm/oprofile/Kconfig"
1071+
source "kernel/Kconfig.instrumentation"
10721072

10731073
source "arch/arm/Kconfig.debug"
10741074

‎arch/arm/oprofile/Kconfig‎

Lines changed: 0 additions & 42 deletions
This file was deleted.

‎arch/blackfin/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ source "drivers/Kconfig"
10121012

10131013
source "fs/Kconfig"
10141014

1015-
source "arch/blackfin/oprofile/Kconfig"
1015+
source "kernel/Kconfig.instrumentation"
10161016

10171017
menu "Kernel hacking"
10181018

‎arch/blackfin/oprofile/Kconfig‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎arch/cris/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ source "sound/Kconfig"
196196

197197
source "drivers/usb/Kconfig"
198198

199+
source "kernel/Kconfig.instrumentation"
200+
199201
source "arch/cris/Kconfig.debug"
200202

201203
source "security/Kconfig"

‎arch/frv/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ source "drivers/Kconfig"
375375

376376
source "fs/Kconfig"
377377

378+
source "kernel/Kconfig.instrumentation"
379+
378380
source "arch/frv/Kconfig.debug"
379381

380382
source "security/Kconfig"

‎arch/h8300/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ endmenu
223223

224224
source "fs/Kconfig"
225225

226+
source "kernel/Kconfig.instrumentation"
227+
226228
source "arch/h8300/Kconfig.debug"
227229

228230
source "security/Kconfig"

‎arch/i386/Kconfig‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,31 +1256,6 @@ source "drivers/Kconfig"
12561256

12571257
source "fs/Kconfig"
12581258

1259-
menuconfig INSTRUMENTATION
1260-
bool "Instrumentation Support"
1261-
default y
1262-
---help---
1263-
Say Y here to get to see options related to performance measurement,
1264-
debugging, and testing. This option alone does not add any kernel code.
1265-
1266-
If you say N, all options in this submenu will be skipped and disabled.
1267-
1268-
if INSTRUMENTATION
1269-
1270-
source "arch/x86/oprofile/Kconfig"
1271-
1272-
config KPROBES
1273-
bool "Kprobes"
1274-
depends on KALLSYMS && MODULES
1275-
help
1276-
Kprobes allows you to trap at almost any kernel address and
1277-
execute a callback function. register_kprobe() establishes
1278-
a probepoint and specifies the callback. Kprobes is useful
1279-
for kernel debugging, non-intrusive instrumentation and testing.
1280-
If in doubt, say "N".
1281-
1282-
endif # INSTRUMENTATION
1283-
12841259
source "arch/i386/Kconfig.debug"
12851260

12861261
source "security/Kconfig"

0 commit comments

Comments
 (0)