[PATCH v8 03/12] arm64/ptrace: Refactor syscall_trace_enter/exit()
Kevin Brodsky
kevin.brodsky at arm.com
Thu Nov 27 05:28:21 PST 2025
On 26/11/2025 08:14, Jinjie Ruan wrote:
> The generic syscall entry code has the following form, which use
> the input syscall work flag and syscall number:
>
> | syscall_trace_enter(struct pt_regs *regs, long syscall,
> | unsigned long work)
> |
> | syscall_exit_work(struct pt_regs *regs, unsigned long work)
>
> In preparation for moving arm64 over to the generic entry code,
> refactor syscall_trace_enter/exit() to also pass thread flags, and
> get syscall number by syscall_get_nr() helper.
>
> No functional changes.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>
Reviewed-by: Kevin Brodsky <kevin.brodsky at arm.com>
More information about the linux-arm-kernel
mailing list