Sort stack dumps on non-root faults
PATCH 1/1 Sort stack dumps on non-root faults
Hi Philippe,
while trying to understand Petr's problem (no clue yet), I came across
this: dump_stack was called unconditionally, ipipe_trace_panic_dump was missing.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
--- arch/x86/kernel/ipipe.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
arch/x86/kernel/ipipe.c +7 -4
@@ -770,19 +770,22 @@ int __ipipe_handle_exception(struct pt_ripipe_trace_panic_freeze ();/* Always warn about user land and unfixable faults. */ -if ((error_code &4 ) || !search_exception_tables (instruction_pointer (regs))) +if ((error_code &4 ) || !search_exception_tables (instruction_pointer (regs))) {printk (KERN_ERR "BUG: Unhandled exception over domain" " %s at 0x%lx - switching to ROOT\n" , ipd->name,instruction_pointer (regs)); +dump_stack (); +ipipe_trace_panic_dump ();#ifdef CONFIG_IPIPE_DEBUG /* Also report fixable ones when debugging is enabled. */ - else + }else {printk (KERN_WARNING "WARNING: Fixable exception over " "domain %s at 0x%lx - switching to ROOT\n" , ipd->name,instruction_pointer (regs)); +dump_stack (); +ipipe_trace_panic_dump ();#endif /* CONFIG_IPIPE_DEBUG */ - -dump_stack (); + } } __ipipe_std_extable[vector](regs, error_code);