X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.h;h=70990975f132578a5c2d949a15341d9be7de1be0;hp=3d140a20070dd1638f9144f53b0604a97a34982c;hb=fdc0f3b646e417497849d4398029f780b0e5262f;hpb=7fb6d4530b2018064f8011f7ff9e4f673002f615 diff --git a/iolog.h b/iolog.h index 3d140a20..70990975 100644 --- a/iolog.h +++ b/iolog.h @@ -3,6 +3,8 @@ #include "lib/rbtree.h" #include "lib/ieee754.h" +#include "flist.h" +#include "ioengine.h" /* * Use for maintaining statistics @@ -20,10 +22,18 @@ struct io_stat { * A single data sample */ struct io_sample { - unsigned long time; - unsigned long val; - enum fio_ddir ddir; - unsigned int bs; + uint64_t time; + uint64_t val; + uint32_t ddir; + uint32_t bs; +}; + +enum { + IO_LOG_TYPE_LAT = 1, + IO_LOG_TYPE_CLAT, + IO_LOG_TYPE_SLAT, + IO_LOG_TYPE_BW, + IO_LOG_TYPE_IOPS, }; /* @@ -37,6 +47,8 @@ struct io_log { unsigned long max_samples; struct io_sample *log; + unsigned int log_type; + /* * Windowed average, for logging single entries average over some * period of time. @@ -109,7 +121,7 @@ extern void add_bw_sample(struct thread_data *, enum fio_ddir, unsigned int, extern void add_iops_sample(struct thread_data *, enum fio_ddir, struct timeval *); extern void init_disk_util(struct thread_data *); extern void update_rusage_stat(struct thread_data *); -extern void setup_log(struct io_log **, unsigned long); +extern void setup_log(struct io_log **, unsigned long, int); extern void finish_log(struct thread_data *, struct io_log *, const char *); extern void finish_log_named(struct thread_data *, struct io_log *, const char *, const char *); extern void __finish_log(struct io_log *, const char *);