arm64: split syscall_trace() into separate functions for enter/exit
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 30 Apr 2014 09:51:30 +0000 (10:51 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 30 May 2014 17:15:40 +0000 (18:15 +0100)
commit517f60a12daa74220479363dab0f098f22fd9e27
treeb15648464466586c1e8f911c20e3b0d537766966
parent3deeb6e48086a386edd0149f463e5470d0400a7f
arm64: split syscall_trace() into separate functions for enter/exit

As done in arm, this change makes it easy to confirm we invoke syscall
related hooks, including syscall tracepoint, audit and seccomp which would
be implemented later, in correct order. That is, undoing operations in the
opposite order on exit that they were done on entry.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 3157858feff89196635b01495d5ec9ebe206639e)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/arm64/kernel/ptrace.c
arch/arm64/kernel/entry.S
arch/arm64/kernel/ptrace.c