[PATCH] Include io depth distribution statistics

Calculate the distribution of io depths for the job run.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index e85d6cc..c214406 100644
--- a/fio.h
+++ b/fio.h
@@ -168,6 +168,11 @@
 };
 
 /*
+ * How many depth levels to log
+ */
+#define FIO_IO_U_MAP_NR	8
+
+/*
  * This describes a single thread/process executing a fio job.
  */
 struct thread_data {
@@ -264,6 +269,8 @@
 	 * Current IO depth and list of free and busy io_u's.
 	 */
 	unsigned int cur_depth;
+	unsigned int io_u_map[FIO_IO_U_MAP_NR];
+	unsigned long total_io_u;
 	struct list_head io_u_freelist;
 	struct list_head io_u_busylist;