mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
To: <linux-kernel@vger.kernel.org>
Subject: Enable config_schedstats for all arches
Date: Wed, 13 Oct 2004 15:23:53 -0700	[thread overview]
Message-ID: <200410132222.i9DMMl626057@unix-os.sc.intel.com> (raw)

Config option CONFIG_SCHEDSTATS is currently enabled via arch
specific Kconfig.debug. Only x86 and ppc arches has code to
turn it on.  Why not put it in generic lib/Kconfig.debug so
it is done once to enable everyone?


Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>

diff -Nur linux-2.6.9-rc4/arch/i386/Kconfig.debug linux-2.6.9-rc4.new/arch/i386/Kconfig.debug
--- linux-2.6.9-rc4/arch/i386/Kconfig.debug	2004-10-10 19:57:59.000000000 -0700
+++ linux-2.6.9-rc4.new/arch/i386/Kconfig.debug	2004-10-13 14:00:23.000000000 -0700
@@ -55,18 +55,6 @@
 	  on the VM subsystem for higher order allocations. This option
 	  will also use IRQ stacks to compensate for the reduced stackspace.

-config SCHEDSTATS
-	bool "Collect scheduler statistics"
-	depends on DEBUG_KERNEL && PROC_FS
-	help
-	  If you say Y here, additional code will be inserted into the
-	  scheduler and related routines to collect statistics about
-	  scheduler behavior and provide them in /proc/schedstat.  These
-	  stats may be useful for both tuning and debugging the scheduler
-	  If you aren't debugging the scheduler or trying to tune a specific
-	  application, you can say N to avoid the very slight overhead
-	  this adds.
-
 config X86_FIND_SMP_CONFIG
 	bool
 	depends on X86_LOCAL_APIC || X86_VOYAGER
diff -Nur linux-2.6.9-rc4/arch/ppc/Kconfig.debug linux-2.6.9-rc4.new/arch/ppc/Kconfig.debug
--- linux-2.6.9-rc4/arch/ppc/Kconfig.debug	2004-10-10 19:58:49.000000000 -0700
+++ linux-2.6.9-rc4.new/arch/ppc/Kconfig.debug	2004-10-13 15:03:12.000000000 -0700
@@ -53,18 +53,6 @@
 	  Unless you are intending to debug the kernel with one of these
 	  machines, say N here.

-config SCHEDSTATS
-	bool "Collect scheduler statistics"
-	depends on DEBUG_KERNEL && PROC_FS
-	help
-	  If you say Y here, additional code will be inserted into the
-	  scheduler and related routines to collect statistics about
-	  scheduler behavior and provide them in /proc/schedstat.  These
-	  stats may be useful for both tuning and debugging the scheduler
-	  If you aren't debugging the scheduler or trying to tune a specific
-	  application, you can say N to avoid the very slight overhead
-	  this adds.
-
 config BOOTX_TEXT
 	bool "Support for early boot text console (BootX or OpenFirmware only)"
 	depends PPC_OF
diff -Nur linux-2.6.9-rc4/arch/ppc64/Kconfig.debug linux-2.6.9-rc4.new/arch/ppc64/Kconfig.debug
--- linux-2.6.9-rc4/arch/ppc64/Kconfig.debug	2004-10-10 19:58:49.000000000 -0700
+++ linux-2.6.9-rc4.new/arch/ppc64/Kconfig.debug	2004-10-13 15:03:28.000000000 -0700
@@ -44,16 +44,4 @@
 	  for handling hard and soft interrupts.  This can help avoid
 	  overflowing the process kernel stacks.

-config SCHEDSTATS
-	bool "Collect scheduler statistics"
-	depends on DEBUG_KERNEL && PROC_FS
-	help
-	  If you say Y here, additional code will be inserted into the
-	  scheduler and related routines to collect statistics about
-	  scheduler behavior and provide them in /proc/schedstat.  These
-	  stats may be useful for both tuning and debugging the scheduler
-	  If you aren't debugging the scheduler or trying to tune a specific
-	  application, you can say N to avoid the very slight overhead
-	  this adds.
-
 endmenu
diff -Nur linux-2.6.9-rc4/arch/x86_64/Kconfig.debug linux-2.6.9-rc4.new/arch/x86_64/Kconfig.debug
--- linux-2.6.9-rc4/arch/x86_64/Kconfig.debug	2004-10-10 19:57:06.000000000 -0700
+++ linux-2.6.9-rc4.new/arch/x86_64/Kconfig.debug	2004-10-13 15:03:40.000000000 -0700
@@ -18,18 +18,6 @@
 	  Fill __init and __initdata at the end of boot. This helps debugging
 	  illegal uses of __init and __initdata after initialization.

-config SCHEDSTATS
-	bool "Collect scheduler statistics"
-	depends on DEBUG_KERNEL && PROC_FS
-	help
-	  If you say Y here, additional code will be inserted into the
-	  scheduler and related routines to collect statistics about
-	  scheduler behavior and provide them in /proc/schedstat.  These
-	  stats may be useful for both tuning and debugging the scheduler
-	  If you aren't debugging the scheduler or trying to tune a specific
-	  application, you can say N to avoid the very slight overhead
-	  this adds.
-
 config IOMMU_DEBUG
        depends on GART_IOMMU && DEBUG_KERNEL
        bool "Enable IOMMU debugging"
diff -Nur linux-2.6.9-rc4/lib/Kconfig.debug linux-2.6.9-rc4.new/lib/Kconfig.debug
--- linux-2.6.9-rc4/lib/Kconfig.debug	2004-10-10 19:58:41.000000000 -0700
+++ linux-2.6.9-rc4.new/lib/Kconfig.debug	2004-10-13 14:00:50.000000000 -0700
@@ -28,6 +28,18 @@
 	  Enables console device to interpret special characters as
 	  commands to dump state information.

+config SCHEDSTATS
+	bool "Collect scheduler statistics"
+	depends on DEBUG_KERNEL && PROC_FS
+	help
+	  If you say Y here, additional code will be inserted into the
+	  scheduler and related routines to collect statistics about
+	  scheduler behavior and provide them in /proc/schedstat.  These
+	  stats may be useful for both tuning and debugging the scheduler
+	  If you aren't debugging the scheduler or trying to tune a specific
+	  application, you can say N to avoid the very slight overhead
+	  this adds.
+
 config DEBUG_SLAB
 	bool "Debug memory allocations"
 	depends on DEBUG_KERNEL && (ALPHA || ARM || X86 || IA64 || M68K || MIPS || PARISC || PPC32 || PPC64 || ARCH_S390 || SPARC32
|| SPARC64 || USERMODE || X86_64)



                 reply	other threads:[~2004-10-13 22:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410132222.i9DMMl626057@unix-os.sc.intel.com \
    --to=kenneth.w.chen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®