diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-01-26 04:40:03 -0500 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-02-17 07:07:21 -0500 |
commit | e7b8e675d9c71b868b66f62f725a948047514719 (patch) | |
tree | 77877e2470148dc47653408c4b624734a8f14239 /Documentation/trace | |
parent | ea2c68a08fedb5053ba312d661e47df9f4d72411 (diff) |
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>
Diffstat (limited to 'Documentation/trace')
-rw-r--r-- | Documentation/trace/ftrace-design.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/trace/ftrace-design.txt b/Documentation/trace/ftrace-design.txt index 239f14b2b55a..99df1101d2a5 100644 --- a/Documentation/trace/ftrace-design.txt +++ b/Documentation/trace/ftrace-design.txt | |||
@@ -218,11 +218,10 @@ HAVE_SYSCALL_TRACEPOINTS | |||
218 | 218 | ||
219 | You need very few things to get the syscalls tracing in an arch. | 219 | You need very few things to get the syscalls tracing in an arch. |
220 | 220 | ||
221 | - Support HAVE_ARCH_TRACEHOOK (see arch/Kconfig). | ||
221 | - Have a NR_syscalls variable in <asm/unistd.h> that provides the number | 222 | - Have a NR_syscalls variable in <asm/unistd.h> that provides the number |
222 | of syscalls supported by the arch. | 223 | of syscalls supported by the arch. |
223 | - Implement arch_syscall_addr() that resolves a syscall address from a | 224 | - Support the TIF_SYSCALL_TRACEPOINT thread flags. |
224 | syscall number. | ||
225 | - Support the TIF_SYSCALL_TRACEPOINT thread flags | ||
226 | - Put the trace_sys_enter() and trace_sys_exit() tracepoints calls from ptrace | 225 | - Put the trace_sys_enter() and trace_sys_exit() tracepoints calls from ptrace |
227 | in the ptrace syscalls tracing path. | 226 | in the ptrace syscalls tracing path. |
228 | - Tag this arch as HAVE_SYSCALL_TRACEPOINTS. | 227 | - Tag this arch as HAVE_SYSCALL_TRACEPOINTS. |