Date: Sun, 14 Mar 2010 13:07:40 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_proc.c Message-ID: <201003141307.o2ED7uVU044145@repoman.freebsd.org>
index | next in thread | raw e-mail
jilles 2010-03-14 13:07:40 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/kern kern_proc.c
Log:
SVN rev 205150 on 2010-03-14 13:07:40Z by jilles
MFC r204410: Include terminated threads in ps's process cpu time field.
When a kinfo_proc is filled, first fill_kinfo_proc_only() fills in
ki_runtime using p->p_rux.rux_runtime (all cpu time used by the process
including terminated threads). If information for a specific thread is
requested, fill_kinfo_thread() then overwrites this with the thread's
td->td_runtime (good). If not, fill_kinfo_aggregate() overwrote it with
the sum of all threads' td->td_runtime which does not include terminated
threads.
This affects ps(1)'s TIME field, not its %CPU field nor anything in
top(1).
Revision Changes Path
1.285.2.6 +0 -2 src/sys/kern/kern_proc.c
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003141307.o2ED7uVU044145>
