X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=15ab308488c23b1f6608e1f682d70a4696adc506;hp=139b9383f9fbd3ebaf1598b77ecbce244926465a;hb=e25839d4cb5fefcb5ffce76128a4faedb177e7af;hpb=155015351132ad00e2e21cb63f52fee91e56e92a diff --git a/fio.h b/fio.h index 139b9383..15ab3084 100644 --- a/fio.h +++ b/fio.h @@ -39,6 +39,7 @@ struct thread_data; #include "server.h" #include "stat.h" #include "flow.h" +#include "lib/zipf.h" #ifdef FIO_HAVE_GUASI #include @@ -177,6 +178,9 @@ struct thread_options { unsigned int bs_unaligned; unsigned int fsync_on_close; + unsigned int random_distribution; + double zipf_theta; + unsigned int hugepage_size; unsigned int rw_min_bs; unsigned int thinktime; @@ -452,6 +456,11 @@ struct thread_data { struct frand_state __random_state; }; + /* + * Used for zipf random distribution + */ + struct zipf_state zipf; + struct timeval start; /* start of this loop */ struct timeval epoch; /* time job was started */ struct timeval last_issue; @@ -815,4 +824,9 @@ enum { FIO_OUTPUT_NORMAL, }; +enum { + FIO_RAND_DIST_RANDOM = 0, + FIO_RAND_DIST_ZIPF, +}; + #endif