Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2007 16:24:27 +0530
From:      "Suresh Kumar J" <suresh.kumar.j@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Using get_system_info() - Obtaining the CPU states...
Message-ID:  <88b2f6dd0705290354l261e5995ta2af8cc2157d0f89@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi there,

I have an application running on FreeBSD which needs to display the
CPU states as like the "top" command shows in the 3rd line as below:
---------------------------------------------------------
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
---------------------------------------------------------

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?. Any other ideas are also welcome.

Note:
I do not want to display the CPU load average...

-- 
Thanks,
Suresh Kumar J



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88b2f6dd0705290354l261e5995ta2af8cc2157d0f89>