浏览代码

Use menuconfig objects II - oprofile

Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Cc: Philippe Elie <phil.el@wanadoo.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Jan Engelhardt 18 年之前
父节点
当前提交
2a07c8f9cd
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      arch/i386/Kconfig

+ 7 - 2
arch/i386/Kconfig

@@ -1212,8 +1212,12 @@ source "drivers/Kconfig"
 
 
 source "fs/Kconfig"
 source "fs/Kconfig"
 
 
-menu "Instrumentation Support"
+menuconfig INSTRUMENTATION
+	bool "Instrumentation Support"
 	depends on EXPERIMENTAL
 	depends on EXPERIMENTAL
+	default y
+
+if INSTRUMENTATION
 
 
 source "arch/i386/oprofile/Kconfig"
 source "arch/i386/oprofile/Kconfig"
 
 
@@ -1226,7 +1230,8 @@ config KPROBES
 	  a probepoint and specifies the callback.  Kprobes is useful
 	  a probepoint and specifies the callback.  Kprobes is useful
 	  for kernel debugging, non-intrusive instrumentation and testing.
 	  for kernel debugging, non-intrusive instrumentation and testing.
 	  If in doubt, say "N".
 	  If in doubt, say "N".
-endmenu
+
+endif # INSTRUMENTATION
 
 
 source "arch/i386/Kconfig.debug"
 source "arch/i386/Kconfig.debug"