From owner-freebsd-hackers Sat Mar 11 23:37:20 2000 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id D869437BDA2; Sat, 11 Mar 2000 23:37:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id D69112E8156 for ; Sat, 11 Mar 2000 23:37:18 -0800 (PST) (envelope-from kris@hub.freebsd.org) Date: Sat, 11 Mar 2000 23:37:18 -0800 (PST) From: Kris Kennaway To: freebsd-hackers@FreeBSD.ORG Subject: Re: Getting CPU usage in FreeBSD In-Reply-To: <200003120459.FAA54518@dorifer.heim3.tu-clausthal.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message