Date: Tue, 15 Aug 2000 21:59:29 -0700 (PDT) From: Kelly Yancey <kbyanc@posi.net> To: Alfred Perlstein <bright@wintelcom.net> Cc: arch@FreeBSD.ORG Subject: Re: would like to make cp_time a sysctl Message-ID: <Pine.BSF.4.21.0008152156001.40735-100000@gateway.posi.net> In-Reply-To: <20000815205643.M4854@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Aug 2000, Alfred Perlstein wrote: > 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. One oid per name? I.e. kern.cpustate.user = X, kern.cpustate.nice = Y... > > 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. > The struct sure beats libkvm. :) In any event, one could always teach sysctl(8) about the type and it can display it suitable for humans and scripts. Kelly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" 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.0008152156001.40735-100000>