aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/process.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-11-19 22:24:07 -0500
committerPaul Mackerras <paulus@samba.org>2008-12-03 04:46:35 -0500
commitc4d04be11f99cc9ce4e3801a5da235727db704a9 (patch)
treeeb5e132a765e0b23086f2a6e5ac88ba7f475aedd /arch/powerpc/kernel/process.c
parent0186f47e703fb7aa14b54459d642ef5374b3a685 (diff)
powerpc: Allow the max stack trace depth to be configured
On my screen, when something crashes, I only have space for maybe 16 functions of the stack trace before the information above it scrolls off the screen. It's easy to hack the kernel to print out only that much, but it's harder to remember to do it. This introduces a config option for it so that I can keep the setting in my config. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r--arch/powerpc/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
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
1003static int kstack_depth_to_print = 64; 1003static int kstack_depth_to_print = CONFIG_PRINT_STACK_DEPTH;
1004 1004
1005void show_stack(struct task_struct *tsk, unsigned long *stack) 1005void show_stack(struct task_struct *tsk, unsigned long *stack)
1006{ 1006{