[PATCH v6 3/6] syscall.h: introduce syscall_set_nr()
Maciej W. Rozycki
macro at orcam.me.uk
Thu Feb 20 23:19:23 UTC 2025
On Wed, 19 Feb 2025, Dmitry V. Levin wrote:
> > May I suggest "[...] after return from syscall_trace_enter() invocation."
> > instead? Minor reformatting might be required for better visual alignment
> > though.
>
> Like this:
> /*
> * New syscall number has to be assigned to regs[2] because
> * it is loaded from there unconditionally after return from
> * syscall_trace_enter() invocation.
> *
> * Consequently, if the syscall was indirect and nr != __NR_syscall,
> * then after this assignment the syscall will cease to be indirect.
> */
Perfect, thank you!
Maciej
More information about the Strace-devel
mailing list