the vnode, to eliminate misordering of ktrace records.
problem noted by jrick@
ok deraadt@
-/* $OpenBSD: kern_ktrace.c,v 1.109 2022/12/05 23:18:37 deraadt Exp $ */
+/* $OpenBSD: kern_ktrace.c,v 1.110 2023/02/09 08:00:31 guenther Exp $ */
/* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */
/*
{
memset(kth, 0, sizeof(struct ktr_header));
kth->ktr_type = type;
- nanotime(&kth->ktr_time);
kth->ktr_pid = pid;
kth->ktr_tid = tid;
}
struct process *pr;
int error;
+ nanotime(&kth->ktr_time);
+
KERNEL_ASSERT_LOCKED();
auio.uio_iov = &aiov[0];