Skip to content

Commit

Permalink
lib: turn CONFIG_STACKTRACE into an actual option.
Browse files Browse the repository at this point in the history
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>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Aug 29, 2014
1 parent ce8369b commit 0c38e1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,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"
Expand Down

0 comments on commit 0c38e1f

Please sign in to comment.