Date: Thu, 31 Aug 2006 08:58:17 -0700 From: Sam Leffler <sam@errno.com> To: dandee@volny.cz Cc: current@freebsd.org Subject: Re: athstats and flush stats Message-ID: <44F70719.70501@errno.com> In-Reply-To: <005801c6cab0$d2c8aee0$6508280a@tocnet28.jspoj.czf> References: <005801c6cab0$d2c8aee0$6508280a@tocnet28.jspoj.czf>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Dvořák wrote: > Hello Sam and all, > > could you tell me how to reset or flush the stats ? > > I use athstats on ahdemo links to watch OFDM timing errors as you have told > me last time, but it seems it is cumulative stats and iface down and up, it > does not help. > > How-to fulsh except for reboot the computer ? There is no way (currently) to clear the kernel stat counters. It'd be easy to add but I personally hate to lose data and would prefer that reporting stats relative to an event or time be done by user code (e.g. by recording the stat block and showing differences). Another option might be keeping 2 stat blocks in the kernel and adding an ioctl that snap's the state of the stats so user apps can report data relative to the snapshot. This issue is really kinda generic (i.e. relevant to all/many statistics kept in the kernel). Sam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44F70719.70501>