-/* $OpenBSD: kern_sched.c,v 1.72 2021/07/06 09:34:07 kettenis Exp $ */
+/* $OpenBSD: kern_sched.c,v 1.73 2021/09/09 18:41:39 mpi Exp $ */
/*
* Copyright (c) 2007, 2008 Artur Grabowski <art@openbsd.org>
*
spc = &p->p_cpu->ci_schedstate;
spc->spc_nrun++;
- TRACEPOINT(sched, enqueue, p->p_tid, p->p_p->ps_pid);
+ TRACEPOINT(sched, enqueue, p->p_tid + THREAD_PID_OFFSET,
+ p->p_p->ps_pid);
TAILQ_INSERT_TAIL(&spc->spc_qs[queue], p, p_runq);
spc->spc_whichqs |= (1 << queue);
SCHED_ASSERT_LOCKED();
spc = &p->p_cpu->ci_schedstate;
spc->spc_nrun--;
- TRACEPOINT(sched, dequeue, p->p_tid, p->p_p->ps_pid);
+ TRACEPOINT(sched, dequeue, p->p_tid + THREAD_PID_OFFSET,
+ p->p_p->ps_pid);
TAILQ_REMOVE(&spc->spc_qs[queue], p, p_runq);
if (TAILQ_EMPTY(&spc->spc_qs[queue])) {
-/* $OpenBSD: kern_synch.c,v 1.178 2021/09/09 18:23:31 mpi Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.179 2021/09/09 18:41:39 mpi Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*
if (p->p_wchan != NULL) {
TAILQ_REMOVE(&slpque[LOOKUP(p->p_wchan)], p, p_runq);
p->p_wchan = NULL;
- TRACEPOINT(sched, wakeup, p->p_tid, p->p_p->ps_pid);
+ TRACEPOINT(sched, wakeup, p->p_tid + THREAD_PID_OFFSET,
+ p->p_p->ps_pid);
}
}
-/* $OpenBSD: sched_bsd.c,v 1.68 2021/08/02 15:15:47 tb Exp $ */
+/* $OpenBSD: sched_bsd.c,v 1.69 2021/09/09 18:41:39 mpi Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*-
if (p != nextproc) {
uvmexp.swtch++;
- TRACEPOINT(sched, off__cpu, nextproc->p_tid,
+ TRACEPOINT(sched, off__cpu, nextproc->p_tid + THREAD_PID_OFFSET,
nextproc->p_p->ps_pid);
cpu_switchto(p, nextproc);
TRACEPOINT(sched, on__cpu, NULL);