uml: add stack addresses to dumps
PATCH 10/11 uml: add stack addresses to dumps
From: Bodo Stroesser <[email protected]>
Add stack addresses to print of symbols from stack trace. For stack analysis it's important to have this information.
For UML, we should also copy the CONFIG_FRAME_POINTER stack walking from i386, and move the result to sys-i386.
Another note: this should be done for i386 also, if ksymoops does not have problems.
---
linux-2.6.11-paolo/arch/um/kernel/sysrq.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
arch/um/kernel/sysrq.c renamed from arch/um/kernel/sysrq.c~uml-add-stack-addresses-to-dumps +3 -2
@@ -25,12 +25,13 @@ void show_trace(unsigned long * stack)printk ("Call Trace: \n" );while (((long ) stack & (THREAD_SIZE -1 )) !=0 ) { - addr = *stack++; + addr = *stack;if (__kernel_text_address (addr)) { -printk (" [<%08lx>]" , addr); +printk ("%08lx: [<%08lx>]" , (unsigned long ) stack, addr);print_symbol (" %s" , addr);printk ("\n" ); } + stack++; }printk ("\n" ); }
_
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel