[PATCH 1/2] ftrace: Clarify function graph retp identity
Steven Rostedt
rostedt at goodmis.org
Tue Oct 13 07:42:41 PDT 2026
Sorry for the way late reply. I stopped being an upstream maintainer while
traveling. I'm just catching up now.
On Sat, 19 Sep 2026 11:37:25 +0800
"Rui Qi" <qirui.001 at bytedance.com> wrote:
> ftrace_graph_ret_addr() does not dereference retp. It compares the value
> against the retp saved by function_graph_enter*() to find the matching
> graph return entry.
>
> Update the documentation to describe retp as a return location identity.
> Most architectures use the stack return address slot, but an architecture
> may use another stable frame identity as long as its graph entry path and
> unwinder use the same value.
>
> Signed-off-by: Rui Qi <qirui.001 at bytedance.com>
LGTM, This can go through the RISCV tree.
Acked-by: Steven Rostedt <rostedt at goodmis.org>
-- Steve
More information about the linux-riscv
mailing list