blktrace fixup + documentation
[fio.git] / blktrace.c
index 864e9dc7900bf4971fcc70dc7720a0b89be7b42e..1669fe556bc3324d2b40567e0afdab0f0e359667 100644 (file)
@@ -100,6 +100,7 @@ static void handle_trace(struct thread_data *td, struct blk_io_trace *t,
 
        rw = (t->action & BLK_TC_ACT(BLK_TC_WRITE)) != 0;
        ios[rw]++;
+       td->o.size += t->bytes;
        store_ipo(td, t->sector, t->bytes, rw, ttime);
 }
 
@@ -120,6 +121,8 @@ int load_blktrace(struct thread_data *td, const char *filename)
                return 1;
        }
 
+       td->o.size = 0;
+
        ios[0] = ios[1] = 0;
        ttime = 0;
        do {