X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=8a79289cb77fe9c8d14535276b8181ad41686b5a;hp=bd78e85b6365702a293b40205139aeeff8ca5209;hb=cade3ef44669c5c962d7ed18ca0e361116ee44ad;hpb=afe24a5a66350a3828e8965f7b189fc95b8bbf6c diff --git a/fio.h b/fio.h index bd78e85b..8a79289c 100644 --- a/fio.h +++ b/fio.h @@ -24,6 +24,10 @@ #include "syslet.h" #endif +#ifdef FIO_HAVE_GUASI +#include +#endif + enum fio_ddir { DDIR_READ = 0, DDIR_WRITE, @@ -110,6 +114,9 @@ struct io_u { #endif #ifdef FIO_HAVE_SYSLET struct syslet_req req; +#endif +#ifdef FIO_HAVE_GUASI + guasi_req_t greq; #endif }; struct timeval start_time; @@ -318,6 +325,7 @@ struct thread_options { char *opendir; char *ioengine; enum td_ddir td_ddir; + unsigned int ddir_nr; unsigned int iodepth; unsigned int iodepth_low; unsigned int iodepth_batch; @@ -368,16 +376,17 @@ struct thread_options { enum fio_memtype mem_type; unsigned int stonewall; + unsigned int new_group; unsigned int numjobs; os_cpu_mask_t cpumask; unsigned int iolog; unsigned int read_iolog; unsigned int rwmixcycle; - unsigned int rwmixread; - unsigned int rwmixwrite; + unsigned int rwmix[2]; unsigned int nice; unsigned int file_service_type; unsigned int group_reporting; + unsigned int fadvise_hint; char *read_iolog_file; char *write_iolog_file; @@ -403,12 +412,14 @@ struct thread_options { unsigned int cpucycle; }; +#define FIO_VERROR_SIZE 128 + /* * This describes a single thread/process executing a fio job. */ struct thread_data { struct thread_options o; - char verror[128]; + char verror[FIO_VERROR_SIZE]; pthread_t thread; int thread_number; int groupid; @@ -484,6 +495,8 @@ struct thread_data { struct timeval start; /* start of this loop */ struct timeval epoch; /* time job was started */ + struct timeval rw_end[2]; + unsigned int rw_end_set[2]; /* * read/write mixed workload state @@ -492,6 +505,7 @@ struct thread_data { unsigned long long rwmix_bytes; struct timeval rwmix_switch; enum fio_ddir rwmix_ddir; + unsigned int ddir_nr; /* * IO historic logs @@ -694,6 +708,7 @@ extern void get_file(struct fio_file *); extern void put_file(struct thread_data *, struct fio_file *); extern int add_dir_files(struct thread_data *, const char *); extern int init_random_map(struct thread_data *); +extern void dup_files(struct thread_data *, struct thread_data *); /* * ETA/status stuff