From owner-freebsd-current Sat Oct 24 17:19:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18888 for freebsd-current-outgoing; Sat, 24 Oct 1998 17:19:21 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles209.castles.com [208.214.165.209]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18880 for ; Sat, 24 Oct 1998 17:19:19 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id RAA20987; Sat, 24 Oct 1998 17:22:55 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810250022.RAA20987@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Andrzej Bialecki cc: Mike Smith , Daniel Rock , current@FreeBSD.ORG Subject: Re: vmstat, nfsstat broken In-reply-to: Your message of "Sun, 25 Oct 1998 01:13:07 BST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 24 Oct 1998 17:22:54 -0700 From: Mike Smith 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. 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