forked from Minki/linux
lib: consolidate DEBUG_STACK_USAGE option
Most arches define CONFIG_DEBUG_STACK_USAGE exactly the same way. Move it to lib/Kconfig.debug so each arch doesn't have to define it. This obviously makes the option generic, but that's fine because the config is already used in generic code. It's not obvious to me that sysrq-P actually does anything caution by keeping the most inclusive wording. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Cc: Chris Metcalf <cmetcalf@tilera.com> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: Richard Weinberger <richard@nod.at> Acked-by: Mike Frysinger <vapier@gentoo.org> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Hirokazu Takata <takata@linux-m32r.org> Acked-by: Ralf Baechle <ralf@linux-mips.org> Cc: Paul Mackerras <paulus@samba.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Chen Liqin <liqin.chen@sunplusct.com> Cc: Lennox Wu <lennox.wu@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c84598bbfa
commit
5ca43f6c3b
@ -63,13 +63,6 @@ config DEBUG_USER
|
|||||||
8 - SIGSEGV faults
|
8 - SIGSEGV faults
|
||||||
16 - SIGBUS faults
|
16 - SIGBUS faults
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Enable stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T output.
|
|
||||||
|
|
||||||
# These options are only for real kernel hackers who want to get their hands dirty.
|
# These options are only for real kernel hackers who want to get their hands dirty.
|
||||||
config DEBUG_LL
|
config DEBUG_LL
|
||||||
bool "Kernel low-level debugging functions"
|
bool "Kernel low-level debugging functions"
|
||||||
|
@ -9,15 +9,6 @@ config DEBUG_STACKOVERFLOW
|
|||||||
This option will cause messages to be printed if free stack space
|
This option will cause messages to be printed if free stack space
|
||||||
drops below a certain limit.
|
drops below a certain limit.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Enable stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config DEBUG_VERBOSE
|
config DEBUG_VERBOSE
|
||||||
bool "Verbose fault messages"
|
bool "Verbose fault messages"
|
||||||
default y
|
default y
|
||||||
|
@ -9,15 +9,6 @@ config DEBUG_STACKOVERFLOW
|
|||||||
This option will cause messages to be printed if free stack space
|
This option will cause messages to be printed if free stack space
|
||||||
drops below a certain limit.
|
drops below a certain limit.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config DEBUG_PAGEALLOC
|
config DEBUG_PAGEALLOC
|
||||||
bool "Debug page memory allocations"
|
bool "Debug page memory allocations"
|
||||||
depends on DEBUG_KERNEL && BROKEN
|
depends on DEBUG_KERNEL && BROKEN
|
||||||
|
@ -76,15 +76,6 @@ config DEBUG_STACKOVERFLOW
|
|||||||
provides another way to check stack overflow happened on kernel mode
|
provides another way to check stack overflow happened on kernel mode
|
||||||
stack usually caused by nested interruption.
|
stack usually caused by nested interruption.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Enable stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config SMTC_IDLE_HOOK_DEBUG
|
config SMTC_IDLE_HOOK_DEBUG
|
||||||
bool "Enable additional debug checks before going into CPU idle loop"
|
bool "Enable additional debug checks before going into CPU idle loop"
|
||||||
depends on DEBUG_KERNEL && MIPS_MT_SMTC
|
depends on DEBUG_KERNEL && MIPS_MT_SMTC
|
||||||
|
@ -35,15 +35,6 @@ config DEBUG_STACKOVERFLOW
|
|||||||
This option will cause messages to be printed if free stack space
|
This option will cause messages to be printed if free stack space
|
||||||
drops below a certain limit.
|
drops below a certain limit.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config HCALL_STATS
|
config HCALL_STATS
|
||||||
bool "Hypervisor call instrumentation"
|
bool "Hypervisor call instrumentation"
|
||||||
depends on PPC_PSERIES && DEBUG_FS && TRACEPOINTS
|
depends on PPC_PSERIES && DEBUG_FS && TRACEPOINTS
|
||||||
|
@ -16,15 +16,6 @@ config CMDLINE
|
|||||||
other cases you can specify kernel args so that you don't have
|
other cases you can specify kernel args so that you don't have
|
||||||
to set them up in board prom initialization routines.
|
to set them up in board prom initialization routines.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Enable stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config RUNTIME_DEBUG
|
config RUNTIME_DEBUG
|
||||||
bool "Enable run-time debugging"
|
bool "Enable run-time debugging"
|
||||||
depends on DEBUG_KERNEL
|
depends on DEBUG_KERNEL
|
||||||
|
@ -28,15 +28,6 @@ config STACK_DEBUG
|
|||||||
every function call and will therefore incur a major
|
every function call and will therefore incur a major
|
||||||
performance hit. Most users should say N.
|
performance hit. Most users should say N.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config 4KSTACKS
|
config 4KSTACKS
|
||||||
bool "Use 4Kb for kernel stacks instead of 8Kb"
|
bool "Use 4Kb for kernel stacks instead of 8Kb"
|
||||||
depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB
|
depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB
|
||||||
|
@ -6,15 +6,6 @@ config TRACE_IRQFLAGS_SUPPORT
|
|||||||
|
|
||||||
source "lib/Kconfig.debug"
|
source "lib/Kconfig.debug"
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Enable stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config DEBUG_DCFLUSH
|
config DEBUG_DCFLUSH
|
||||||
bool "D-cache flush debugging"
|
bool "D-cache flush debugging"
|
||||||
depends on SPARC64 && DEBUG_KERNEL
|
depends on SPARC64 && DEBUG_KERNEL
|
||||||
|
@ -21,15 +21,6 @@ config DEBUG_STACKOVERFLOW
|
|||||||
This option will cause messages to be printed if free stack space
|
This option will cause messages to be printed if free stack space
|
||||||
drops below a certain limit.
|
drops below a certain limit.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config DEBUG_EXTRA_FLAGS
|
config DEBUG_EXTRA_FLAGS
|
||||||
string "Additional compiler arguments when building with '-g'"
|
string "Additional compiler arguments when building with '-g'"
|
||||||
depends on DEBUG_INFO
|
depends on DEBUG_INFO
|
||||||
|
@ -28,16 +28,6 @@ config GCOV
|
|||||||
If you're involved in UML kernel development and want to use gcov,
|
If you're involved in UML kernel development and want to use gcov,
|
||||||
say Y. If you're unsure, say N.
|
say Y. If you're unsure, say N.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Stack utilization instrumentation"
|
|
||||||
default N
|
|
||||||
help
|
|
||||||
Track the maximum kernel stack usage - this will look at each
|
|
||||||
kernel stack at process exit and log it if it's the deepest
|
|
||||||
stack seen so far.
|
|
||||||
|
|
||||||
This option will slow down process creation and destruction somewhat.
|
|
||||||
|
|
||||||
config EARLY_PRINTK
|
config EARLY_PRINTK
|
||||||
bool "Early printk"
|
bool "Early printk"
|
||||||
default y
|
default y
|
||||||
|
@ -27,13 +27,6 @@ config EARLY_PRINTK
|
|||||||
with klogd/syslogd or the X server. You should normally N here,
|
with klogd/syslogd or the X server. You should normally N here,
|
||||||
unless you want to debug such a crash.
|
unless you want to debug such a crash.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Enable stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
help
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T output.
|
|
||||||
|
|
||||||
# These options are only for real kernel hackers who want to get their hands dirty.
|
# These options are only for real kernel hackers who want to get their hands dirty.
|
||||||
config DEBUG_LL
|
config DEBUG_LL
|
||||||
bool "Kernel low-level debugging functions"
|
bool "Kernel low-level debugging functions"
|
||||||
|
@ -66,15 +66,6 @@ config DEBUG_STACKOVERFLOW
|
|||||||
This option will cause messages to be printed if free stack space
|
This option will cause messages to be printed if free stack space
|
||||||
drops below a certain limit.
|
drops below a certain limit.
|
||||||
|
|
||||||
config DEBUG_STACK_USAGE
|
|
||||||
bool "Stack utilization instrumentation"
|
|
||||||
depends on DEBUG_KERNEL
|
|
||||||
---help---
|
|
||||||
Enables the display of the minimum amount of free stack which each
|
|
||||||
task has ever had available in the sysrq-T and sysrq-P debug output.
|
|
||||||
|
|
||||||
This option will slow down process creation somewhat.
|
|
||||||
|
|
||||||
config X86_PTDUMP
|
config X86_PTDUMP
|
||||||
bool "Export kernel pagetable layout to userspace via debugfs"
|
bool "Export kernel pagetable layout to userspace via debugfs"
|
||||||
depends on DEBUG_KERNEL
|
depends on DEBUG_KERNEL
|
||||||
|
@ -670,6 +670,15 @@ config STACKTRACE
|
|||||||
bool
|
bool
|
||||||
depends on STACKTRACE_SUPPORT
|
depends on STACKTRACE_SUPPORT
|
||||||
|
|
||||||
|
config DEBUG_STACK_USAGE
|
||||||
|
bool "Stack utilization instrumentation"
|
||||||
|
depends on DEBUG_KERNEL
|
||||||
|
help
|
||||||
|
Enables the display of the minimum amount of free stack which each
|
||||||
|
task has ever had available in the sysrq-T and sysrq-P debug output.
|
||||||
|
|
||||||
|
This option will slow down process creation somewhat.
|
||||||
|
|
||||||
config DEBUG_KOBJECT
|
config DEBUG_KOBJECT
|
||||||
bool "kobject debugging"
|
bool "kobject debugging"
|
||||||
depends on DEBUG_KERNEL
|
depends on DEBUG_KERNEL
|
||||||
|
Loading…
Reference in New Issue
Block a user