Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 1998 01:13:07 +0100 (CET)
From:      Andrzej Bialecki <abial@nask.pl>
To:        Mike Smith <mike@smith.net.au>
Cc:        Daniel Rock <rock@cs.uni-sb.de>, current@FreeBSD.ORG
Subject:   Re: vmstat, nfsstat broken 
Message-ID:  <Pine.BSF.4.02A.9810250105170.28464-100000@korin.warman.org.pl>
In-Reply-To: <199810241942.MAA05846@dingo.cdrom.com>

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.

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.

Andrzej Bialecki

--------------------   ++-------++  -------------------------------------
 <abial@nask.pl>       ||PicoBSD||   FreeBSD in your pocket? Go and see:
 Research & Academic   |+-------+|       "Small & Embedded FreeBSD"
 Network in Poland     | |TT~~~| |    http://www.freebsd.org/~picobsd/
--------------------   ~-+==---+-+  -------------------------------------


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?Pine.BSF.4.02A.9810250105170.28464-100000>