diff options
Diffstat (limited to 'include/linux/tracehook.h')
-rw-r--r-- | include/linux/tracehook.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index 05589a3e37f4..40b0b4c1bf7b 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h | |||
@@ -123,15 +123,10 @@ static inline __must_check int tracehook_report_syscall_entry( | |||
123 | */ | 123 | */ |
124 | static inline void tracehook_report_syscall_exit(struct pt_regs *regs, int step) | 124 | static inline void tracehook_report_syscall_exit(struct pt_regs *regs, int step) |
125 | { | 125 | { |
126 | if (step) { | 126 | if (step) |
127 | siginfo_t info; | 127 | user_single_step_report(regs); |
128 | clear_siginfo(&info); | 128 | else |
129 | user_single_step_siginfo(current, regs, &info); | 129 | ptrace_report_syscall(regs); |
130 | force_sig_info(SIGTRAP, &info, current); | ||
131 | return; | ||
132 | } | ||
133 | |||
134 | ptrace_report_syscall(regs); | ||
135 | } | 130 | } |
136 | 131 | ||
137 | /** | 132 | /** |