Like other ktrace functions make ktruser() callable without kernel lock
authorclaudio <claudio@openbsd.org>
Thu, 16 Feb 2023 08:50:57 +0000 (08:50 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 16 Feb 2023 08:50:57 +0000 (08:50 +0000)
commitf0c3f6133587290f414e0f9ec00004b740bf036b
treec3e5d5a65e5bfe57474afe16f62b0a3328347567
parentcedac4184d41cfc52c913dbb6c371cdbae931594
Like other ktrace functions make ktruser() callable without kernel lock
by takeing the lock around ktrwrite2().
OK miod@ cheloha@
sys/kern/kern_ktrace.c