Skip to content

Commit

Permalink
tracing: Fix syscall tracing on !HAVE_FTRACE_SYSCALLS architectures
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Aug 13, 2009
1 parent 19007a6 commit 60d970c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/tracepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ __initcall(init_tracepoints);

#endif /* CONFIG_MODULES */

#ifdef CONFIG_FTRACE_SYSCALLS

static DEFINE_MUTEX(regfunc_mutex);
static int sys_tracepoint_refcount;

Expand Down Expand Up @@ -615,3 +617,4 @@ void syscall_unregfunc(void)
}
mutex_unlock(&regfunc_mutex);
}
#endif

0 comments on commit 60d970c

Please sign in to comment.