X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.h;h=0ca23cc0e6b09186b059e8bae86b266d22a6d5de;hb=6612a27b284aec20c137e3e6b267685b8a4c824c;hp=12cf3c9a686b4a389cacd4da13736d0a0d0d8bf8;hpb=07739b57f09886b41323c605b0dbda7d2c12522b;p=fio.git diff --git a/fio.h b/fio.h index 12cf3c9a..0ca23cc0 100644 --- a/fio.h +++ b/fio.h @@ -212,9 +212,10 @@ enum fio_filetype { enum fio_ioengine_flags { FIO_SYNCIO = 1 << 0, /* io engine has synchronous ->queue */ - FIO_CPUIO = 1 << 1, /* cpu burner, doesn't do real io */ - FIO_RAWIO = 1 << 2, /* some sort of direct/raw io */ - FIO_DISKLESSIO = 1 << 3, /* no disk involved */ + FIO_RAWIO = 1 << 1, /* some sort of direct/raw io */ + FIO_DISKLESSIO = 1 << 2, /* no disk involved */ + FIO_NOEXTEND = 1 << 3, /* engine can't extend file */ + FIO_NODISKUTIL = 1 << 4, /* diskutil can't handle filename */ }; /* @@ -291,7 +292,7 @@ struct thread_stat { */ unsigned int io_u_map[FIO_IO_U_MAP_NR]; unsigned int io_u_lat[FIO_IO_U_LAT_NR]; - unsigned long total_io_u; + unsigned long total_io_u[2]; unsigned long long io_bytes[2]; unsigned long runtime[2]; @@ -307,6 +308,7 @@ struct thread_data { char *name; char *directory; char *filename; + char *ioengine; char verror[128]; pthread_t thread; int thread_number; @@ -472,6 +474,13 @@ struct thread_data { */ struct timeval timeout_end; struct itimerval timer; + + /* + * for fileservice, how often to switch to a new file + */ + unsigned int file_service_nr; + unsigned int file_service_left; + struct fio_file *file_service_file; }; /* @@ -506,6 +515,7 @@ enum { extern int exitall_on_terminate; extern int thread_number; +extern int nr_process, nr_thread; extern int shm_id; extern int groupid; extern int terse_output; @@ -691,6 +701,7 @@ extern void io_u_queued(struct thread_data *, struct io_u *); extern void io_u_log_error(struct thread_data *, struct io_u *); extern void io_u_init_timeout(void); extern void io_u_set_timeout(struct thread_data *); +extern void io_u_mark_depth(struct thread_data *, struct io_u *); /* * io engine entry points