X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=a183d72d09bf8bb14b811338e5f07476f140ed11;hp=bb5b8dd16fc584d155cecfd8af4ce57537e280f6;hb=eba09dd3809a1af93de79996cf9945f7b895f35f;hpb=838a3cd3b7587d3188dc0c75ec73ca068430f01b diff --git a/fio.h b/fio.h index bb5b8dd1..a183d72d 100644 --- a/fio.h +++ b/fio.h @@ -61,6 +61,7 @@ struct io_u { char *buf; unsigned int buflen; unsigned long long offset; + unsigned int index; unsigned int resid; unsigned int error; @@ -145,6 +146,7 @@ struct thread_data { unsigned int use_thread; unsigned int iodepth; os_cpu_mask_t cpumask; + unsigned int jobnum; struct drand48_data bsrange_state; struct drand48_data verify_state; @@ -228,6 +230,8 @@ extern int parse_jobs_ini(char *); extern int parse_options(int, char **); extern void finish_log(struct thread_data *, struct io_log *, const char *); extern int init_random_state(struct thread_data *); +extern struct io_u *__get_io_u(struct thread_data *); +extern void put_io_u(struct thread_data *, struct io_u *); extern int rate_quit; extern int write_lat_log; @@ -259,6 +263,7 @@ enum { enum { FIO_TYPE_FILE = 1, FIO_TYPE_BD, + FIO_TYPE_CHAR, }; enum { @@ -311,4 +316,8 @@ struct io_completion_data { #define DISK_UTIL_MSEC (250) +#ifndef min +#define min(a, b) ((a) < (b) ? (a) : (b)) +#endif + #endif