kernel-ark/arch/x86/ia32
Roland McGrath d4d6715016 x86 ptrace: unify syscall tracing
This unifies and cleans up the syscall tracing code on i386 and x86_64.

Using a single function for entry and exit tracing on 32-bit made the
do_syscall_trace() into some terrible spaghetti.  The logic is clear and
simple using separate syscall_trace_enter() and syscall_trace_leave()
functions as on 64-bit.

The unification adds PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP support
on x86_64, for 32-bit ptrace() callers and for 64-bit ptrace() callers
tracing either 32-bit or 64-bit tasks.  It behaves just like 32-bit.

Changing syscall_trace_enter() to return the syscall number shortens
all the assembly paths, while adding the SYSEMU feature in a simple way.

Signed-off-by: Roland McGrath <roland@redhat.com>
2008-07-16 12:15:17 -07:00
..
audit.c x86: coding style fixes in arch/x86/ia32/audit.c 2008-01-30 13:32:54 +01:00
ia32_aout.c Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
ia32_signal.c signals: x86 TS_RESTORE_SIGMASK 2008-04-30 08:29:37 -07:00
ia32entry.S x86 ptrace: unify syscall tracing 2008-07-16 12:15:17 -07:00
ipc32.c x86: clean up arch/x86/ia32/ipc32.c 2008-01-30 13:30:08 +01:00
Makefile x86: compat_binfmt_elf 2008-01-30 13:31:55 +01:00
sys_ia32.c arch: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:14:49 -04:00