Start of ACT like benchmark profile
[fio.git] / profiles / tiobench.c
index 5ab602af75e5c4c4db67fa1aa1fa983f49e70c8e..0d2ce8065e261b276bf40f6a8a753c343225dbc2 100644 (file)
@@ -27,7 +27,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_STR_VAL,
                .roff1  = &size,
                .help   = "Size in MB",
-               .category = FIO_OPT_C_IO,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "block",
@@ -36,7 +37,8 @@ static struct fio_option options[] = {
                .roff1  = &bs,
                .help   = "Block size in bytes",
                .def    = "4k",
-               .category = FIO_OPT_C_IO,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "numruns",
@@ -44,7 +46,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_INT,
                .roff1  = &loops,
                .help   = "Number of runs",
-               .category = FIO_OPT_C_GENERAL,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "dir",
@@ -52,7 +55,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_STR_STORE,
                .roff1  = &dir,
                .help   = "Test directory",
-               .category = FIO_OPT_C_FILE,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "threads",
@@ -60,7 +64,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_INT,
                .roff1  = &nthreads,
                .help   = "Number of Threads",
-               .category = FIO_OPT_C_GENERAL,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = NULL,
@@ -70,9 +75,8 @@ static struct fio_option options[] = {
 /*
  * Fill our private options into the command line
  */
-static void tb_prep_cmdline(void)
+static int tb_prep_cmdline(void)
 {
-
        /*
         * tiobench uses size as MB, so multiply up
         */
@@ -91,6 +95,7 @@ static void tb_prep_cmdline(void)
                sprintf(dir_idx, "directory=./");
 
        sprintf(t_idx, "numjobs=%u", nthreads);
+       return 0;
 }
 
 static struct profile_ops tiobench_profile = {