aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-24 17:43:12 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-08-25 18:24:19 -0400
commit3d27d8cb34fc156beb86de2338ca4029873a5cc6 (patch)
tree51be3d9b84fa6a7899b69c499cb7630ebca366b0 /include
parent667000011927b4fcc359beac4a2447889db6d349 (diff)
tracing: Make syscall tracepoints conditional
The syscall enter/exit tracepoints are only supported on archs that HAVE_SYSCALL_TRACEPOINTS, so the declarations should be #ifdef'ed. Also, the definition of syscall_regfunc and syscall_unregfunc should depend on this same config, rather than the ftrace-specific one. Signed-off-by: Josh Stone <jistone@redhat.com> Cc: Jason Baron <jbaron@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Li Zefan <lizf@cn.fujitsu.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Cc: Jiaying Zhang <jiayingz@google.com> Cc: Martin Bligh <mbligh@google.com> Cc: Lai Jiangshan <laijs@cn.fujitsu.com> LKML-Reference: <1251150194-1713-3-git-send-email-jistone@redhat.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/syscall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/trace/syscall.h b/include/trace/syscall.h
index 9661dd406b93..5dcb7e3a544c 100644
--- a/include/trace/syscall.h
+++ b/include/trace/syscall.h
@@ -8,6 +8,8 @@
8#include <asm/ptrace.h> 8#include <asm/ptrace.h>
9 9
10 10
11#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
12
11extern void syscall_regfunc(void); 13extern void syscall_regfunc(void);
12extern void syscall_unregfunc(void); 14extern void syscall_unregfunc(void);
13 15
@@ -25,6 +27,8 @@ DECLARE_TRACE_WITH_CALLBACK(syscall_exit,
25 syscall_unregfunc 27 syscall_unregfunc
26); 28);
27 29
30#endif
31
28/* 32/*
29 * A syscall entry in the ftrace syscalls array. 33 * A syscall entry in the ftrace syscalls array.
30 * 34 *