From patchwork Thu May 5 15:17:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 9025221 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4F6DB9F1C1 for ; Thu, 5 May 2016 15:17:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7419320384 for ; Thu, 5 May 2016 15:17:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8DED42038F for ; Thu, 5 May 2016 15:17:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756718AbcEEPRU (ORCPT ); Thu, 5 May 2016 11:17:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:33829 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756605AbcEEPRT (ORCPT ); Thu, 5 May 2016 11:17:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CB06EAC60; Thu, 5 May 2016 15:17:17 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 7CDA51E09ED; Thu, 5 May 2016 17:17:16 +0200 (CEST) From: Jan Kara To: Jens Axboe Cc: linux-block@vger.kernel.org, Jan Kara Subject: [PATCH 3/9] Process notify events outside of given interval Date: Thu, 5 May 2016 17:17:06 +0200 Message-Id: <1462461432-1900-4-git-send-email-jack@suse.cz> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1462461432-1900-1-git-send-email-jack@suse.cz> References: <1462461432-1900-1-git-send-email-jack@suse.cz> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jan Kara 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 --- 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);