[PATCH 3/9] Process notify events outside of given interval

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jan Kara <jack@xxxxxxxx>

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@xxxxxxxx>
---
 iowatcher/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iowatcher/main.c b/iowatcher/main.c
index b13f509ac943..28ff4cbbb153 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);
-- 
2.6.6

--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux