X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.h;h=8b4416cf2db82a77ac455c1df6e9e34dfebc55ab;hb=4eff3e579280ca5a5416ffb7fa106791aa23d6ef;hp=2c68edcc4513fc40bd7f0e9f37daa5a8dd3d6d98;hpb=b2ee7647ee05604397672f6b7c1a804b07466270;p=fio.git diff --git a/stat.h b/stat.h index 2c68edcc..8b4416cf 100644 --- a/stat.h +++ b/stat.h @@ -158,6 +158,8 @@ 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]; @@ -171,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; @@ -180,7 +185,6 @@ struct thread_stat { uint32_t latency_depth; uint64_t latency_target; - uint16_t pad; fio_fp64_t latency_percentile; uint64_t latency_window; } __attribute__((packed)); @@ -210,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); @@ -221,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); @@ -234,8 +241,6 @@ extern void stat_calc_lat_m(struct thread_stat *ts, double *io_u_lat); extern void stat_calc_lat_u(struct thread_stat *ts, double *io_u_lat); extern void stat_calc_dist(unsigned int *map, unsigned long total, double *io_u_dist); extern void reset_io_stats(struct thread_data *); -extern void create_status_interval_thread(void); -extern void wait_for_status_interval_thread_exit(void); static inline int usec_to_msec(unsigned long *min, unsigned long *max, double *mean, double *dev)