]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7456/1: ptrace: provide separate functions for tracing syscall {entry,exit}
authorWill Deacon <will.deacon@arm.com>
Fri, 6 Jul 2012 14:50:14 +0000 (15:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Jul 2012 16:44:14 +0000 (17:44 +0100)
commitec87c3d0546895048514e0b92bee096a17a4ed46
treed69c7f9399e1407ec3300aa73b2467294972a087
parent24e9b277baafebe5c55bc090128b3073741d4214
ARM: 7456/1: ptrace: provide separate functions for tracing syscall {entry,exit}

The syscall_trace on ARM takes a `why' parameter to indicate whether or
not we are entering or exiting a system call. This can be confusing for
people looking at the code since (a) it conflicts with the why register
alias in the entry assembly code and (b) it is not immediately clear
what it represents.

This patch splits up the syscall_trace function into separate wrappers
for syscall entry and exit, allowing the low-level syscall handling
code to branch to the appropriate function.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-common.S
arch/arm/kernel/ptrace.c