ARM: add "8<--- cut here ---" to kernel dumps
PATCH 1/1 ARM: add "8<--- cut here ---" to kernel dumps
Add a "8<--- cut here ---" marker to kernel dumps to help users cut the dump at the right place when emailing list, rather than cutting off the first line which gives the reason for the dump.
--- arch/arm/kernel/traps.c | 1 + arch/arm/mm/fault.c | 3 +++ 2 files changed, 4 insertions(+)
arch/arm/kernel/traps.c +1 -0
@@ -729,6 +729,7 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs)#ifdef CONFIG_DEBUG_USER if (user_debug &UDBG_BADABORT ) { +pr_err ("8<--- cut here ---\n" );pr_err ("[%d] %s: bad data abort: code %d instr 0x%08lx\n" ,task_pid_nr (current), current->comm, code, instr);dump_instr (KERN_ERR , regs);
arch/arm/mm/fault.c +3 -0
@@ -142,6 +142,7 @@ __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,* No handler, we'll have to terminate things with extreme prejudice. */ bust_spinlocks (1 ); +pr_alert ("8<--- cut here ---\n" );pr_alert ("Unable to handle kernel %s at virtual address %08lx\n" , (addr <PAGE_SIZE ) ?"NULL pointer dereference" :"paging request" , addr);
@@ -167,6 +168,7 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,#ifdef CONFIG_DEBUG_USER if (((user_debug &UDBG_SEGV ) && (sig ==SIGSEGV )) || ((user_debug &UDBG_BUS ) && (sig ==SIGBUS ))) { +pr_err ("8<--- cut here ---\n" );printk (KERN_DEBUG "%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n" , tsk->comm, sig, addr, fsr);show_pte (tsk->mm, addr);
@@ -556,6 +558,7 @@ do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)if (!inf->fn (addr, fsr & ~FSR_LNX_PF , regs))return ; +pr_alert ("8<--- cut here ---\n" );pr_alert ("Unhandled fault: %s (0x%03x) at 0x%08lx\n" , inf->name, fsr, addr);show_pte (current->mm, addr);
Signature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 3 lines · Russell King
Add a "8<--- cut here ---" marker to kernel dumps to help users cut the dump at the right place when emailing list, rather than cutting off the first line which gives the reason for the dump.
Hi Russell
Good idea.
Is it worth also putting a marked at the end? I sometime get crash dumps with the stack trace chopped off.
Thanks
Andrew
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Russell King - ARM Linux admin
maintainerQuoted 11 lines · Andrew Lunn
Quoted 3 lines · Russell King
Add a "8<--- cut here ---" marker to kernel dumps to help users cut the dump at the right place when emailing list, rather than cutting off the first line which gives the reason for the dump.
Hi Russell
Good idea.
Is it worth also putting a marked at the end? I sometime get crash dumps with the stack trace chopped off.
There is already a marker at the end - print_oops_end_marker() prints an "---[ end trace <hex> ]---" marker.
Signature · 8 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel