From owner-freebsd-current Sat Oct 24 12:38:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA03767 for freebsd-current-outgoing; Sat, 24 Oct 1998 12:38:23 -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 MAA03759 for ; Sat, 24 Oct 1998 12:38:20 -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 MAA05846; Sat, 24 Oct 1998 12:42:18 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810241942.MAA05846@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Daniel Rock cc: current@FreeBSD.ORG Subject: Re: vmstat, nfsstat broken In-reply-to: Your message of "Sat, 24 Oct 1998 21:09:06 +0200." <363225D2.F8BC6C7F@cs.uni-sb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 24 Oct 1998 12:42:17 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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... > nfsstat seems to be broken for a.out and ELF kernels: > nfsstat: sysctl: No such file or directory > > If I change the sysctl() call to a sysctlbyname("vfs.nfs.nfsstats",...) > call in nfsstat.c, nfsstat is working again. Thanks; fixed. -- \\ 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