Subject: Re: bin/10276: systat/vmstat/iostat does not work due to lack of kernel symbol cp_time
To: None <itojun@starfruit.itojun.org>
From: Simon Burge <simonb@netbsd.org>
List: netbsd-bugs
Date: 06/04/2000 18:53:55
itojun@itojun.org wrote:

> 
> >Number:         10276
> >Category:       bin
> >Synopsis:       systat/vmstat/iostat does not work due to lack of kernel symbol cp_time
> ...
> >Description:
> 	systat/vmstat/iostat refers kernel symbol cp_time via kvm_read.
> 	cp_time went away and these tools choke.
> >How-To-Repeat:
> 	# systat (nothing happens)
> 	# vmstat wd0
> 	# iostat

These should probably use the new KERN_CP_TIME sysctl.  I'll look into
this (tomorrow) if no one else does.  If anyone wants to beat me to it,
usr.bin/top/machine/m_netbsd15.c has an example of the usage of this
sysctl.

Simon.