|
@@ -461,8 +461,10 @@ 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(current->audit_context))
|
|
|
audit_syscall_entry(audit_arch(), regs->regs[3],
|
|
@@ -480,8 +482,10 @@ 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
|
|
|
|
|
|
step = test_thread_flag(TIF_SINGLESTEP);
|
|
|
if (step || test_thread_flag(TIF_SYSCALL_TRACE))
|