From owner-freebsd-current Mon Oct 26 08:25:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA26280 for freebsd-current-outgoing; Mon, 26 Oct 1998 08:25:54 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA26272 for ; Mon, 26 Oct 1998 08:25:52 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.9.1/8.9.1) with ESMTP id IAA05378; Mon, 26 Oct 1998 08:24:53 -0800 (PST) (envelope-from jdp) Message-Id: <199810261624.IAA05378@austin.polstra.com> To: rock@cs.uni-sb.de Subject: Re: vmstat, nfsstat broken In-Reply-To: <3632462A.A9A4503A@cs.uni-sb.de> References: <199810241942.MAA05846@dingo.cdrom.com> <3632462A.A9A4503A@cs.uni-sb.de> Organization: Polstra & Co., Seattle, WA Cc: current@FreeBSD.ORG Date: Mon, 26 Oct 1998 08:24:53 -0800 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <3632462A.A9A4503A@cs.uni-sb.de>, Daniel Rock wrote: > Mike Smith schrieb: > > > > > vmstat doesn't seem to like ELF kernels. With aout kernels "vmstat -i" > > > works, but with ELF ones, I get the following error message: > > > vmstat: symbol intrcnt not defined > > > After taking a short look at the code, I suspect it may be associated > > > with the now missing leading "_" in ELF symbols, but I'm not sure. > > > > It's odd that intrcnt isn't found, but eintrcnt is. If you use 'nm' on > > your kernel, is it present as 'intrcnt' or '_intrcnt'? > The problem isn't the leading "_", but: > The variables intrnames, eintrname, intrcnt, eintrcnt from the namelist > have the type N_UNDF associated, although they have the right value. If I > just ignore n_type, I get the right output even on ELF kernels: I took a quick look at this. Depending on your point of view, it's a bug in nlist(3) and/or in the relevant symbols in the kernel. The symbols come out with an object type of "none", which nlist() then decides to interpret as undefined. I think it's best to fix it in nlist(). I know how to fix it, and will try to get to it before the week is out. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message