cvs commit: src/usr.bin/top machine.c
Brian Feldman
green at FreeBSD.org
Sun Jun 6 19:59:11 GMT 2004
green 2004-06-06 19:59:06 UTC
FreeBSD src repository
Modified files:
usr.bin/top machine.c
Log:
Do not use KERN_PROC_PROC with kvm_getproc(3); instead, if only process
(and not thread) scope is to be displayed, use KERN_PROC_ALL and
accrue CPU% ourselves, as the kernel makes no attempt to do so.
Of course, this doesn't make most stats any less bogus when displaying
threaded processes, but at least the CPU time is added up and not just
always 0.00%. There are still issues with SCHED_ULE in top(1) that
cause other processes to display 0.00% CPU when they in fact have used
more.
Revision Changes Path
1.51 +17 -4 src/usr.bin/top/machine.c
More information about the cvs-src
mailing list