summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/stacktrace.h
diff options
context:
space:
mode:
authorDaniel Kalmar <kalmard@homejinni.com>2011-05-13 08:38:04 -0400
committerRobert Richter <robert.richter@amd.com>2011-06-15 14:35:33 +0200
commit94ea09c6a8e6c5ffb59bb1d5ca10008d37544e1a (patch)
tree86fd0e4241cfaa9a3d44ce6da39e54a291684143 /arch/mips/include/asm/stacktrace.h
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff)
MIPS: Add new unwind_stack variant
The unwind_stack_by_address variant supports unwinding based on any kernel code address. This symbol is also exported so it can be called from modules. Signed-off-by: Daniel Kalmar <kalmard@homejinni.com> Signed-off-by: Gergely Kis <gergely@homejinni.com> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/mips/include/asm/stacktrace.h')
-rw-r--r--arch/mips/include/asm/stacktrace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/stacktrace.h b/arch/mips/include/asm/stacktrace.h
index 0bf82818aa53..780ee2c2a2ac 100644
--- a/arch/mips/include/asm/stacktrace.h
+++ b/arch/mips/include/asm/stacktrace.h
@@ -7,6 +7,10 @@
extern int raw_show_trace;
extern unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
unsigned long pc, unsigned long *ra);
+extern unsigned long unwind_stack_by_address(unsigned long stack_page,
+ unsigned long *sp,
+ unsigned long pc,
+ unsigned long *ra);
#else
#define raw_show_trace 1
static inline unsigned long unwind_stack(struct task_struct *task,