X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.h;h=2a762aa2e5427c93adfdc6cdf9426c3e60ec4b6a;hb=936216f8cd8ae2261282453d82a2a8232bb4db45;hp=751fc3d18ecc8d59c1de03fac09501de6c8c53ef;hpb=15dc1934435dc84d66547c4fc92d936224d7238f;p=fio.git diff --git a/fio.h b/fio.h index 751fc3d1..2a762aa2 100644 --- a/fio.h +++ b/fio.h @@ -30,6 +30,8 @@ #include "iolog.h" #include "helpers.h" #include "options.h" +#include "profile.h" +#include "time.h" #ifdef FIO_HAVE_GUASI #include @@ -183,6 +185,8 @@ struct thread_options { unsigned int verify_pattern_bytes; unsigned int verify_fatal; unsigned int verify_async; + unsigned long long verify_backlog; + unsigned int verify_batch; unsigned int use_thread; unsigned int unlink; unsigned int do_disk_util; @@ -237,6 +241,7 @@ struct thread_options { unsigned int gtod_reduce; unsigned int gtod_cpu; unsigned int gtod_offload; + enum fio_cs clocksource; char *read_iolog_file; char *write_iolog_file; @@ -278,9 +283,12 @@ struct thread_options { */ char *cgroup; unsigned int cgroup_weight; + unsigned int cgroup_nodelete; unsigned int uid; unsigned int gid; + + unsigned int sync_file_range; }; #define FIO_VERROR_SIZE 128 @@ -315,6 +323,7 @@ struct thread_data { unsigned int ioprio; unsigned int ioprio_set; unsigned int last_was_sync; + enum fio_ddir last_ddir; char *mmapfile; int mmapfd; @@ -329,6 +338,8 @@ struct thread_data { os_random_state_t bsrange_state; os_random_state_t verify_state; + unsigned int verify_batch; + int shm_id; /* @@ -367,6 +378,7 @@ struct thread_data { struct timeval lastrate[2]; unsigned long long total_io_size; + unsigned long long fill_device_size; unsigned long io_issues[2]; unsigned long long io_blocks[2]; @@ -403,6 +415,7 @@ struct thread_data { */ struct rb_root io_hist_tree; struct flist_head io_hist_list; + unsigned long io_hist_len; /* * For IO replaying @@ -416,6 +429,8 @@ struct thread_data { unsigned int file_service_left; struct fio_file *file_service_file; + unsigned int sync_file_range_nr; + /* * For generating file sizes */ @@ -430,8 +445,8 @@ struct thread_data { /* * Can be overloaded by profiles */ - int (*fill_io_u_off)(struct thread_data *, struct io_u *); - int (*fill_io_u_size)(struct thread_data *, struct io_u *); + struct prof_io_ops prof_io_ops; + void *prof_data; }; /* @@ -476,6 +491,7 @@ extern unsigned long done_secs; extern char *job_section; extern int fio_gtod_offload; extern int fio_gtod_cpu; +extern enum fio_cs fio_clock_source; extern struct thread_data *threads; @@ -512,25 +528,6 @@ static inline int should_fsync(struct thread_data *td) return 0; } -/* - * Time functions - */ -extern unsigned long long utime_since(struct timeval *, struct timeval *); -extern unsigned long long utime_since_now(struct timeval *); -extern unsigned long mtime_since(struct timeval *, struct timeval *); -extern unsigned long mtime_since_now(struct timeval *); -extern unsigned long time_since_now(struct timeval *); -extern unsigned long mtime_since_genesis(void); -extern void usec_spin(unsigned int); -extern void usec_sleep(struct thread_data *, unsigned long); -extern void fill_start_time(struct timeval *); -extern void fio_gettime(struct timeval *, void *); -extern void fio_gtod_init(void); -extern void fio_gtod_update(void); -extern void set_genesis_time(void); -extern int ramp_time_over(struct thread_data *); -extern int in_ramp_time(struct thread_data *); - /* * Init/option functions */