NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Where can I get the source code of top?



On Sun, Apr 06, 2008 at 07:37:22PM +0800, Kun Niu wrote:

> Dear all,
> I'm trying to write a utility for system monitor.
> My netbsd version is 3.1.
> It needs to gather information about the system cpu usage data like
> cpu load in user mode, system mode, idle task and so on.
> On linux, I have the file "/proc/stat".
> But I don't have it on netbsd.
> However, I find that top can get the information I want.
> So which file should I rely on on netbsd?
> Or where can I get the source code of top for netbsd?
> Thanks in advance for any hint.

src/usr.bin/top

The NetBSD specific parts are in machine/m_netbsd15.c I think.

Andrew


Home | Main Index | Thread Index | Old Index