summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-10-27 13:45:21 +0900
committerJens Axboe <axboe@fb.com>2015-10-27 13:45:21 +0900
commita666cab8ed3d2a2fa782be345425a2e88734a007 (patch)
treeea0b489fa42dd96dec59ae372f9ed27ef487a265 /stat.h
parent129fb2d422557e493020a8eac00867749af284b4 (diff)
downloadfio-a666cab8ed3d2a2fa782be345425a2e88734a007.tar.gz
fio-a666cab8ed3d2a2fa782be345425a2e88734a007.tar.bz2
Enable the use of multiple output formats
You can now do ./fio --output-format=normal,json jobfile.fio and get both types of output. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stat.h b/stat.h
index e87dae08..e289c2e5 100644
--- a/stat.h
+++ b/stat.h
@@ -2,6 +2,7 @@
#define FIO_STAT_H
#include "iolog.h"
+#include "lib/output_buffer.h"
struct group_run_stats {
uint64_t max_run[DDIR_RWDIR_CNT], min_run[DDIR_RWDIR_CNT];
@@ -246,8 +247,8 @@ extern struct jobs_eta *get_jobs_eta(int force, size_t *size);
extern void stat_init(void);
extern void stat_exit(void);
-extern struct json_object * show_thread_status(struct thread_stat *ts, struct group_run_stats *rs);
-extern void show_group_stats(struct group_run_stats *rs);
+extern struct json_object * show_thread_status(struct thread_stat *ts, struct group_run_stats *rs, struct buf_output *);
+extern void show_group_stats(struct group_run_stats *rs, struct buf_output *);
extern int calc_thread_status(struct jobs_eta *je, int force);
extern void display_thread_status(struct jobs_eta *je);
extern void show_run_stats(void);