From a55920722cad24f22bfd0b389b9901445fef0261 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 14 Dec 1995 04:10:21 +0000 Subject: [PATCH] from netbsd; emulation records --- sys/kern/kern_ktrace.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); } -- 2.20.1