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 <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
Ingo Molnar 2009-08-13 23:37:26 +02:00
commit 60d970c254

View file

@ -579,6 +579,8 @@ __initcall(init_tracepoints);
#endif /* CONFIG_MODULES */
#ifdef CONFIG_FTRACE_SYSCALLS
static DEFINE_MUTEX(regfunc_mutex);
static int sys_tracepoint_refcount;
@ -615,3 +617,4 @@ void syscall_unregfunc(void)
}
mutex_unlock(&regfunc_mutex);
}
#endif