diff options
author | Paolo \'Blaisorblade\' Giarrusso <blaisorblade_spam@yahoo.it> | 2005-01-14 23:30:49 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-14 23:30:49 -0800 |
commit | 717d2f8d041a4a63115b031d4f18af8b01c37d4e (patch) | |
tree | 01b1eb22b374047110ec4c6829cac28cab315aa0 /arch | |
parent | b2497812222ce6956bf62c5b39897162f7d0c0f5 (diff) | |
download | history-717d2f8d041a4a63115b031d4f18af8b01c37d4e.tar.gz |
[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: Bodo 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: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/kernel/sysrq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index 80bff94cdf1e7c..e630438f9e73ee 100644 --- a/arch/um/kernel/sysrq.c +++ b/arch/um/kernel/sysrq.c @@ -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"); } |