From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 21 10:38:51 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 3EC1416A4CE for ; Fri, 21 Nov 2003 10:38:51 -0800 (PST) Received: from mail.speakeasy.net (mail8.speakeasy.net [216.254.0.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C69A43FE1 for ; Fri, 21 Nov 2003 10:38:49 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 18562 invoked from network); 21 Nov 2003 18:38:47 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 21 Nov 2003 18:38:47 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id hALIcSFn037338; Fri, 21 Nov 2003 13:38:30 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20031121143936.GV300@straylight.m.ringlet.net> Date: Fri, 21 Nov 2003 13:38:29 -0500 (EST) From: John Baldwin To: Peter Pentchev X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Dag-Erling Sm?rgrav 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 18:38:51 -0000 On 21-Nov-2003 Peter Pentchev wrote: > On Fri, Nov 21, 2003 at 12:13:46PM +0100, Dag-Erling Sm?rgrav wrote: >> Peter Pentchev writes: >> > I was thinking about the setgid bit too, but it can only be removed when >> > all of vmstat's functionality, not just dointr(), is converted to use >> > sysctl. >> >> I know; I'm working on it, and am more than half done. >> >> > Still, here's the updated patch I was speaking of, just to show you what >> > I meant about the !VMSTAT_SYSCTL buglet and it being less intrusive; >> > kvm_openfiles() was not invoked even in the !VMSTAT_SYSCTL case, meaning >> > dointr() wouldn't work at all then. >> >> VMSTAT_SYSCTL is a mistake; vmstat must decide at runtime whether to >> use sysctl (live system) or libkvm (postmortem). > > Oh; right. Sorry. Should have picked that up from your last message > about the postmortem analysis. > > By the way, the '???' comes directly from i386/isa/mp_machdep.c, the > update_intrname() routine; looks like there has never been a device > driver or anything that has claimed interrupt 0 :) No, it exists for histerical raisins. In the older code (such as in 4.x), the ??? entry was used for any interrupt handler that was registered with an empty name. Current no longer will send any interrupts to the ??? bucket as all interrupt sources have names now. So, it could conceivably be dropped from current I guess. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/