Commit 83af5901 authored by Gu Zitao's avatar Gu Zitao Committed by guzitao
Browse files

sw64: ftrace: fix ARCH_SUPPORTS_FTRACE_OPS support

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



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

ARCH_SUPPORTS_FTRACE_OPS support was introduced with livepatch,
but it didn't pass function_trace_op to tracer in ftrace_caller,
and kernel will crash in ftrace func_profiler test.

To fix this problem, pass function_trace_op to tracer as the 3rd
argument.

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 8be9fdf9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment