On Tuesday 22 August 2006 16:36, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Ruslan Ermilov <[EMAIL PROTECTED]> writes: > : It's still a watchdog event. We can make it a separate counter, > : like watchdog_tx_event, and not add it to oerrors, but still show > : it in em_print_hw_stats(). It'd be useful to have this statistics > : available. > > I've noticed some drivers have started to export stats via sysctls in > the dev tree. Maybe that's where it should go? > > I've used it for cbb, for example, to report things that are usually > hidden behind bootverbose (more could be useful here): > > dev.cbb.1.pribus: 6 > dev.cbb.1.secbus: 7 > dev.cbb.1.subbus: 7 > > the code is real simple in the init routine to hook up these sysctl to > a softc variable...
em already has several: dev.em.0.debug_info: -1 dev.em.0.stats: -1 dev.em.0.rx_int_delay: 0 dev.em.0.tx_int_delay: 66 dev.em.0.rx_abs_int_delay: 66 dev.em.0.tx_abs_int_delay: 66 -- John Baldwin _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"