diff options
author | gad <gad@FreeBSD.org> | 2004-06-20 22:17:22 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-06-20 22:17:22 +0000 |
commit | be237c4660a612a95a37d9558c1a24c8f217786f (patch) | |
tree | 68d5eb2489a34ac5a6695a925a352db4ddcccea6 /sys/kern/kern_proc.c | |
parent | 80d13d94afc8b1881db508179e5fafa7fccf266f (diff) | |
download | FreeBSD-src-be237c4660a612a95a37d9558c1a24c8f217786f.zip FreeBSD-src-be237c4660a612a95a37d9558c1a24c8f217786f.tar.gz |
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
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r-- | sys/kern/kern_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 8b9eaa0..5357d65 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); |