ret = bssplit_ddir(&td->o, DDIR_TRIM, op);
free(op);
}
- ret = bssplit_ddir(&td->o, DDIR_READ, str);
+ if (!ret)
+ ret = bssplit_ddir(&td->o, DDIR_READ, str);
}
free(p);
.group = FIO_OPT_G_RATE,
},
{
- .name = "rate_poisson",
- .lname = "simulate requests under Poisson process",
- .type = FIO_OPT_BOOL,
- .off1 = td_var_offset(poisson_rate),
- .help = "With rate limit, simulate requests that follow Poisson process",
- .def = "0",
- .parent = "rate",
- .hide = 1,
+ .name = "rate_process",
+ .lname = "Rate Process",
+ .type = FIO_OPT_STR,
+ .off1 = td_var_offset(rate_process),
+ .help = "What process controls how rated IO is managed",
+ .def = "linear",
.category = FIO_OPT_C_IO,
.group = FIO_OPT_G_RATE,
+ .posval = {
+ { .ival = "linear",
+ .oval = RATE_PROCESS_LINEAR,
+ .help = "Linear rate of IO",
+ },
+ {
+ .ival = "poisson",
+ .oval = RATE_PROCESS_POISSON,
+ .help = "Rate follows Poisson process",
+ },
+ },
+ .parent = "rate",
},
{
.name = "rate_cycle",