summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorLeaflessMelospiza <12461256+LeaflessMelospiza@users.noreply.github.com>2020-01-15 15:43:15 +0530
committerLeaflessMelospiza <12461256+LeaflessMelospiza@users.noreply.github.com>2020-01-15 16:42:04 +0530
commit2a2fdab1ed93744f991c894e61ba52427a7a1fec (patch)
tree9e22050b7e013c46618b4cf6faff996ee73c61c6 /stat.h
parent3f1e3af7cff07d4aedcd9a58ae00cb1a2189fcc2 (diff)
downloadfio-2a2fdab1ed93744f991c894e61ba52427a7a1fec.tar.gz
fio-2a2fdab1ed93744f991c894e61ba52427a7a1fec.tar.bz2
Moved diskutil reporting functions to stat.c
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/stat.h b/stat.h
index ba7e290d..2ce91ff0 100644
--- a/stat.h
+++ b/stat.h
@@ -3,6 +3,8 @@
#include "iolog.h"
#include "lib/output_buffer.h"
+#include "diskutil.h"
+#include "json.h"
struct group_run_stats {
uint64_t max_run[DDIR_RWDIR_CNT], min_run[DDIR_RWDIR_CNT];
@@ -332,9 +334,13 @@ extern void add_iops_sample(struct thread_data *, struct io_u *,
extern void add_bw_sample(struct thread_data *, struct io_u *,
unsigned int, unsigned long long);
extern void add_sync_clat_sample(struct thread_stat *ts,
- unsigned long long nsec);
+ unsigned long long nsec);
extern int calc_log_samples(void);
+extern void print_disk_util(struct disk_util_stat *, struct disk_util_agg *, int terse, struct buf_output *);
+extern void json_array_add_disk_util(struct disk_util_stat *dus,
+ struct disk_util_agg *agg, struct json_array *parent);
+
extern struct io_log *agg_io_log[DDIR_RWDIR_CNT];
extern bool write_bw_log;