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
This commit is contained in:
Garance A Drosehn 2004-06-20 22:17:22 +00:00
parent 83e36b8938
commit 7638fa19a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130826

View file

@ -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);