backend: cleanup overlap submission logic
[fio.git] / stat.h
diff --git a/stat.h b/stat.h
index ea45c00c2857c4479843d9ab66b0ce6d2508bd1a..132dee3cd876dcda01d18e60b576049a66f00eb1 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -290,6 +290,7 @@ extern void init_group_run_stat(struct group_run_stats *gs);
 extern void eta_to_str(char *str, unsigned long eta_sec);
 extern bool calc_lat(struct io_stat *is, unsigned long long *min, unsigned long long *max, double *mean, double *dev);
 extern unsigned int calc_clat_percentiles(unsigned int *io_u_plat, unsigned long nr, fio_fp64_t *plist, unsigned long long **output, unsigned long long *maxv, unsigned long long *minv);
+extern void stat_calc_lat_n(struct thread_stat *ts, double *io_u_lat);
 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);
@@ -313,8 +314,9 @@ extern int calc_log_samples(void);
 extern struct io_log *agg_io_log[DDIR_RWDIR_CNT];
 extern int write_bw_log;
 
-static inline bool nsec_to_usec(unsigned long long *min, unsigned long long *max,
-                               double *mean, double *dev)
+static inline bool nsec_to_usec(unsigned long long *min,
+                               unsigned long long *max, double *mean,
+                               double *dev)
 {
        if (*min > 2000 && *max > 99999 && *dev > 1000.0) {
                *min /= 1000;
@@ -327,8 +329,9 @@ static inline bool nsec_to_usec(unsigned long long *min, unsigned long long *max
        return false;
 }
 
-static inline bool nsec_to_msec(unsigned long long *min, unsigned long long *max,
-                               double *mean, double *dev)
+static inline bool nsec_to_msec(unsigned long long *min,
+                               unsigned long long *max, double *mean,
+                               double *dev)
 {
        if (*min > 2000000 && *max > 99999999ULL && *dev > 1000000.0) {
                *min /= 1000000;
@@ -340,6 +343,7 @@ static inline bool nsec_to_msec(unsigned long long *min, unsigned long long *max
 
        return false;
 }
+
 /*
  * Worst level condensing would be 1:5, so allow enough room for that
  */