diff options
-rw-r--r-- | arch/powerpc/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/powerpc/kernel/process.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 15eb27861fc7..08f7cc0a1953 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug | |||
@@ -2,6 +2,15 @@ menu "Kernel hacking" | |||
2 | 2 | ||
3 | source "lib/Kconfig.debug" | 3 | source "lib/Kconfig.debug" |
4 | 4 | ||
5 | config PRINT_STACK_DEPTH | ||
6 | int "Stack depth to print" if DEBUG_KERNEL | ||
7 | default 64 | ||
8 | help | ||
9 | This option allows you to set the stack depth that the kernel | ||
10 | prints in stack traces. This can be useful if your display is | ||
11 | too small and stack traces cause important information to | ||
12 | scroll off the screen. | ||
13 | |||
5 | config DEBUG_STACKOVERFLOW | 14 | config DEBUG_STACKOVERFLOW |
6 | bool "Check for stack overflows" | 15 | bool "Check for stack overflows" |
7 | depends on DEBUG_KERNEL | 16 | depends on DEBUG_KERNEL |
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index b0383236dd07..51b201ddf9a1 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -1000,7 +1000,7 @@ unsigned long get_wchan(struct task_struct *p) | |||
1000 | return 0; | 1000 | return 0; |
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | static int kstack_depth_to_print = 64; | 1003 | static int kstack_depth_to_print = CONFIG_PRINT_STACK_DEPTH; |
1004 | 1004 | ||
1005 | void show_stack(struct task_struct *tsk, unsigned long *stack) | 1005 | void show_stack(struct task_struct *tsk, unsigned long *stack) |
1006 | { | 1006 | { |