diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-24 17:43:12 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-08-25 18:24:19 -0400 |
commit | 3d27d8cb34fc156beb86de2338ca4029873a5cc6 (patch) | |
tree | 51be3d9b84fa6a7899b69c499cb7630ebca366b0 /kernel/tracepoint.c | |
parent | 667000011927b4fcc359beac4a2447889db6d349 (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 'kernel/tracepoint.c')
-rw-r--r-- | kernel/tracepoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c index be86b9a01a09..9e0a36f0e2a9 100644 --- a/kernel/tracepoint.c +++ b/kernel/tracepoint.c | |||
@@ -576,7 +576,7 @@ __initcall(init_tracepoints); | |||
576 | 576 | ||
577 | #endif /* CONFIG_MODULES */ | 577 | #endif /* CONFIG_MODULES */ |
578 | 578 | ||
579 | #ifdef CONFIG_FTRACE_SYSCALLS | 579 | #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS |
580 | 580 | ||
581 | static DEFINE_MUTEX(regfunc_mutex); | 581 | static DEFINE_MUTEX(regfunc_mutex); |
582 | static int sys_tracepoint_refcount; | 582 | static int sys_tracepoint_refcount; |