Date: Sun, 6 Jun 2004 19:59:06 +0000 (UTC) From: Brian Feldman <green@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/top machine.c Message-ID: <200406061959.i56Jx6GF051563@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406061959.i56Jx6GF051563>