Commit | Line | Data |
---|---|---|
79d16311 JA |
1 | #include "../fio.h" |
2 | #include "../profile.h" | |
3 | ||
4 | static const char *tb_opts[] = { | |
5 | "buffered=0", "size=4*1024*$mb_memory", "bs=4k", "timeout=600", | |
6 | "numjobs=4", "group_reporting", "thread", "overwrite=1", | |
7 | "filename=.fio.tio.1:.fio.tio.2:.fio.tio.3:.fio.tio.4", | |
8 | "name=seqwrite", "rw=write", "end_fsync=1", | |
9 | "name=randwrite", "stonewall", "rw=randwrite", "end_fsync=1", | |
10 | "name=seqread", "stonewall", "rw=read", | |
11 | "name=randread", "stonewall", "rw=randread", NULL, | |
12 | }; | |
13 | ||
14 | static struct profile_ops tiobench_profile = { | |
15 | .name = "tiobench", | |
16 | .version = FIO_PROFILE_VERSION, | |
17 | .def_ops = tb_opts, | |
18 | }; | |
19 | ||
20 | static void fio_init tiobench_register(void) | |
21 | { | |
22 | register_profile(&tiobench_profile); | |
23 | } | |
24 | ||
25 | static void fio_exit tiobench_unregister(void) | |
26 | { | |
27 | unregister_profile(&tiobench_profile); | |
28 | } |