blktrace: various bug fixes and improvements
authorJens Axboe <axboe@fb.com>
Mon, 14 Jul 2014 13:07:11 +0000 (15:07 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 14 Jul 2014 13:07:11 +0000 (15:07 +0200)
commit24653680afe989c47f7555dd4f24c927c1483935
tree7719f3bbe35fee53e91fe76ae6a4d32602838144
parent0c56718d787c5846db7e75d5a01b88342797c681
blktrace: various bug fixes and improvements

- Use the normal debug logging for notify events, as they are expected
  to happen.

- Correct a bug where a workload is considered mixed, even if it is
  only reads (note: just cosmetical, no writes were issued by fio).

- Handle trim more appropriately - fio supports it as a separate
  'data direction', so handle it as such.

- Fix a bug in the delay accounting, causing blktrace to not replay
  correctly. This could cause either too fast replays, or replays
  that would delay way too much.

- Consider TRIMs as writes, as far as --readonly being set is
  concerned.

- Don't consider < 100 usec delays noise, fio can do this quite
  accurately.

Signed-off-by: Jens Axboe <axboe@fb.com>
blktrace.c
iolog.c