summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 04:10:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 04:10:22 +0000
commit879c823f8f5a6dc6b673a5d05f521e866198a095 (patch)
tree3af3b27d90fe76279654f1d802eb9029d6848c20
parentcb83b8263c54d10fc064c510f8aa809cf031de8c (diff)
from netbsd; emulation records
-rw-r--r--sys/kern/kern_ktrace.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
index 5a8b64e629f..a506e9635ed 100644
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_ktrace.c,v 1.20 1995/10/07 06:28:16 mycroft Exp $ */
+/* $NetBSD: kern_ktrace.c,v 1.21 1995/10/22 00:35:06 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -391,6 +391,13 @@ ktrops(curp, p, ops, facs, vp)
}
}
+ /*
+ * Emit an emulation record, every time there is a ktrace
+ * change/attach request.
+ */
+ if (KTRPOINT(p, KTR_EMUL))
+ ktremul(p->p_tracep, p->p_emul->e_name);
+
return (1);
}