diff options
| author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-09-19 01:14:15 -0400 |
|---|---|---|
| committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-10-14 03:54:38 -0400 |
| commit | 459c6d15a0c52bae43842ff2cd0dd41aa7de9b7f (patch) | |
| tree | 3eba2d9a08ae812924841c6a805ce3d58f0a7699 /Documentation/trace | |
| parent | c44fc770845163f8d9e573f37f92a7b7a7ade14e (diff) | |
tracing: Document HAVE_SYSCALL_TRACEPOINTS needs
Document the arch needed requirements to get the support for syscalls
tracing.
v2: HAVE_FTRACE_SYSCALLS have been changed to HAVE_SYSCALL_TRACEPOINTS
recently. Update this config name in the documentation then.
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>
Diffstat (limited to 'Documentation/trace')
| -rw-r--r-- | Documentation/trace/ftrace-design.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Documentation/trace/ftrace-design.txt b/Documentation/trace/ftrace-design.txt index 7003e10f10f5..641a1ef2a7ff 100644 --- a/Documentation/trace/ftrace-design.txt +++ b/Documentation/trace/ftrace-design.txt | |||
| @@ -213,10 +213,19 @@ If you can't trace NMI functions, then skip this option. | |||
| 213 | <details to be filled> | 213 | <details to be filled> |
| 214 | 214 | ||
| 215 | 215 | ||
| 216 | HAVE_FTRACE_SYSCALLS | 216 | HAVE_SYSCALL_TRACEPOINTS |
| 217 | --------------------- | 217 | --------------------- |
| 218 | 218 | ||
| 219 | <details to be filled> | 219 | You need very few things to get the syscalls tracing in an arch. |
| 220 | |||
| 221 | - Have a NR_syscalls variable in <asm/unistd.h> that provides the number | ||
| 222 | of syscalls supported by the arch. | ||
| 223 | - Implement arch_syscall_addr() that resolves a syscall address from a | ||
| 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 | ||
| 227 | in the ptrace syscalls tracing path. | ||
| 228 | - Tag this arch as HAVE_SYSCALL_TRACEPOINTS. | ||
| 220 | 229 | ||
| 221 | 230 | ||
| 222 | HAVE_FTRACE_MCOUNT_RECORD | 231 | HAVE_FTRACE_MCOUNT_RECORD |
