diff options
-rw-r--r-- | include/trace/syscall.h | 4 | ||||
-rw-r--r-- | kernel/tracepoint.c | 2 |
2 files changed, 5 insertions, 1 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 | |||
11 | extern void syscall_regfunc(void); | 13 | extern void syscall_regfunc(void); |
12 | extern void syscall_unregfunc(void); | 14 | extern 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 | * |
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; |