From owner-freebsd-hackers Sun Apr 16 5:34:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id 6B0D337B9EC for ; Sun, 16 Apr 2000 05:34:44 -0700 (PDT) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id 08E2F2DC07; Sun, 16 Apr 2000 14:38:26 +0200 (CEST) Received: by mx.webgiro.com (Postfix, from userid 1001) id B37117811; Sun, 16 Apr 2000 14:30:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id B170810E17; Sun, 16 Apr 2000 14:30:11 +0200 (CEST) Date: Sun, 16 Apr 2000 14:30:11 +0200 (CEST) From: Andrzej Bialecki To: Zhihui Zhang Cc: freebsd-hackers@freebsd.org Subject: Re: NFS attribute cache & profiling sysctl variables In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 15 Apr 2000, Zhihui Zhang wrote: > > I have two unrelated questions I can not figure out myself: > (2) I am trying to display kernel profiling sysctl variables with sysctl > -a or sysctl -A without success. They are defined in subr_prof.c. Why > sysctl command can not display them? I can use kgmon. Many sysctls that return non-ascii or non-numeric values don't have any special handlers in sysctl(8), so they are silently omitted from the listing. However, you should see them with -A... You can also write a trivial 10 line program to try and retrieve the values by calling sysctlbyname (or sysctl if you know the OIDs). Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message