aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ptrace.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-07 02:19:51 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-07 02:19:51 -0400
commita1922ed661ab2c1637d0b10cde933bd9cd33d965 (patch)
tree0f1777542b385ebefd30b3586d830fd8ed6fda5b /arch/x86/kernel/ptrace.c
parent75e33751ca8bbb72dd6f1a74d2810ddc8cbe4bdf (diff)
parentd28daf923ac5e4a0d7cecebae56f3e339189366b (diff)
Merge branch 'tracing/core' into tracing/hw-breakpoints
Conflicts: arch/Kconfig kernel/trace/trace.h Merge reason: resolve the conflicts, plus adopt to the new ring-buffer APIs. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r--arch/x86/kernel/ptrace.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index cabdabce3cb2..113b8927c822 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -36,10 +36,11 @@
36#include <asm/ds.h> 36#include <asm/ds.h>
37#include <asm/hw_breakpoint.h> 37#include <asm/hw_breakpoint.h>
38 38
39#include <trace/syscall.h>
40
41#include "tls.h" 39#include "tls.h"
42 40
41#define CREATE_TRACE_POINTS
42#include <trace/events/syscalls.h>
43
43enum x86_regset { 44enum x86_regset {
44 REGSET_GENERAL, 45 REGSET_GENERAL,
45 REGSET_FP, 46 REGSET_FP,
@@ -1548,8 +1549,8 @@ asmregparm long syscall_trace_enter(struct pt_regs *regs)
1548 tracehook_report_syscall_entry(regs)) 1549 tracehook_report_syscall_entry(regs))
1549 ret = -1L; 1550 ret = -1L;
1550 1551
1551 if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) 1552 if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
1552 ftrace_syscall_enter(regs); 1553 trace_sys_enter(regs, regs->orig_ax);
1553 1554
1554 if (unlikely(current->audit_context)) { 1555 if (unlikely(current->audit_context)) {
1555 if (IS_IA32) 1556 if (IS_IA32)
@@ -1574,8 +1575,8 @@ asmregparm void syscall_trace_leave(struct pt_regs *regs)
1574 if (unlikely(current->audit_context)) 1575 if (unlikely(current->audit_context))
1575 audit_syscall_exit(AUDITSC_RESULT(regs->ax), regs->ax); 1576 audit_syscall_exit(AUDITSC_RESULT(regs->ax), regs->ax);
1576 1577
1577 if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) 1578 if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
1578 ftrace_syscall_exit(regs); 1579 trace_sys_exit(regs, regs->ax);
1579 1580
1580 if (test_thread_flag(TIF_SYSCALL_TRACE)) 1581 if (test_thread_flag(TIF_SYSCALL_TRACE))
1581 tracehook_report_syscall_exit(regs, 0); 1582 tracehook_report_syscall_exit(regs, 0);