Date: Fri, 22 Aug 2008 21:01:06 -0700 From: Sam Leffler <sam@freebsd.org> To: pyunyh@gmail.com Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/dev/bfe if_bfe.c if_bfereg.h Message-ID: <48AF8B82.8050509@freebsd.org> In-Reply-To: <20080823023539.GD9758@cdnetworks.co.kr> References: <200808220647.m7M6lAeL097786@repoman.freebsd.org> <48AEE7B5.7090700@freebsd.org> <20080823023539.GD9758@cdnetworks.co.kr>
next in thread | previous in thread | raw e-mail | index | archive | help
Pyun YongHyeon wrote: > On Fri, Aug 22, 2008 at 09:22:13AM -0700, Sam Leffler wrote: > > Pyun YongHyeon wrote: > > >yongari 2008-08-22 06:46:55 UTC > > > > > > FreeBSD src repository > > > > > > Modified files: > > > sys/dev/bfe if_bfe.c if_bfereg.h > > > Log: > > > SVN rev 181994 on 2008-08-22 06:46:55Z by yongari > > > > > > Add a new sysctl node 'dev.bfe.N.stats' that shows various MAC > > > counters for Rx/Tx statistics. Various counters in ifnet is also > > > updated with these hardware counters. > > > > > > > > Can we not add stuff like that spews output to the console? I much > > prefer to see a tool that dumps the stats and if you need to get to them > > w/o the tool then consider adding a ddb cmd. We're just about to get > > the ability to add ddb cmds in loadable modules which was the only > > reason not to leverage ddb for stuff like this. > > > > That would be one of possible approach. Thanks for the pointer. > > John Baldwin corrected my mis-thinking. I was thinking we could use a ddb command to send output to a terminal but it'll only go to a console. Another possible approach is to use dtrace but that's probably less-likely to be configured into a kernel so I'm not sure which way is best. Ideally we'd have a framework for drivers to report statistics through a standard interface like netstat but that's not there (yet). Sam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AF8B82.8050509>