Re: [PATCH v19 05/19] fprobe: Use ftrace_regs in fprobe exit handler

From: Heiko Carstens
Date: Sun Nov 10 2024 - 12:05:40 EST


On Mon, Nov 11, 2024 at 12:49:42AM +0900, Masami Hiramatsu (Google) wrote:
> From: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
>
> Change the fprobe exit handler to use ftrace_regs structure instead of
> pt_regs. This also introduce HAVE_FTRACE_REGS_HAVING_PT_REGS which
> means the ftrace_regs is including the pt_regs so that ftrace_regs
> can provide pt_regs without memory allocation.
> Fprobe introduces a new dependency with that.
>
> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
> ---
> Changes in v16:
> - Rename HAVE_PT_REGS_TO_FTRACE_REGS_CAST to
> HAVE_FTRACE_REGS_HAVING_PT_REGS.
> Changes in v3:
> - Use ftrace_regs_get_return_value()
> Changes from previous series: NOTHING, just forward ported.
> ---
> arch/loongarch/Kconfig | 1 +
> arch/s390/Kconfig | 1 +

Acked-by: Heiko Carstens <hca@xxxxxxxxxxxxx> # s390