tracing: Unify arch_syscall_addr() implementations
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Jan 2010 09:40:03 +0000 (04:40 -0500)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 17 Feb 2010 12:07:21 +0000 (13:07 +0100)
commite7b8e675d9c71b868b66f62f725a948047514719
tree77877e2470148dc47653408c4b624734a8f14239
parentea2c68a08fedb5053ba312d661e47df9f4d72411
tracing: Unify arch_syscall_addr() implementations

Most implementations of arch_syscall_addr() are the same, so create a
default version in common code and move the one piece that differs (the
syscall table) to asm/syscall.h.  New arch ports don't have to waste
time copying & pasting this simple function.

The s390/sparc versions need to be different, so document why.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1264498803-17278-1-git-send-email-vapier@gentoo.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Documentation/trace/ftrace-design.txt
arch/s390/include/asm/syscall.h
arch/s390/kernel/ftrace.c
arch/sh/include/asm/syscall.h
arch/sh/kernel/ftrace.c
arch/sparc/include/asm/syscall.h
arch/sparc/kernel/ftrace.c
arch/x86/include/asm/syscall.h
arch/x86/kernel/ftrace.c
include/linux/ftrace.h
kernel/trace/trace_syscalls.c