Start and stop status interval (or file) thread separately
[fio.git] / stat.h
diff --git a/stat.h b/stat.h
index 90a7fb31a1bc2bba6fc43af8b509481918ab1a0c..2c68edcc4513fc40bd7f0e9f37daa5a8dd3d6d98 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -160,6 +160,7 @@ struct thread_stat {
        uint32_t io_u_plat[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR];
        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;
 
@@ -179,6 +180,7 @@ 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));
@@ -232,6 +234,8 @@ 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)