diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-08-13 17:37:26 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-13 17:38:20 -0400 |
commit | 60d970c254b95ec7a0fc4c590b510253987b64a0 (patch) | |
tree | 3f99d03bf8af498ef57376f65b7c18b9e18b098a | |
parent | 19007a67a64f9b3cbbd7024f972654ebf14daade (diff) |
tracing: Fix syscall tracing on !HAVE_FTRACE_SYSCALLS architectures
The new syscall_regfunc()/unregfunc() functions rely on
the existence of TIF_SYSCALL_FTRACE - but that TIF flag
is only offered by HAVE_FTRACE_SYSCALLS.
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | kernel/tracepoint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c index 070a42bb8920..35dd27adb82c 100644 --- a/kernel/tracepoint.c +++ b/kernel/tracepoint.c | |||
@@ -579,6 +579,8 @@ __initcall(init_tracepoints); | |||
579 | 579 | ||
580 | #endif /* CONFIG_MODULES */ | 580 | #endif /* CONFIG_MODULES */ |
581 | 581 | ||
582 | #ifdef CONFIG_FTRACE_SYSCALLS | ||
583 | |||
582 | static DEFINE_MUTEX(regfunc_mutex); | 584 | static DEFINE_MUTEX(regfunc_mutex); |
583 | static int sys_tracepoint_refcount; | 585 | static int sys_tracepoint_refcount; |
584 | 586 | ||
@@ -615,3 +617,4 @@ void syscall_unregfunc(void) | |||
615 | } | 617 | } |
616 | mutex_unlock(®func_mutex); | 618 | mutex_unlock(®func_mutex); |
617 | } | 619 | } |
620 | #endif | ||