From owner-cvs-all Mon Nov 20 7:16:26 2000 Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 76C7537B4C5; Mon, 20 Nov 2000 07:16:21 -0800 (PST) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id KAA33326; Mon, 20 Nov 2000 10:16:08 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Mon, 20 Nov 2000 10:16:07 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Andrzej Bialecki Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_clock.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 20 Nov 2000, Andrzej Bialecki wrote: > On Sun, 19 Nov 2000, Robert Watson wrote: > > > rwatson 2000/11/19 16:44:59 PST > > > > Modified files: > > sys/kern kern_clock.c > > Log: > > o Export cp_time ("CPU time statistics") using SYSCTL_OPAQUE. > > This removes a reason that systat requires setgid kmem. More to > > come. > > There was someone (Kelly Yancey??) that wanted to implement per-CPU > statistics, including CPU times. Does this sysctl handle this? This exports the kernel cp_time array in exactly the form that systat consumes it: an array of size CPUSTATES. My endeavour was not to produce a superior MIB for managing the kernel, rather, to translate existing kmem-accessed data into systl-access data. If there is a better format via which this could be exported, we should probably make those improvements prior to 5.0-RELEASE and without MFC'ing these changes so we don't get any software using the current MIB that has to be changed. I probably don't have time to contribute to such an effort and selected the current path as the path of least resistance to removing the setgid bit from systat and other current-day system monitoring software. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message