Date: Sat, 24 Oct 1998 17:22:54 -0700 From: Mike Smith <mike@smith.net.au> To: Andrzej Bialecki <abial@nask.pl> Cc: Mike Smith <mike@smith.net.au>, Daniel Rock <rock@cs.uni-sb.de>, current@FreeBSD.ORG Subject: Re: vmstat, nfsstat broken Message-ID: <199810250022.RAA20987@dingo.cdrom.com> In-Reply-To: Your message of "Sun, 25 Oct 1998 01:13:07 BST." <Pine.BSF.4.02A.9810250105170.28464-100000@korin.warman.org.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Sat, 24 Oct 1998, Mike Smith wrote: > > > > 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'? > > > > If you're looking for a small project, it'd be quite neat if you could > > clean vmstat up... > > IMVHO, things like vmstat shouldn't use libkvm at all, especially because > most of the info they report is already available via sysctl(3). If some > structures and figures still need to be exported, perhaps better just do > this, and not invest additional efforts in using libkvm... Also, as an > additional bonus you'd get chmod g-s. This won't work until someone writes a standalone sysctl library that runs using the kernel sysctl datastructures. It'll get harder if/when we go for a more method-based sysctl replacement. > The argument that "libkvm allows you to read this info from other images" > is important, but it just shows that we need some relatively versatile > tool for examining coredumps. Actually, I don't think many people use these tools on coredumps, but they're very loud. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com 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?199810250022.RAA20987>