Date: Mon, 26 Oct 1998 08:24:53 -0800 From: John Polstra <jdp@polstra.com> To: rock@cs.uni-sb.de Cc: current@FreeBSD.ORG Subject: Re: vmstat, nfsstat broken Message-ID: <199810261624.IAA05378@austin.polstra.com> In-Reply-To: <3632462A.A9A4503A@cs.uni-sb.de> References: <199810241942.MAA05846@dingo.cdrom.com> <3632462A.A9A4503A@cs.uni-sb.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <3632462A.A9A4503A@cs.uni-sb.de>,
Daniel Rock <rock@cs.uni-sb.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810261624.IAA05378>
