Commit 21a00858 authored by Wu Liliu's avatar Wu Liliu Committed by guzitao
Browse files

sw64: fix stack trace error

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8CCS9



--------------------------------

The stack tracer looks for a function that does not match the one stored
on the stack, so cat /sys/kernel/debug/tracing/stack_trace is empty. Fix
it.

Signed-off-by: default avatarWu Liliu <wuliliu@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 4bea8811
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ void walk_stackframe(struct task_struct *tsk, struct pt_regs *regs,
	while (!kstack_end(ksp)) {
		if (__kernel_text_address(pc) && fn(pc, data))
			break;
		pc = (*ksp++) - 0x4;
		pc = *ksp++;
	}
}
EXPORT_SYMBOL_GPL(walk_stackframe);