aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel/ptrace.c')
-rw-r--r--arch/s390/kernel/ptrace.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c
index 490b39934d65..f3ddd7ac06c5 100644
--- a/arch/s390/kernel/ptrace.c
+++ b/arch/s390/kernel/ptrace.c
@@ -26,7 +26,6 @@
26#include <linux/sched.h> 26#include <linux/sched.h>
27#include <linux/mm.h> 27#include <linux/mm.h>
28#include <linux/smp.h> 28#include <linux/smp.h>
29#include <linux/smp_lock.h>
30#include <linux/errno.h> 29#include <linux/errno.h>
31#include <linux/ptrace.h> 30#include <linux/ptrace.h>
32#include <linux/user.h> 31#include <linux/user.h>
@@ -52,6 +51,9 @@
52#include "compat_ptrace.h" 51#include "compat_ptrace.h"
53#endif 52#endif
54 53
54#define CREATE_TRACE_POINTS
55#include <trace/events/syscalls.h>
56
55enum s390_regset { 57enum s390_regset {
56 REGSET_GENERAL, 58 REGSET_GENERAL,
57 REGSET_FP, 59 REGSET_FP,
@@ -662,8 +664,8 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
662 ret = -1; 664 ret = -1;
663 } 665 }
664 666
665 if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) 667 if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
666 ftrace_syscall_enter(regs); 668 trace_sys_enter(regs, regs->gprs[2]);
667 669
668 if (unlikely(current->audit_context)) 670 if (unlikely(current->audit_context))
669 audit_syscall_entry(is_compat_task() ? 671 audit_syscall_entry(is_compat_task() ?
@@ -680,8 +682,8 @@ asmlinkage void do_syscall_trace_exit(struct pt_regs *regs)
680 audit_syscall_exit(AUDITSC_RESULT(regs->gprs[2]), 682 audit_syscall_exit(AUDITSC_RESULT(regs->gprs[2]),
681 regs->gprs[2]); 683 regs->gprs[2]);
682 684
683 if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) 685 if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
684 ftrace_syscall_exit(regs); 686 trace_sys_exit(regs, regs->gprs[2]);
685 687
686 if (test_thread_flag(TIF_SYSCALL_TRACE)) 688 if (test_thread_flag(TIF_SYSCALL_TRACE))
687 tracehook_report_syscall_exit(regs, 0); 689 tracehook_report_syscall_exit(regs, 0);