Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35999
b: refs/heads/master
c: 1666a6f
h: refs/heads/master
i:
  35997: fe05b95
  35995: ddd8546
  35991: cf37941
  35983: e52e3ef
  35967: 235b6c1
v: v3
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Sep 27, 2006
1 parent f6bce54 commit 31dd17c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6057a7987608941a203f40f8b53513af433d8d2f
refs/heads/master: 1666a6fc73f724cdc6bd7d699f9ada4b04953efe
20 changes: 9 additions & 11 deletions trunk/arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static void show_stacktrace(struct task_struct *task, struct pt_regs *regs)
show_backtrace(task, regs);
}

static noinline void prepare_frametrace(struct pt_regs *regs)
static __always_inline void prepare_frametrace(struct pt_regs *regs)
{
__asm__ __volatile__(
"1: la $2, 1b\n\t"
Expand Down Expand Up @@ -200,17 +200,15 @@ void show_stack(struct task_struct *task, unsigned long *sp)
*/
void dump_stack(void)
{
unsigned long stack;
struct pt_regs regs;

#ifdef CONFIG_KALLSYMS
if (!raw_show_trace) {
struct pt_regs regs;
prepare_frametrace(&regs);
show_backtrace(current, &regs);
return;
}
#endif
show_raw_backtrace(&stack);
/*
* Remove any garbage that may be in regs (specially func
* addresses) to avoid show_raw_backtrace() to report them
*/
memset(&regs, 0, sizeof(regs));
prepare_frametrace(&regs);
show_backtrace(current, &regs);
}

EXPORT_SYMBOL(dump_stack);
Expand Down

0 comments on commit 31dd17c

Please sign in to comment.