Skip to contentSkip to conversation

oprofile: Move the Kconfig options to a "Profiling" section

PATCH New Christopher SMITH 1 participant 1 message Jul 15, 2009 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oprofile: Move the Kconfig options to a "Profiling" section

This patch moves the oprofile Kconfig options from "General Setup" to a dedicated "Profiling" section under Kernel Hacking.

---
IMHO, it seems a more intuitive place to keep them?

---
 arch/Kconfig             |   31 -----------------------------
 drivers/oprofile/Kconfig |   48 ++++++++++++++++++++++++++++++++++++++++++++++
 init/Kconfig             |    6 -----
 lib/Kconfig.debug        |    1 +
 4 files changed, 49 insertions(+), 37 deletions(-)
 create mode 100644 drivers/oprofile/Kconfig
arch/Kconfig +0 -31
index 99193b1..5310913 100644
@@ -2,37 +2,6 @@
 # General architecture dependent options
 #
 
-config OPROFILE
-	tristate "OProfile system profiling (EXPERIMENTAL)"
-	depends on PROFILING
-	depends on HAVE_OPROFILE
-	depends on TRACING_SUPPORT
-	select TRACING
-	select RING_BUFFER
-	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 OPROFILE_IBS
-	bool "OProfile AMD IBS support (EXPERIMENTAL)"
-	default n
-	depends on OPROFILE && SMP && X86
-	help
-          Instruction-Based Sampling (IBS) is a new profiling
-          technique that provides rich, precise program performance
-          information. IBS is introduced by AMD Family10h processors
-          (AMD Opteron Quad-Core processor "Barcelona") to overcome
-          the limitations of conventional performance counter
-          sampling.
-
-	  If unsure, say N.
-
-config HAVE_OPROFILE
-	bool
-
 config KPROBES
 	bool "Kprobes"
 	depends on KALLSYMS && MODULES
drivers/oprofile/Kconfig new file +48 -0

48 lines not on this page · raw message

init/Kconfig +0 -6
index 1ce05a4..1954988 100644
@@ -1048,12 +1048,6 @@ 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.
-
 #
 # Place an empty function call at each tracepoint site. Can be
 # dynamically changed for a probe function.
lib/Kconfig.debug +1 -0
index 12327b2..7067b3b 100644
@@ -881,6 +881,7 @@ config SYSCTL_SYSCALL_CHECK
 
 source mm/Kconfig.debug
 source kernel/trace/Kconfig
+source drivers/oprofile/Kconfig
 
 config PROVIDE_OHCI1394_DMA_INIT
 	bool "Remote debugging over FireWire early on boot"
Signature · 1 line
1.6.0.6