From 7638fa19a72b80cf66992f24ee89a8beab95aa03 Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Sun, 20 Jun 2004 22:17:22 +0000 Subject: [PATCH] Fill in the values for the ki_tid and ki_numthreads which have been added to kproc_info. PR: bin/65803 (a tiny part...) Submitted by: Cyrille Lefevre --- sys/kern/kern_proc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 8b9eaa0730d3..5357d6582230 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -763,6 +763,8 @@ fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp) kp->ki_lastcpu = td->td_lastcpu; kp->ki_oncpu = td->td_oncpu; kp->ki_tdflags = td->td_flags; + kp->ki_tid = td->td_tid; + kp->ki_numthreads = p->p_numthreads; kp->ki_pcb = td->td_pcb; kp->ki_kstack = (void *)td->td_kstack; kp->ki_pctcpu = sched_pctcpu(td);