summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2014-09-16 17:35:55 +0200
committerJens Axboe <axboe@kernel.dk>2014-09-16 17:35:55 +0200
commit1a8cad44cf3a1078411b36e97ca5dd37a0dcbd70 (patch)
treee0a4f6b9b1787a8a6005c6db34cbf9f2cd770e47 /t
parenta5f29b4aaa7fc75a36e10928f723186a3ef4368c (diff)
downloadfio-1a8cad44cf3a1078411b36e97ca5dd37a0dcbd70.tar.gz
fio-1a8cad44cf3a1078411b36e97ca5dd37a0dcbd70.tar.bz2
btrace2fio: set runtime
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 't')
-rw-r--r--t/btrace2fio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/btrace2fio.c b/t/btrace2fio.c
index ef02c692..c88c0509 100644
--- a/t/btrace2fio.c
+++ b/t/btrace2fio.c
@@ -532,6 +532,7 @@ static int __output_p_fio(struct btrace_pid *p, unsigned long *ios)
{
struct btrace_out *o = &p->o;
unsigned long total;
+ unsigned long long time;
float perc;
int i, j;
@@ -585,6 +586,10 @@ static int __output_p_fio(struct btrace_pid *p, unsigned long *ios)
printf("startdelay=%llus\n", o->start_delay / 1000000ULL);
+ time = o->last_ttime - o->first_ttime;
+ time = (time + 1000000000ULL - 1) / 1000000000ULL;
+ printf("runtime=%llus\n", time);
+
printf("bssplit=");
for (i = 0; i < DDIR_RWDIR_CNT; i++) {