might be unassigned until all secondary processors are up and running.
-/* $OpenBSD: kern_task.c,v 1.33 2022/08/15 11:38:35 mvs Exp $ */
+/* $OpenBSD: kern_task.c,v 1.34 2023/07/29 06:52:08 anton Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
SET(w->t_flags, TASK_ONQUEUE);
TAILQ_INSERT_TAIL(&tq->tq_worklist, w, t_entry);
#if NKCOV > 0
- w->t_process = curproc->p_p;
+ if (!kcov_cold)
+ w->t_process = curproc->p_p;
#endif
}
mtx_leave(&tq->tq_mtx);
-/* $OpenBSD: kern_timeout.c,v 1.94 2023/07/14 07:07:08 claudio Exp $ */
+/* $OpenBSD: kern_timeout.c,v 1.95 2023/07/29 06:52:08 anton Exp $ */
/*
* Copyright (c) 2001 Thomas Nordin <nordin@openbsd.org>
* Copyright (c) 2000-2001 Artur Grabowski <art@openbsd.org>
CIRCQ_INSERT_TAIL(&timeout_new, &new->to_list);
}
#if NKCOV > 0
- new->to_process = curproc->p_p;
+ if (!kcov_cold)
+ new->to_process = curproc->p_p;
#endif
tostat.tos_added++;
mtx_leave(&timeout_mutex);
CIRCQ_INSERT_TAIL(&timeout_new, &to->to_list);
}
#if NKCOV > 0
- to->to_process = curproc->p_p;
+ if (!kcov_cold)
+ to->to_process = curproc->p_p;
#endif
tostat.tos_added++;
-/* $OpenBSD: kcov.h,v 1.8 2021/12/29 07:15:13 anton Exp $ */
+/* $OpenBSD: kcov.h,v 1.9 2023/07/29 06:52:08 anton Exp $ */
/*
* Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
struct proc;
+extern int kcov_cold;
+
void kcov_exit(struct proc *);
int kcov_vnode(struct vnode *);
void kcov_remote_register(int, void *);