diff options
author | Richard Weinberger <richard@nod.at> | 2013-09-23 17:38:01 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2013-11-17 11:27:25 +0100 |
commit | 9d1ee8ce92e16c6aa0a3fd91ee8ed9e403b3a2eb (patch) | |
tree | fa38685d0c62cbc97d9016750bb18c7feac54799 /arch/x86/um/sysrq_64.c | |
parent | 5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52 (diff) |
um: Rewrite show_stack()
Currently on UML stack traces are not very reliable and both
x86 and x86_64 have their on implementations.
This patch unifies both and adds support to outline unreliable
functions calls.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/sysrq_64.c')
-rw-r--r-- | arch/x86/um/sysrq_64.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/um/sysrq_64.c b/arch/x86/um/sysrq_64.c index a0e7fb1134a0..38b4e4abd0f8 100644 --- a/arch/x86/um/sysrq_64.c +++ b/arch/x86/um/sysrq_64.c @@ -12,7 +12,7 @@ #include <asm/ptrace.h> #include <asm/sysrq.h> -void __show_regs(struct pt_regs *regs) +void show_regs(struct pt_regs *regs) { printk("\n"); print_modules(); @@ -33,9 +33,3 @@ void __show_regs(struct pt_regs *regs) printk(KERN_INFO "R13: %016lx R14: %016lx R15: %016lx\n", PT_REGS_R13(regs), PT_REGS_R14(regs), PT_REGS_R15(regs)); } - -void show_regs(struct pt_regs *regs) -{ - __show_regs(regs); - show_trace(current, (unsigned long *) ®s); -} |