Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] i386: Fix up backtrace fallback patch

I didn't test all compilation combinations. Shame on me.
And fix a missing option in the boot option following x86-64 (Jan Beulich)

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Andi Kleen and committed by
Linus Torvalds
70583161 65f87d8a

+6 -4
+6 -4
arch/i386/kernel/traps.c
··· 190 190 if (unw_ret > 0 && !arch_unw_user_mode(&info)) { 191 191 #ifdef CONFIG_STACK_UNWIND 192 192 print_symbol("DWARF2 unwinder stuck at %s\n", 193 - UNW_PC(info.regs)); 193 + UNW_PC(&info)); 194 194 if (call_trace == 1) { 195 195 printk("Leftover inexact backtrace:\n"); 196 - if (UNW_SP(info.regs)) 197 - stack = (void *)UNW_SP(info.regs); 196 + if (UNW_SP(&info)) 197 + stack = (void *)UNW_SP(&info); 198 198 } else if (call_trace > 1) 199 199 return; 200 200 else ··· 1249 1249 call_trace = -1; 1250 1250 else if (strcmp(s, "both") == 0) 1251 1251 call_trace = 0; 1252 - else if (strcmp(s, "new") == 0) 1252 + else if (strcmp(s, "newfallback") == 0) 1253 1253 call_trace = 1; 1254 + else if (strcmp(s, "new") == 2) 1255 + call_trace = 2; 1254 1256 return 1; 1255 1257 } 1256 1258 __setup("call_trace=", call_trace_setup);