Make the ktrace code emit a record that indicates the current emulation

every time there is an attach or detach event.
This commit is contained in:
christos 1995-10-22 00:35:06 +00:00
parent fd3fd7642f
commit 16c4374c1f
1 changed files with 8 additions and 1 deletions

View File

@ -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);
}