arm64: ptrace: add support for syscall emulation
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 23 May 2019 09:06:18 +0000 (10:06 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Jun 2019 16:51:24 +0000 (17:51 +0100)
commitf086f67485c5c126bcec4b0e96ac7319a2e59ab8
treea2eb3fe5a7af74710dfae1556b8115ef088a14eb
parentfd3866381be2681395e398c511699fd61a098609
arm64: ptrace: add support for syscall emulation

Add PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP support on arm64.
We don't need any special handling for PTRACE_SYSEMU_SINGLESTEP.

It's quite difficult to generalize handling PTRACE_SYSEMU cross
architectures and avoid calls to tracehook_report_syscall_entry twice.
Different architecture have different mechanism to indicate NO_SYSCALL
and trying to generalise adds more code for no gain.

Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/thread_info.h
arch/arm64/kernel/ptrace.c