summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/stdlib/t_getenv_thread.c
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2015-02-27 21:35:36 +0000
committerken <ken@FreeBSD.org>2015-02-27 21:35:36 +0000
commitedb8d775e4647416f733c956f1c65cb9e519e657 (patch)
tree761abdce63146e42fb71ccc9157c087bfa53a51b /contrib/netbsd-tests/lib/libc/stdlib/t_getenv_thread.c
parentc20b5fa0f26a35dd5df9120984068179c82d1c6f (diff)
downloadFreeBSD-src-edb8d775e4647416f733c956f1c65cb9e519e657.zip
FreeBSD-src-edb8d775e4647416f733c956f1c65cb9e519e657.tar.gz
Fix I/O size calculation for pass(4) driver requests and add latency
tracking. It is important to subtract the residual from the requested transfer size to see how much data was actually transferred. With tape drives in particular, it is common to request more data than is returned. Also, add I/O latency tracking for CAM requests issued by cam_periph_runccb(). If the caller supplies a struct devstat, and the I/O is a SCSI or ATA I/O, we will track the elapsed time to provide I/O latency statistics for the request. sys/cam/scsi/cam_periph.c: In cam_periph_runccb(), subtract the residual when reporting I/O totals to devstat(9) for SCSI and ATA passthrough requests. In cam_periph_runccb(), grab the I/O start time and supply the start time to devstat_end_transaction() so that it can calculate the elapsed I/O time. Sponsored by: Spectra Logic MFC after: 1 week
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_getenv_thread.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud