summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-12-14 08:32:01 -0700
committerJens Axboe <axboe@kernel.dk>2018-12-14 08:32:46 -0700
commit96563db9995c5cebdce526f2bf97923153d4456b (patch)
treed3048d2b06459fb5fa0a52d2d5bf858bc262e9b6 /stat.h
parenta5951dd7710352c373aa1018ec42181b07031165 (diff)
downloadfio-96563db9995c5cebdce526f2bf97923153d4456b.tar.gz
fio-96563db9995c5cebdce526f2bf97923153d4456b.tar.bz2
Add cache hit stats
With the aioring engine, we can get notified if a buffered read was a cache hit or if it hit media. Add that to the output stats for normal and json output. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stat.h b/stat.h
index b4ba71e3..e9551381 100644
--- a/stat.h
+++ b/stat.h
@@ -246,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 {