[PATCH] ARM: ftrace: Implement HAVE_FUNCTION_GRAPH_FREGS

Linus Walleij linus.walleij at linaro.org
Wed Aug 20 00:20:48 PDT 2025


On Mon, Aug 18, 2025 at 12:40 PM Richard Weinberger <richard at nod.at> wrote:

> Enable support for ftrace's funcgraph-retval feature by capturing r0-r3
> and fp.
> Since ARM does not provide its own __arch_ftrace_regs structure,
> we instead populate pt_regs with the registers required by ftrace.
>
> Cc: Donglin Peng <pengdonglin at sangfor.com.cn>
> Signed-off-by: Richard Weinberger <richard at nod.at>

LGTM
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Can you put this patch into Russell's patch tracker?
https://www.armlinux.org.uk/developer/patches/

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list