From owner-freebsd-hackers@FreeBSD.ORG Tue May 29 12:45:51 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 646CF16A468 for ; Tue, 29 May 2007 12:45:51 +0000 (UTC) (envelope-from mike@urgle.com) Received: from anchor-fallback-96.mail.demon.net (anchor-fallback-96.mail.demon.net [194.217.242.83]) by mx1.freebsd.org (Postfix) with ESMTP id 27F9F13C44C for ; Tue, 29 May 2007 12:45:51 +0000 (UTC) (envelope-from mike@urgle.com) Received: from anchor-post-34.mail.demon.net ([194.217.242.92]:4991 "EHLO anchor-post-34.mail.demon.net") by anchor-fallback-96.mail.demon.net with ESMTP id S448466AbXE2LiA (ORCPT ); Tue, 29 May 2007 11:38:00 +0000 Received: from wafer.urgle.com ([80.177.40.53]) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1Ht01R-000Pa4-G5; Tue, 29 May 2007 11:37:54 +0000 Received: from mike by wafer.urgle.com with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1Ht01R-0009pP-Am; Tue, 29 May 2007 11:37:53 +0000 Date: Tue, 29 May 2007 12:37:53 +0100 From: Mike Bristow To: Suresh Kumar J Message-ID: <20070529113753.GA37427@wafer.urgle.com> References: <88b2f6dd0705290354l261e5995ta2af8cc2157d0f89@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <88b2f6dd0705290354l261e5995ta2af8cc2157d0f89@mail.gmail.com> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-hackers@freebsd.org Subject: Re: Using get_system_info() - Obtaining the CPU states... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2007 12:45:51 -0000 On Tue, May 29, 2007 at 04:24:27PM +0530, Suresh Kumar J wrote: > I learnt that the "top" command uses the get_system_info() function > for printing the CPU state detail. But I could not locate the source > code of this function. Could anybody help me in locating the > header/source file in which the get_system_info() function is > located? /usr/src/usr.bin/top/machine.c (which can be found on the web at http://cvsweb.freebsd.org/src/usr.bin/top/machine.c) -- Shenanigans! Shenanigans! Best of 3! -- Flash