mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] i386/x86-64: fall back to old-style call trace if no unwinding
If no unwinding is possible at all for a certain exception instance, fall back to the old style call trace instead of not showing any trace at all. Also, allow setting the stack trace mode at the command line. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
fe7cacc1c2
commit
c33bd9aac0
6 changed files with 83 additions and 45 deletions
|
@ -49,8 +49,8 @@ extern int unwind_init_blocked(struct unwind_frame_info *,
|
|||
* Prepare to unwind the currently running thread.
|
||||
*/
|
||||
extern int unwind_init_running(struct unwind_frame_info *,
|
||||
asmlinkage void (*callback)(struct unwind_frame_info *,
|
||||
void *arg),
|
||||
asmlinkage int (*callback)(struct unwind_frame_info *,
|
||||
void *arg),
|
||||
void *arg);
|
||||
|
||||
/*
|
||||
|
@ -97,8 +97,8 @@ static inline int unwind_init_blocked(struct unwind_frame_info *info,
|
|||
}
|
||||
|
||||
static inline int unwind_init_running(struct unwind_frame_info *info,
|
||||
asmlinkage void (*cb)(struct unwind_frame_info *,
|
||||
void *arg),
|
||||
asmlinkage int (*cb)(struct unwind_frame_info *,
|
||||
void *arg),
|
||||
void *arg)
|
||||
{
|
||||
return -ENOSYS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue