From owner-freebsd-current Sat Oct 24 17:09:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA17834 for freebsd-current-outgoing; Sat, 24 Oct 1998 17:09:19 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA17828 for ; Sat, 24 Oct 1998 17:09:16 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.9.1/8.8.5) with SMTP id BAA14735; Sun, 25 Oct 1998 01:13:08 +0100 (CET) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Sun, 25 Oct 1998 01:13:07 +0100 (CET) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: Mike Smith cc: Daniel Rock , current@FreeBSD.ORG Subject: Re: vmstat, nfsstat broken In-Reply-To: <199810241942.MAA05846@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -------------------- ++-------++ ------------------------------------- ||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