diff options
author | Daniel Kalmar <kalmard@homejinni.com> | 2011-05-13 08:38:04 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2011-06-15 14:35:33 +0200 |
commit | 94ea09c6a8e6c5ffb59bb1d5ca10008d37544e1a (patch) | |
tree | 86fd0e4241cfaa9a3d44ce6da39e54a291684143 /arch/mips/include | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff) | |
download | op-kernel-dev-94ea09c6a8e6c5ffb59bb1d5ca10008d37544e1a.zip op-kernel-dev-94ea09c6a8e6c5ffb59bb1d5ca10008d37544e1a.tar.gz |
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')
-rw-r--r-- | arch/mips/include/asm/stacktrace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/stacktrace.h b/arch/mips/include/asm/stacktrace.h index 0bf8281..780ee2c 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, |