summaryrefslogtreecommitdiff
path: root/iowatcher/main.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.com>2016-05-05 17:17:06 +0200
committerJens Axboe <axboe@fb.com>2016-05-05 09:20:18 -0600
commitf53e6d27eabe09adcb5ec04549d8442b447f6104 (patch)
tree36232b1e5460a92a110cc8049e04e7f0a21c70cc /iowatcher/main.c
parent5122a87b22ade9cf2920dc6f9e24ce1a745f3ff6 (diff)
downloadblktrace-f53e6d27eabe09adcb5ec04549d8442b447f6104.tar.gz
blktrace-f53e6d27eabe09adcb5ec04549d8442b447f6104.tar.bz2
Process notify events outside of given interval
When parsing blktrace data, process notify events even outside the specified interval. This way we can learn about time stamps, process names etc. Signed-off-by: Jan Kara <jack@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'iowatcher/main.c')
-rw-r--r--iowatcher/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iowatcher/main.c b/iowatcher/main.c
index b13f509..28ff4cb 100644
--- a/iowatcher/main.c
+++ b/iowatcher/main.c
@@ -429,9 +429,9 @@ static void read_trace_events(void)
first_record(trace);
do {
+ check_record(trace);
if (SECONDS(get_record_time(trace)) > tf->max_seconds)
continue;
- check_record(trace);
add_tput(trace, tf->tput_writes_gld, tf->tput_reads_gld);
add_iop(trace, tf->iop_gld);
add_io(trace, tf);