Commit 4a1bc349 authored by He Sheng's avatar He Sheng Committed by guzitao
Browse files

sw64: ftrace: fix function graph tracing support

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I645S9



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

Rewrite ftrace_graph_caller to support function graph tracing for
ftrace_regs_caller, ftrace_caller and _mcount. To enable function
graph tracing, the nop instruction at ftrace_graph_call is replaced
with "call $26, ($27)" instruction. To disable tracing, replace the
nop instruction back.

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