From owner-freebsd-hackers Thu Nov 22 8:43:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from taupo.cs.waikato.ac.nz (taupo.cs.waikato.ac.nz [130.217.241.30]) by hub.freebsd.org (Postfix) with ESMTP id 51CB337B418 for ; Thu, 22 Nov 2001 08:43:54 -0800 (PST) Received: (from joerg@localhost) by taupo.cs.waikato.ac.nz (8.11.3/8.11.1) id fAMGhSS09558; Fri, 23 Nov 2001 05:43:28 +1300 (NZDT) (envelope-from joerg) Date: Fri, 23 Nov 2001 05:43:28 +1300 From: Joerg Micheel To: Harti Brandt Cc: Mike Meyer , freebsd-hackers@freebsd.org Subject: Re: sysctls for hardware monitoring? Message-ID: <20011123054328.A8944@cs.waikato.ac.nz> References: <15356.54999.36663.125374@guru.mired.org> <20011122120233.B2946-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011122120233.B2946-100000@beagle.fokus.gmd.de>; from brandt@fokus.gmd.de on Thu, Nov 22, 2001 at 12:08:16PM +0100 Organization: Dept of Computer Science, University of Waikato, Hamilton, New Zealand Project: WAND, DAG, Passive Measurement and Analysis Operating-System: ... powered by FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Nov 22, 2001 at 12:08:16PM +0100, Harti Brandt wrote: > It's just annoying to need a special program to get at the values. For > some parts of the MIB, like the interface MIB, even sysctl doesn't help - > you need to write a program to look at these. I still think, its easier to > read the fan speed by cat(1)-ing a file, than to fire up a special > program for this. It really is user convenience against kernel bloat. I have a Linux device driver which tries to provice a /proc entry. The amount of printf() style crap in there is really disgusting and it does not even report half of what it should. I've long ago decided that for anything other than the trivial case a binary interface is the only way one can deal with these situations. It is unfortunate for the few of us who like Plan9, but how big a bitter pill are you prepared to swallow. Joerg -- Joerg B. Micheel Email: WAND and NLANR MOAT Email: The University of Waikato, CompScience Phone: +64 7 8384794 Private Bag 3105 Fax: +64 7 8585095 Hamilton, New Zealand Plan: PMA, TINE and the DAG's To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message