X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=8b032b881d93d8fe1dc692a1c38898be42848bcd;hb=0fd18982b864987b59dc7bb1e7263a5a8fd73b02;hp=e4ddfa8c54455a43a696f136143511179a215cdc;hpb=c551f65a0a2a972c19f9c274f3cf24f4b6d98680;p=fio.git diff --git a/stat.c b/stat.c index e4ddfa8c..8b032b88 100644 --- a/stat.c +++ b/stat.c @@ -285,11 +285,7 @@ void show_group_stats(struct group_run_stats *rs) } } -#define ts_total_io_u(ts) \ - ((ts)->total_io_u[0] + (ts)->total_io_u[1]) - -static void stat_calc_dist(unsigned int *map, unsigned long total, - double *io_u_dist) +void stat_calc_dist(unsigned int *map, unsigned long total, double *io_u_dist) { int i; @@ -327,12 +323,12 @@ static void stat_calc_lat(struct thread_stat *ts, double *dst, } } -static void stat_calc_lat_u(struct thread_stat *ts, double *io_u_lat) +void stat_calc_lat_u(struct thread_stat *ts, double *io_u_lat) { stat_calc_lat(ts, io_u_lat, ts->io_u_lat_u, FIO_IO_U_LAT_U_NR); } -static void stat_calc_lat_m(struct thread_stat *ts, double *io_u_lat) +void stat_calc_lat_m(struct thread_stat *ts, double *io_u_lat) { stat_calc_lat(ts, io_u_lat, ts->io_u_lat_m, FIO_IO_U_LAT_M_NR); }