summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-11-30 14:44:06 -0700
committerJens Axboe <axboe@fb.com>2015-11-30 14:44:06 -0700
commit210dd0fc66b8956065e098bb9314febe8993e849 (patch)
treef92610f7c3acb8d23bde5c8f1b0391d01cf4757c /stat.h
parent9e129577b8799a9578a6aa6021a58367981e320a (diff)
downloadfio-210dd0fc66b8956065e098bb9314febe8993e849.tar.gz
fio-210dd0fc66b8956065e098bb9314febe8993e849.tar.bz2
Clear rusage stat when resetting all stats
This fixes an issue with bad rusage reporting, particularly when the runtime to ramptime ratio is low. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stat.h b/stat.h
index e289c2e5..02835112 100644
--- a/stat.h
+++ b/stat.h
@@ -267,6 +267,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 update_rusage_stat(struct thread_data *);
+extern void clear_rusage_stat(struct thread_data *);
static inline int usec_to_msec(unsigned long *min, unsigned long *max,
double *mean, double *dev)