X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.h;h=e9551381ce7b7fd10092c195033ff2b911f2aa75;hb=01bf5128d0581e267383f280c6a1dcd26517240f;hp=c5b818543cf9fd70fc6ec920fea9873d83583e80;hpb=f0d16ad8465d532bc40508b8c24617bdb832ec9c;p=fio.git diff --git a/stat.h b/stat.h index c5b81854..e9551381 100644 --- a/stat.h +++ b/stat.h @@ -211,6 +211,9 @@ struct thread_stat { uint32_t first_error; uint64_t total_err_count; + /* ZBD stats */ + uint64_t nr_zone_resets; + uint64_t nr_block_infos; uint32_t block_infos[MAX_NR_BLOCK_INFOS]; @@ -243,6 +246,9 @@ struct thread_stat { uint64_t *ss_bw_data; uint64_t pad5; }; + + uint64_t cachehit; + uint64_t cachemiss; } __attribute__((packed)); struct jobs_eta { @@ -308,12 +314,12 @@ extern void update_rusage_stat(struct thread_data *); extern void clear_rusage_stat(struct thread_data *); extern void add_lat_sample(struct thread_data *, enum fio_ddir, unsigned long long, - unsigned int, uint64_t); + unsigned long long, uint64_t); extern void add_clat_sample(struct thread_data *, enum fio_ddir, unsigned long long, - unsigned int, uint64_t); + unsigned long long, uint64_t); extern void add_slat_sample(struct thread_data *, enum fio_ddir, unsigned long, - unsigned int, uint64_t); -extern void add_agg_sample(union io_sample_data, enum fio_ddir, unsigned int); + unsigned long long, uint64_t); +extern void add_agg_sample(union io_sample_data, enum fio_ddir, unsigned long long); extern void add_iops_sample(struct thread_data *, struct io_u *, unsigned int); extern void add_bw_sample(struct thread_data *, struct io_u *, @@ -323,7 +329,7 @@ extern void add_sync_clat_sample(struct thread_stat *ts, extern int calc_log_samples(void); extern struct io_log *agg_io_log[DDIR_RWDIR_CNT]; -extern int write_bw_log; +extern bool write_bw_log; static inline bool nsec_to_usec(unsigned long long *min, unsigned long long *max, double *mean,