From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 21 00:53:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3344116A4CE for ; Fri, 21 Nov 2003 00:53:07 -0800 (PST) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 3515343F85 for ; Fri, 21 Nov 2003 00:53:05 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 16016 invoked from network); 21 Nov 2003 08:51:32 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 21 Nov 2003 08:51:32 -0000 Received: (qmail 18753 invoked by uid 1000); 21 Nov 2003 08:53:00 -0000 Date: Fri, 21 Nov 2003 10:53:00 +0200 From: Peter Pentchev To: Dag-Erling Sm?rgrav Message-ID: <20031121085300.GP300@straylight.m.ringlet.net> Mail-Followup-To: Dag-Erling Sm?rgrav , Mike Tancsa , hackers@freebsd.org References: <20031120044945.GA44933@falcon.midgard.homeip.net> <20031120131903.GG300@straylight.m.ringlet.net> <20031120153655.GI300@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/+CTqSGWdiRg+8j" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1i cc: hackers@freebsd.org cc: Mike Tancsa Subject: Re: interrupt statistics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 08:53:07 -0000 --W/+CTqSGWdiRg+8j Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 21, 2003 at 08:49:52AM +0100, Dag-Erling Sm?rgrav wrote: > des@des.no (Dag-Erling Sm?rgrav) writes: > > Peter Pentchev writes: > >> Awwighty, attached is a patch that converts getuptime() and dointr() to > >> use sysctl, and then adds the -a option to display all interrupts. > >> This one was tested on both RELENG_4 and HEAD (ref5) :) > > [...] >=20 > Why don't you use sysctlbyname(3) instead of juggling with numeric > names? Point taken. I was going to attach a patch that uses sysctlbyname(3), fixes another buglet in the !VMSTAT_SYSCTL case (and is less intrusive), and removes the intrcnt/intrnames-related namelist definitions for the VMSTAT_SYSCTL case. However, it seems to have "issues" on 64-bit platforms, or at least beast. I'm working on it. I'll send a separate reply to your other message about the '???' and stray irq's. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence claims to be an Epimenides paradox, but it is lying. --W/+CTqSGWdiRg+8j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/vdJs7Ri2jRYZRVMRApaLAJ91rHmzQ7ZEfHSyH2X/7l0p7rJYzACgp0eD Kz1RPed0XJxqqHHd84RaQ50= =rfCd -----END PGP SIGNATURE----- --W/+CTqSGWdiRg+8j--