* lib: turn CONFIG_STACKTRACE into an actual option.
@ 2014-07-14 19:24 Dave Jones
2014-08-13 15:03 ` Dave Jones
0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2014-07-14 19:24 UTC (permalink / raw)
To: Linux Kernel; +Cc: mingo
I was puzzled why /proc/$$/stack had disappeared, until I figured out
I had disabled the last debug option that did a 'select STACKTRACE'.
This patch makes the option show up at config time, so it can be
enabled without enabling any of the more heavyweight debug options.
Signed-off-by: Dave Jones <davej@redhat.com>
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7a638aa3545b..96c64beac12a 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1008,8 +1008,13 @@ config TRACE_IRQFLAGS
either tracing or lock debugging.
config STACKTRACE
- bool
+ bool "Stack backtrace support"
depends on STACKTRACE_SUPPORT
+ help
+ This option causes the kernel to create a /proc/pid/stack for
+ every process, showing its current stack trace.
+ It is also used by various kernel debugging features that require
+ stack trace generation.
config DEBUG_KOBJECT
bool "kobject debugging"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* lib: turn CONFIG_STACKTRACE into an actual option.
2014-07-14 19:24 lib: turn CONFIG_STACKTRACE into an actual option Dave Jones
@ 2014-08-13 15:03 ` Dave Jones
2014-08-13 15:57 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2014-08-13 15:03 UTC (permalink / raw)
To: Linux Kernel, mingo; +Cc: Andrew Morton
I was puzzled why /proc/$$/stack had disappeared, until I figured out
I had disabled the last debug option that did a 'select STACKTRACE'.
This patch makes the option show up at config time, so it can be
enabled without enabling any of the more heavyweight debug options.
Signed-off-by: Dave Jones <davej@redhat.com>
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7a638aa3545b..96c64beac12a 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1008,8 +1008,13 @@ config TRACE_IRQFLAGS
either tracing or lock debugging.
config STACKTRACE
- bool
+ bool "Stack backtrace support"
depends on STACKTRACE_SUPPORT
+ help
+ This option causes the kernel to create a /proc/pid/stack for
+ every process, showing its current stack trace.
+ It is also used by various kernel debugging features that require
+ stack trace generation.
config DEBUG_KOBJECT
bool "kobject debugging"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: lib: turn CONFIG_STACKTRACE into an actual option.
2014-08-13 15:03 ` Dave Jones
@ 2014-08-13 15:57 ` Ingo Molnar
0 siblings, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2014-08-13 15:57 UTC (permalink / raw)
To: Dave Jones, Linux Kernel, mingo, Andrew Morton
* Dave Jones <davej@redhat.com> wrote:
> I was puzzled why /proc/$$/stack had disappeared, until I figured out
> I had disabled the last debug option that did a 'select STACKTRACE'.
> This patch makes the option show up at config time, so it can be
> enabled without enabling any of the more heavyweight debug options.
>
> Signed-off-by: Dave Jones <davej@redhat.com>
>
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 7a638aa3545b..96c64beac12a 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1008,8 +1008,13 @@ config TRACE_IRQFLAGS
> either tracing or lock debugging.
>
> config STACKTRACE
> - bool
> + bool "Stack backtrace support"
> depends on STACKTRACE_SUPPORT
> + help
> + This option causes the kernel to create a /proc/pid/stack for
> + every process, showing its current stack trace.
> + It is also used by various kernel debugging features that require
> + stack trace generation.
>
> config DEBUG_KOBJECT
> bool "kobject debugging"
Acked-by: Ingo Molnar <mingo@kernel.org>
Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-13 15:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-14 19:24 lib: turn CONFIG_STACKTRACE into an actual option Dave Jones
2014-08-13 15:03 ` Dave Jones
2014-08-13 15:57 ` Ingo Molnar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.