summaryrefslogtreecommitdiff
path: root/lib/zipf.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-05-16 18:09:43 -0600
committerJens Axboe <axboe@fb.com>2016-05-16 18:09:43 -0600
commit8348daf915d4b2c3ec95a16ad803e9e42eb2bfda (patch)
treecb075c7c23ab2c63be4943cc6ca2c43874126dcf /lib/zipf.h
parent66b98c9fe942e8fd417525ace39d0e0b93bcb9e9 (diff)
downloadfio-8348daf915d4b2c3ec95a16ad803e9e42eb2bfda.tar.gz
fio-8348daf915d4b2c3ec95a16ad803e9e42eb2bfda.tar.bz2
zipf/pareto/gauss: add option to disable hashing
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'lib/zipf.h')
-rw-r--r--lib/zipf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/zipf.h b/lib/zipf.h
index f98ad818..af2d0e64 100644
--- a/lib/zipf.h
+++ b/lib/zipf.h
@@ -12,6 +12,7 @@ struct zipf_state {
double pareto_pow;
struct frand_state rand;
uint64_t rand_off;
+ bool disable_hash;
};
void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);
@@ -19,5 +20,6 @@ unsigned long long zipf_next(struct zipf_state *zs);
void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, unsigned int seed);
unsigned long long pareto_next(struct zipf_state *zs);
+void zipf_disable_hash(struct zipf_state *zs);
#endif