Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2000 23:37:18 -0800 (PST)
From:      Kris Kennaway <kris@hub.freebsd.org>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Getting CPU usage in FreeBSD
Message-ID:  <Pine.BSF.4.21.0003112336140.85709-100000@hub.freebsd.org>
In-Reply-To: <200003120459.FAA54518@dorifer.heim3.tu-clausthal.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 Mar 2000, Oliver Fromme wrote:

> Then look up the definition of kread() in the same file, and
> how the contents of cur.cp_time are used in the cpustats()
> function.  Note that "cur" is a "struct statinfo", which is
> defined in /usr/include/devstat.h.  The CPU states are defined
> in /usr/include/sys/dkstat.h.

We probably should make this into a sysctl to divorce the binaries from
having to read kvm.

Kris

----
In God we Trust -- all others must submit an X.509 certificate.
    -- Charles Forsythe <forsythe@alum.mit.edu>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003112336140.85709-100000>