summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2026-07-30 14:26:51 +0100
committerWill Deacon <will@kernel.org>2026-08-02 09:52:36 +0000
commit5a87e8c7f3702eba8a1ed17431a807e01da3ae51 (patch)
tree0f66ad946e4b0c42ec26fb59e6c1ff292f290186 /tools/perf/scripts/python/task-analyzer.py
parent88b839ce497ccb1ff92f7ae742c78dd2937ba572 (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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions