diff options
| author | Will Deacon <will@kernel.org> | 2026-07-30 14:26:51 +0100 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-08-02 09:52:36 +0000 |
| commit | 5a87e8c7f3702eba8a1ed17431a807e01da3ae51 (patch) | |
| tree | 0f66ad946e4b0c42ec26fb59e6c1ff292f290186 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 88b839ce497ccb1ff92f7ae742c78dd2937ba572 (diff) | |
arm64: syscall: Pass 'orig_x0' as first argument to native system call
syscall_get_arguments() returns 'regs->orig_x0' for the first system
call argument so as to avoid aliasing with the syscall return value in
'regs->regs[0]' on the return path, however the actual syscall
invocation passes 'regs->regs[0]' as the first parameter.
Although the two registers should be kept in sync during syscall entry
for native tasks, pass 'regs->orig_x0' as the first syscall parameter
for consistency with the syscall argument APIs. Compat tasks continue to
use 'regs->regs[0]' for compatibility with the behaviour of the 32-bit
kernel.
Suggested-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
