powerpc: Fix support for latencytop
We need to pass the kernel stack pointer instead of the user space stack pointer in save_stack_trace_tsk(). Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
72e82dcd1f
commit
6fdc9f5076
@@ -59,6 +59,6 @@ EXPORT_SYMBOL_GPL(save_stack_trace);
|
|||||||
|
|
||||||
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
|
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
|
||||||
{
|
{
|
||||||
save_context_stack(trace, tsk->thread.regs->gpr[1], tsk, 0);
|
save_context_stack(trace, tsk->thread.ksp, tsk, 0);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
|
EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
|
||||||
|
Reference in New Issue
Block a user