# Re: \[PATCH v19 05/19\] fprobe: Use ftrace\_regs in fprobe exit handler

- From: Heiko Carstens \<hca@linux.ibm.com\>
- Date: 2024-11-10 17:05:25 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2024/11/2819795
- Thread: https://ratatoskr.run/linux-trace-kernel/2024/11/2819758/t.md

```text
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
```
