X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.h;h=8b4416cf2db82a77ac455c1df6e9e34dfebc55ab;hb=1e564979edb07cf889ab160765e36a031990c2ad;hp=90a7fb31a1bc2bba6fc43af8b509481918ab1a0c;hpb=83f7b64ea7737da8b0454519dc2143d7ed0473d1;p=fio.git diff --git a/stat.h b/stat.h index 90a7fb31..8b4416cf 100644 --- a/stat.h +++ b/stat.h @@ -158,8 +158,11 @@ struct thread_stat { uint32_t io_u_lat_u[FIO_IO_U_LAT_U_NR]; uint32_t io_u_lat_m[FIO_IO_U_LAT_M_NR]; uint32_t io_u_plat[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR]; + uint32_t pad; + uint64_t total_io_u[3]; uint64_t short_io_u[3]; + uint64_t drop_io_u[3]; uint64_t total_submit; uint64_t total_complete; @@ -170,7 +173,10 @@ struct thread_stat { /* * IO Error related stats */ - uint16_t continue_on_error; + union { + uint16_t continue_on_error; + uint64_t pad2; + }; uint64_t total_err_count; uint32_t first_error; @@ -208,6 +214,8 @@ struct jobs_eta { uint8_t run_str[]; } __attribute__((packed)); +extern struct fio_mutex *stat_mutex; + extern struct jobs_eta *get_jobs_eta(int force, size_t *size); extern void stat_init(void); @@ -219,6 +227,7 @@ extern int calc_thread_status(struct jobs_eta *je, int force); extern void display_thread_status(struct jobs_eta *je); extern void show_run_stats(void); extern void __show_run_stats(void); +extern void __show_running_run_stats(void); extern void show_running_run_stats(void); extern void check_for_running_stats(void); extern void sum_thread_stats(struct thread_stat *dst, struct thread_stat *src, int nr);