summaryrefslogtreecommitdiff
path: root/lib/zipf.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-11-06 13:50:32 +0100
committerJens Axboe <axboe@kernel.dk>2012-11-06 13:50:32 +0100
commit925fee33e47f7eb755ee893e87f0de2bd405a8cc (patch)
tree69b38ff524a872dfc707e8d43d7818b623f52684 /lib/zipf.h
parent5ffb051d716725b7c39cf115af779a29d09b62a5 (diff)
downloadfio-925fee33e47f7eb755ee893e87f0de2bd405a8cc.tar.gz
fio-925fee33e47f7eb755ee893e87f0de2bd405a8cc.tar.bz2
Add pareto distribution randomizer
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/zipf.h')
-rw-r--r--lib/zipf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zipf.h b/lib/zipf.h
index 6578ef1c..97a9b32f 100644
--- a/lib/zipf.h
+++ b/lib/zipf.h
@@ -8,10 +8,14 @@ struct zipf_state {
double theta;
double zeta2;
double zetan;
+ double pareto_pow;
struct frand_state rand;
};
void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta);
unsigned long long zipf_next(struct zipf_state *zs);
+void pareto_init(struct zipf_state *zs, unsigned long nranges, double h);
+unsigned long long pareto_next(struct zipf_state *zs);
+
#endif