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

Heiko Carstens
2024-11-10T17:05:25Z

On Mon, Nov 11, 2024 at 12:49:42AM +0900, Masami Hiramatsu (Google) wrote:
> From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
>
> 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@kernel.org>
> ---
> 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@linux.ibm.com> # s390