.help = "Continue on non-fatal errors during I/O",
.def = "0",
},
+ {
+ .name = "profile",
+ .type = FIO_OPT_STR,
+ .off1 = td_var_offset(profile),
+ .posval = {
+ { .ival = "tiobench",
+ .oval = PROFILE_TIOBENCH,
+ .help = "Perform tiobench like test",
+ },
+ },
+ .help = "Select a specific builtin performance test",
+ },
{
.name = NULL,
},
return str;
tmp++;
+ memset(opt, 0, sizeof(opt));
strncpy(opt, str, tmp - str);
buf = malloc(128);
* replace opt and free the old opt
*/
opt = new;
- free(o_org);
+ //free(o_org);
+
+ /*
+ * Check for potential math and invoke bc, if possible
+ */
+ opt = bc_calc(opt);
}
}
- /*
- * Check for potential math and invoke bc, if possible
- */
- return bc_calc(opt);
+ return opt;
}
int fio_options_parse(struct thread_data *td, char **opts, int num_opts)