projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio 3.15
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 98187def98fbe842e90ae6d4a85a9fb3f358fd10..9508607438a5149df800322f6c081ea6348d39bc 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-493,6
+493,9
@@
int fio_cpus_split(os_cpu_mask_t *mask, unsigned int cpu_index)
const long max_cpu = cpus_online();
cpus_in_mask = fio_cpu_count(mask);
const long max_cpu = cpus_online();
cpus_in_mask = fio_cpu_count(mask);
+ if (!cpus_in_mask)
+ return 0;
+
cpu_index = cpu_index % cpus_in_mask;
index = 0;
cpu_index = cpu_index % cpus_in_mask;
index = 0;
@@
-1773,6
+1776,11
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
.help = "Linux native asynchronous IO",
},
#endif
.help = "Linux native asynchronous IO",
},
#endif
+#ifdef ARCH_HAVE_IOURING
+ { .ival = "io_uring",
+ .help = "Fast Linux native aio",
+ },
+#endif
#ifdef CONFIG_POSIXAIO
{ .ival = "posixaio",
.help = "POSIX asynchronous IO",
#ifdef CONFIG_POSIXAIO
{ .ival = "posixaio",
.help = "POSIX asynchronous IO",
@@
-4530,7
+4538,7
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
{
.name = "kb_base",
.lname = "KB Base",
{
.name = "kb_base",
.lname = "KB Base",
- .type = FIO_OPT_
INT
,
+ .type = FIO_OPT_
STR
,
.off1 = offsetof(struct thread_options, kb_base),
.prio = 1,
.def = "1024",
.off1 = offsetof(struct thread_options, kb_base),
.prio = 1,
.def = "1024",
@@
-4551,7
+4559,7
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
{
.name = "unit_base",
.lname = "Unit for quantities of data (Bits or Bytes)",
{
.name = "unit_base",
.lname = "Unit for quantities of data (Bits or Bytes)",
- .type = FIO_OPT_
INT
,
+ .type = FIO_OPT_
STR
,
.off1 = offsetof(struct thread_options, unit_base),
.prio = 1,
.posval = {
.off1 = offsetof(struct thread_options, unit_base),
.prio = 1,
.posval = {