Allow holes in the option posval (possible values)
[fio.git] / profiles / tiobench.c
index 4bdcfa24396580109aba6c4eab4590db6c703a18..e8c478ec6ce817c819fcd8fc21724b901e343dcb 100644 (file)
@@ -85,6 +85,7 @@ static void tb_prep_cmdline(void)
 
 static struct profile_ops tiobench_profile = {
        .name           = "tiobench",
+       .desc           = "Emulate behaviour of the tiotest/tiobench benchmark",
        .options        = options,
        .prep_cmd       = tb_prep_cmdline,
        .cmdline        = tb_opts,
@@ -92,7 +93,8 @@ static struct profile_ops tiobench_profile = {
 
 static void fio_init tiobench_register(void)
 {
-       register_profile(&tiobench_profile);
+       if (register_profile(&tiobench_profile))
+               log_err("fio: failed to register profile 'tiobench'\n");
 }
 
 static void fio_exit tiobench_unregister(void)