cvs commit: src/sys/dev/em if_em.c

M. Warner Losh imp at bsdimp.com
Tue Aug 22 20:37:28 UTC 2006


In message: <20060822101012.GC43494 at rambler-co.ru>
            Ruslan Ermilov <ru at FreeBSD.org> 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...

Warner


More information about the cvs-src mailing list