aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/ptrace_32.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-09-16 14:30:34 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-09-16 14:30:34 +0900
commita74f7e0410da9da7942cf4f08bbdb0e4fc76f972 (patch)
tree8c45d67e75ecf44a274951c2f6a6a2ee1c79a84c /arch/sh/kernel/ptrace_32.c
parentea88023b3491a384575ebcd5e8a449e841a28a24 (diff)
downloadkernel_samsung_crespo-a74f7e0410da9da7942cf4f08bbdb0e4fc76f972.zip
kernel_samsung_crespo-a74f7e0410da9da7942cf4f08bbdb0e4fc76f972.tar.gz
kernel_samsung_crespo-a74f7e0410da9da7942cf4f08bbdb0e4fc76f972.tar.bz2
sh: Wire up HAVE_SYSCALL_TRACEPOINTS.
This is necessary to get ftrace syscall tracing working again.. a fairly trivial and mechanical change. The one benefit is that this can also be enabled on sh64, despite not having its own ftrace port. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/ptrace_32.c')
-rw-r--r--arch/sh/kernel/ptrace_32.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c
index f4f58e4..9be35f3 100644
--- a/arch/sh/kernel/ptrace_32.c
+++ b/arch/sh/kernel/ptrace_32.c
@@ -34,7 +34,8 @@
#include <asm/syscalls.h>
#include <asm/fpu.h>
-#include <trace/syscall.h>
+#define CREATE_TRACE_POINTS
+#include <trace/events/syscalls.h>
/*
* This routine will get a word off of the process kernel stack.
@@ -461,10 +462,8 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
*/
ret = -1L;
-#ifdef CONFIG_FTRACE_SYSCALLS
- if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE)))
- ftrace_syscall_enter(regs);
-#endif
+ if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
+ trace_sys_enter(regs, regs->regs[0]);
if (unlikely(current->audit_context))
audit_syscall_entry(audit_arch(), regs->regs[3],
@@ -482,10 +481,8 @@ asmlinkage void do_syscall_trace_leave(struct pt_regs *regs)
audit_syscall_exit(AUDITSC_RESULT(regs->regs[0]),
regs->regs[0]);
-#ifdef CONFIG_FTRACE_SYSCALLS
- if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE)))
- ftrace_syscall_exit(regs);
-#endif
+ if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
+ trace_sys_exit(regs, regs->regs[0]);
step = test_thread_flag(TIF_SINGLESTEP);
if (step || test_thread_flag(TIF_SYSCALL_TRACE))