From owner-freebsd-arch Tue Aug 15 20:56:47 2000 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 87E8237BA36 for ; Tue, 15 Aug 2000 20:56:44 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e7G3uhD18755 for arch@freebsd.org; Tue, 15 Aug 2000 20:56:43 -0700 (PDT) Date: Tue, 15 Aug 2000 20:56:43 -0700 From: Alfred Perlstein To: arch@freebsd.org Subject: would like to make cp_time a sysctl Message-ID: <20000815205643.M4854@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG One must use libkvm for reading cpu utilization, I'm going to make them available through sysctl. I would like to have a sysctl that returns a string of the cpu states: kern.cpustates.names: user nice sys intr idle kern.cpustates.values: values I'm open for alternative suggestions on how to do this. I've been told that netbsd has thier own way of doing it, I don't like it because they use SYSCTL_STRUCT which isn't very useful unless you can include the C headers to parse it. thanks, -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message