summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/trap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c
index a524324..1513798 100644
--- a/sys/ia64/ia64/trap.c
+++ b/sys/ia64/ia64/trap.c
@@ -46,8 +46,10 @@ __FBSDID("$FreeBSD$");
#include <sys/smp.h>
#include <sys/vmmeter.h>
#include <sys/sysent.h>
+#include <sys/signalvar.h>
#include <sys/syscall.h>
#include <sys/pioctl.h>
+#include <sys/ptrace.h>
#include <sys/sysctl.h>
#include <vm/vm.h>
#include <vm/vm_kern.h>
@@ -968,6 +970,8 @@ syscall(struct trapframe *tf)
STOPEVENT(p, S_SCE, (callp->sy_narg & SYF_ARGMASK));
+ PTRACESTOP_SC(p, td, S_PT_SCE);
+
error = (*callp->sy_call)(td, args);
if (error != EJUSTRETURN) {
@@ -1010,6 +1014,8 @@ syscall(struct trapframe *tf)
*/
STOPEVENT(p, S_SCX, code);
+ PTRACESTOP_SC(p, td, S_PT_SCX);
+
#ifdef DIAGNOSTIC
cred_free_thread(td);
#endif
OpenPOWER on IntegriCloud