Created attachment 153982 [details] Patch gnop(8) already stores up and shows stats for the number of BIO_READ and BIO_WRITE calls that pass through it. Counting the other types as well makes it more useful for testing other stuff.
https://reviews.freebsd.org/D3679
A commit references this bug: Author: trasz Date: Sat Oct 10 09:03:32 UTC 2015 New revision: 289110 URL: https://svnweb.freebsd.org/changeset/base/289110 Log: Make geom_nop(4) collect statistics on all types of BIOs, not just reads and writes. PR: kern/198405 Submitted by: Matthew D. Fuller <fullermd at over-yonder dot net> MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3679 Changes: head/sbin/geom/class/nop/gnop.8 head/sys/geom/nop/g_nop.c head/sys/geom/nop/g_nop.h
A commit references this bug: Author: trasz Date: Tue Jan 12 09:27:02 UTC 2016 New revision: 293738 URL: https://svnweb.freebsd.org/changeset/base/293738 Log: MFC r289110: Make geom_nop(4) collect statistics on all types of BIOs, not just reads and writes. PR: kern/198405 Submitted by: Matthew D. Fuller <fullermd at over-yonder dot net> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3679 Changes: _U stable/10/ stable/10/sbin/geom/class/nop/gnop.8 stable/10/sys/geom/nop/g_nop.c stable/10/sys/geom/nop/g_nop.h