projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6cd9493
)
t/axmap: update tester for lfsr_init() taking a seed argument
author
Jens Axboe
<axboe@kernel.dk>
Fri, 21 Dec 2012 20:32:50 +0000
(21:32 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 21 Dec 2012 20:32:50 +0000
(21:32 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/axmap.c
patch
|
blob
|
blame
|
history
diff --git
a/t/axmap.c
b/t/axmap.c
index 1f8c3e9a90f6855878f37c0fb574217f6363094e..3f6043dbfe0e5af49182691dc747aaa1c7e6ff80 100644
(file)
--- a/
t/axmap.c
+++ b/
t/axmap.c
@@
-26,13
+26,17
@@
int main(int argc, char *argv[])
struct fio_lfsr lfsr;
size_t size = (1UL << 28) - 200;
struct axmap *map;
+ int seed = 1;
- if (argc > 1)
+ if (argc > 1)
{
size = strtoul(argv[1], NULL, 10);
+ if (argc > 2)
+ seed = strtoul(argv[2], NULL, 10);
+ }
printf("Using %llu entries\n", (unsigned long long) size);
- lfsr_init(&lfsr, size);
+ lfsr_init(&lfsr, size
, seed
);
map = axmap_new(size);
while (size--) {