From owner-freebsd-arch Wed Sep 6 11:50:34 2000 Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 4EABE37B422 for ; Wed, 6 Sep 2000 11:50:31 -0700 (PDT) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id UAA92266; Wed, 6 Sep 2000 20:50:30 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: arch@freebsd.org Subject: Linprocfs needs more stats From: Dag-Erling Smorgrav Date: 06 Sep 2000 20:50:29 +0200 Message-ID: Lines: 20 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In order to implement some of the commonly used features of the Linux /proc file system, I need some stats which aren't currently available in the kernel. I know how to generate them, but doing so requires modifying files in the sys/kern and sys/vm directories, amongst others... Initially, I'd like to add the following: - more detailed version/build info in vers.c (for /proc/version) - more detailed CPU usage statistics (for /proc/uptime and /proc/stat): number of ticks spent in {user,sys,intr,idle} since boot. The changes are not very intrusive, though the CPU usage stats will add a handful of instructions to statclock(). DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message