From owner-freebsd-hackers Sun Apr 16 6:42: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id C74B737B7AD for ; Sun, 16 Apr 2000 06:42:06 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.freebsd.dk [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id PAA05034; Sun, 16 Apr 2000 15:41:57 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Andrzej Bialecki Cc: Zhihui Zhang , freebsd-hackers@FreeBSD.org Subject: Re: NFS attribute cache & profiling sysctl variables In-reply-to: Your message of "Sun, 16 Apr 2000 14:30:11 +0200." Date: Sun, 16 Apr 2000 15:41:57 +0200 Message-ID: <5032.955892517@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Andrzej B ialecki writes: >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). ... Or use sysctl -b mumble.frotz | hexdump -C -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message