From owner-cvs-all Thu Dec 31 11:38:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA09798 for cvs-all-outgoing; Thu, 31 Dec 1998 11:38:09 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from dingo.cdrom.com (castles121.castles.com [208.214.165.121]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA09791 for ; Thu, 31 Dec 1998 11:38:07 -0800 (PST) (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 LAA01128; Thu, 31 Dec 1998 11:30:33 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812311930.LAA01128@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Nate Williams cc: Mike Smith , Poul-Henning Kamp , committers@FreeBSD.ORG Subject: Re: kvm_nlist emulation of n_type from kld symbol table at runtime. In-reply-to: Your message of "Wed, 30 Dec 1998 23:24:53 MST." <199812310624.XAA07777@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 31 Dec 1998 11:30:32 -0800 From: Mike Smith Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > > > > It would be trivial to implement in a sysctl, and we can even do it > > > > as > > > > sysctl kern.nlist.val.avenrun > > > > sysctl kern.nlist.type.avenrun > > > > if you want to... > > > > > > What about 'loadable' drivers that may have multiple symbols for > > > multiple interfaces, ala network cards? > > > > > > kern.nlist.ed0.softc? > > > > Eugh. I think we're at cross purposes here. Exporting the kernel > > symbol table for debugging purposes is one thing, exporting entities > > out of the kernel for eg. statistical operations is another entirely. > > What about for things such as interrupt counts, collisions, and such. > These aren't debugging issues, but do exist on a per-card basis. They're already available via a sysctl, currently using a privately-managed growable tree. There's no reason not to continue to do it this way. As I said, information of a parametric or statistical nature matches sysctl well. Debugging matches symbol table access well. The two are complementary, not exclusive. -- \\ 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 cvs-all" in the body of the message