When CONFIG_KALLSYMS is not set stack local is not initialized. Therefore show_trace() won't display anything useful. This patch uses prepare_frametrace() to setup the stack pointer before calling show_trace(). Signed-off-by: Franck Bui-Huu <vagabon.xyz@xxxxxxxxx> --- arch/mips/kernel/traps.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 15fa445..07191a6 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -203,17 +203,10 @@ void show_stack(struct task_struct *task */ void dump_stack(void) { - unsigned long stack; + struct pt_regs regs; -#ifdef CONFIG_KALLSYMS - if (!raw_show_trace) { - struct pt_regs regs; - prepare_frametrace(®s); - show_backtrace(current, ®s); - return; - } -#endif - show_trace(&stack); + prepare_frametrace(®s); + show_backtrace(current, ®s); } EXPORT_SYMBOL(dump_stack); -- 1.4.2.rc2