Commit 717d2f8d authored by Paolo \'Blaisorblade\' Giarrusso's avatar Paolo \'Blaisorblade\' Giarrusso Committed by Linus Torvalds

[PATCH] uml: add stack addresses to dumps

From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>

Add stack addresses to print of symbols from stack trace.
For stack analysis it's important to have this information.
Signed-off-by: default avatarBodo Stroesser <bstroesser@fujitsu-siemens.com>

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.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b2497812
......@@ -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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment