From owner-freebsd-hackers Thu Nov 22 9: 2:15 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 6EC6C37B418 for ; Thu, 22 Nov 2001 09:02:10 -0800 (PST) Received: (from joerg@localhost) by taupo.cs.waikato.ac.nz (8.11.3/8.11.1) id fAMH1r910482; Fri, 23 Nov 2001 06:01:53 +1300 (NZDT) (envelope-from joerg) Date: Fri, 23 Nov 2001 06:01:52 +1300 From: Joerg Micheel To: Harti Brandt Cc: Mike Meyer , freebsd-hackers@freebsd.org Subject: Re: sysctls for hardware monitoring? Message-ID: <20011123060152.B8944@cs.waikato.ac.nz> References: <20011123054328.A8944@cs.waikato.ac.nz> <20011122174502.R401-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011122174502.R401-100000@beagle.fokus.gmd.de>; from brandt@fokus.gmd.de on Thu, Nov 22, 2001 at 05:51:10PM +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 05:51:10PM +0100, Harti Brandt wrote: > Taking a Linux driver to argue against > something doesn't really make sense. There is so many crap in the Linux > kernel, that you can argue against anything: "The crappy unix domain > sockets don't work in Linux. Oh yeah, they are a bad idea anyway..." Delete the offending word Linux from my statement and replace it with "I am maintaining a driver which has /proc support on a freeware UNIX platform." Doesn't change a thing. There are floating point numbers, hex integers, strings and a lot of other misc stuff in there. If you want to work with those numbers, you need to write a parser with scanf() in the best case, yacc/lex in the worst. That really sucks! I have a program that needs the Pentium clock frequency in order to introduce nanoseconds of delay. No sysctl! I need to open and read /proc/cpuinfo. Meaning, the kernel has to do lots more stuff and the user program, too. I can't consider that an advantage. I love *BSD pragmatics. It's closer to the real world. 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