Add poisson rate selection to FD_RATE output
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 5e8ac66686d30753519139f80903a4f3a11281d9..7b198b216411b81043e761e4fa444c09dfb5f012 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -95,6 +95,7 @@ enum {
        FIO_RAND_SEQ_RAND_TRIM_OFF,
        FIO_RAND_START_DELAY,
        FIO_DEDUPE_OFF,
+       FIO_RAND_POISSON_OFF,
        FIO_RAND_NR_OFFS,
 };
 
@@ -243,6 +244,8 @@ struct thread_data {
        unsigned long rate_blocks[DDIR_RWDIR_CNT];
        unsigned long rate_io_issue_bytes[DDIR_RWDIR_CNT];
        struct timeval lastrate[DDIR_RWDIR_CNT];
+       int64_t last_usec;
+       struct frand_state poisson_state;
 
        /*
         * Enforced rate submission/completion workqueue