]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Move syscalls metadata handling from arch to core
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 19 Sep 2009 04:50:42 +0000 (06:50 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 14 Oct 2009 07:53:56 +0000 (09:53 +0200)
commit0f4276bcfd3aa5aca7da933fd4789ea1992f3ec3
treedac4327b1454b73cefe7ffb2ef28cc67ea878f2b
parent65ee3ebe89afcef147343a33f10d02683a1e276d
tracing: Move syscalls metadata handling from arch to core

Most of the syscalls metadata processing is done from arch.
But these operations are mostly generic accross archs. Especially now
that we have a common variable name that expresses the number of
syscalls supported by an arch: NR_syscalls, the only remaining bits
that need to reside in arch is the syscall nr to addr translation.

v2: Compare syscalls symbols only after the "sys" prefix so that we
    avoid spurious mismatches with archs that have syscalls wrappers,
    in which case syscalls symbols have "SyS" prefixed aliases.
    (Reported by: Heiko Carstens)

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
arch/s390/kernel/ftrace.c
arch/x86/kernel/ftrace.c
include/trace/syscall.h
kernel/trace/trace_syscalls.c