Fio 3.5
[fio.git] / stat.h
diff --git a/stat.h b/stat.h
index ba66c407a71a4cb1ba6f254900eee2b95ce25135..cc91dfcc332e8a96748b326f9a6a0cda7b421230 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -159,6 +159,7 @@ struct thread_stat {
        /*
         * bandwidth and latency stats
         */
+       struct io_stat sync_stat __attribute__((aligned(8)));/* fsync etc stats */
        struct io_stat clat_stat[DDIR_RWDIR_CNT]; /* completion latency */
        struct io_stat slat_stat[DDIR_RWDIR_CNT]; /* submission latency */
        struct io_stat lat_stat[DDIR_RWDIR_CNT]; /* total latency */
@@ -188,9 +189,10 @@ 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 io_u_sync_plat[FIO_IO_U_PLAT_NR];
        uint32_t pad;
 
-       uint64_t total_io_u[DDIR_RWDIR_CNT];
+       uint64_t total_io_u[DDIR_RWDIR_SYNC_CNT];
        uint64_t short_io_u[DDIR_RWDIR_CNT];
        uint64_t drop_io_u[DDIR_RWDIR_CNT];
        uint64_t total_submit;
@@ -318,6 +320,8 @@ extern void add_iops_sample(struct thread_data *, struct io_u *,
                                unsigned int);
 extern void add_bw_sample(struct thread_data *, struct io_u *,
                                unsigned int, unsigned long long);
+extern void add_sync_clat_sample(struct thread_stat *ts,
+                                       unsigned long long nsec);
 extern int calc_log_samples(void);
 
 extern struct io_log *agg_io_log[DDIR_RWDIR_CNT];