summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorKarl Cronburg <kcronbur@redhat.com>2016-08-16 15:44:09 -0400
committerKarl Cronburg <kcronbur@redhat.com>2016-08-16 15:51:09 -0400
commit65a4d15c132de669223445791b141eb90267f761 (patch)
tree0b42adb83e19a78529dd8188543f6f0a94283066 /stat.h
parent9973b0f961a57c19f885ffca05f86ae6ef85f8c7 (diff)
downloadfio-65a4d15c132de669223445791b141eb90267f761.tar.gz
fio-65a4d15c132de669223445791b141eb90267f761.tar.bz2
Make histogram samples non-cumulative by tracking a linked-list
of the most recent histogram and differencing it when we print to the log file(s). Linked list of pointers used to minimize runtime impact on recording side, instead choosing to do subtraction on the logging (when logs get printed to file) side. This helps cleanup fiologparser_hist.py, makes the log files easier to understand at a glance, reduces file size(s), and averts the possibility of integer overflow in the logs (for a long enough fio job).
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stat.h b/stat.h
index 86f1a0b5..f551edc1 100644
--- a/stat.h
+++ b/stat.h
@@ -240,6 +240,11 @@ struct jobs_eta {
uint8_t run_str[];
} __attribute__((packed));
+struct io_u_plat_entry {
+ struct flist_head list;
+ unsigned int io_u_plat[FIO_IO_U_PLAT_NR];
+};
+
extern struct fio_mutex *stat_mutex;
extern struct jobs_eta *get_jobs_eta(bool force, size_t *size);