blkparse: Initialize and test for undefined request tracking timestamps
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 13 Apr 2020 19:01:51 +0000 (21:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 May 2020 18:22:35 +0000 (12:22 -0600)
commita61c06774d03fb768fa9fb021e94599822848c8a
treece455ded2cb22beaa3bad32248009bc5e7ff764e
parent9cd3ca7cd32bd73d7ce787ec733221f4b818bb03
blkparse: Initialize and test for undefined request tracking timestamps

Currently, event tracking timestamps aren't initialized at all even though some
places in the code assume that a value of 0 indicates 'undefined'.  However, 0
is the timestamp of the first event, so use -1ULL for 'undefined' instead.

In addition, make sure timestamps are only initialized once, and always check
if timestamps are defined before using them.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blkparse.c