aboutsummaryrefslogtreecommitdiff
path: root/contrib/netbsd-tests/lib/libcurses/tests/termattrs
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2025-10-26 16:52:11 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2025-10-31 15:52:20 +0000
commitdb25448ab9ffa8bfe52d852674cc466494b849d1 (patch)
treed983893382c0890991a7e46666de0300ab3497b7 /contrib/netbsd-tests/lib/libcurses/tests/termattrs
parentbd27bd1f51d049538cc7a0053be9d99110a53ae1 (diff)
dtrace_io.4: Use bio_length instead of bio_bcount in examplesHEADmain
Tracing bio_bcount makes little sense for some devices like for example md(4), as it is set to "0" instead of to the actual I/O length. markj@ suggested the following DTrace one-liner to identify some cases where bio_length is set but bio_bcount is not: dtrace -n 'io:::start /args[0]->bio_length != args[0]->bio_bcount/{printf("%d %d", args[0]->bio_length, args[0]->bio_bcount); stack();}' For future reference in the context of bio_length vs bio_bcount, phk@ mentioned in the code review that: > the original intent was to get rid of of bio_bcount Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D53365
Diffstat (limited to 'contrib/netbsd-tests/lib/libcurses/tests/termattrs')
0 files changed, 0 insertions, 0 deletions