blkparse: split off the timestamp correction code in to a separate function
authorHiroaki Mihara <hmihara@redhat.com>
Tue, 24 Sep 2019 22:32:06 +0000 (07:32 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 25 Sep 2019 06:22:13 +0000 (00:22 -0600)
commitd025d6c67760a52e34e6c7352f33ad5dbbb4f6f4
tree89b4beef5556de2e3bb03309956c161b18c5866d
parent09feee843ec1f5e00db56da5f4ff91847c3cd958
blkparse: split off the timestamp correction code in to a separate function

find_genesis() function has code to correct abs_start_time, which is
later used to calculate the absolute timestamps of each traced
records.

Put this code in a separate function, so that it can be used later by
the blkparse code. No functional change.

Signed-off-by: Hiroaki Mihara <hmihara@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blkparse.c