mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
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:
parent
83e36b8938
commit
7638fa19a7
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue