diff options
Diffstat (limited to 'arch/sh/oprofile/backtrace.c')
-rw-r--r-- | arch/sh/oprofile/backtrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/oprofile/backtrace.c b/arch/sh/oprofile/backtrace.c index 62e4e4d0273e..37cd75d7930e 100644 --- a/arch/sh/oprofile/backtrace.c +++ b/arch/sh/oprofile/backtrace.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/sched.h> | 17 | #include <linux/sched.h> |
18 | #include <linux/kallsyms.h> | 18 | #include <linux/kallsyms.h> |
19 | #include <linux/mm.h> | 19 | #include <linux/mm.h> |
20 | #include <asm/unwinder.h> | ||
20 | #include <asm/ptrace.h> | 21 | #include <asm/ptrace.h> |
21 | #include <asm/uaccess.h> | 22 | #include <asm/uaccess.h> |
22 | #include <asm/sections.h> | 23 | #include <asm/sections.h> |
@@ -120,8 +121,8 @@ void sh_backtrace(struct pt_regs * const regs, unsigned int depth) | |||
120 | stackaddr = (unsigned long *)regs->regs[15]; | 121 | stackaddr = (unsigned long *)regs->regs[15]; |
121 | if (!user_mode(regs)) { | 122 | if (!user_mode(regs)) { |
122 | if (depth) | 123 | if (depth) |
123 | dump_trace(NULL, regs, stackaddr, | 124 | unwind_stack(NULL, regs, stackaddr, |
124 | &backtrace_ops, &depth); | 125 | &backtrace_ops, &depth); |
125 | return; | 126 | return; |
126 | } | 127 | } |
127 | 128 | ||