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>
This commit is contained in:
committed by
Robert Richter
parent
2c53b436a3
commit
94ea09c6a8
@ -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,
|
||||
|
Reference in New Issue
Block a user