From patchwork Thu Jul 19 09:36:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10533999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E7538600F4 for ; Thu, 19 Jul 2018 09:36:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D713529667 for ; Thu, 19 Jul 2018 09:36:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB36F29676; Thu, 19 Jul 2018 09:36:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 939FB29667 for ; Thu, 19 Jul 2018 09:36:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EE0976ED6F; Thu, 19 Jul 2018 09:36:13 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 05D056ED69 for ; Thu, 19 Jul 2018 09:36:12 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id b15-v6so7350643wrv.10 for ; Thu, 19 Jul 2018 02:36:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kTXgxpeTt3HSanIZ68aHCompG5sUdKizZIKsPs8u3xA=; b=P1aPOzZkC17Qmn8q4AEalFbhaH9g+uk+7G+DJBymraGV6ByjN8RVRR076QdvnpwETx gC0oRBafKATyBovxbvQY9fgr8jUEDc79iaYRU3zXQJJjRLysrBVN7+MYNx48+WjYgKdA VXN8jkQim+z1lYhJ6r63tNAH/HRKMJJF9rSicEDTMZx902rEVCfCMu6PudTp9nd6ifTf c2o+myRhn1m8RBzLEWFxH2ymoxobtAkub5e0rnfiUVuy3yCNpLYjVzeNFU+JbpX1akWS 6AoWVIjWbaMSVhQ/eiJGch7F8RCkxLGRIoL198pZfmJ6FtyOkX0Od56aGXcZ3Vy1zZTq foug== X-Gm-Message-State: AOUpUlEsncqISD/26fZA+xfd0O6crjnIhGGWft70dO1+BkzrOhOc8TFP ArNUrvo+UghpR18C7FhsYA5MBQ== X-Google-Smtp-Source: AAOMgpcqZxEs0dSpvhEwwlJBnhxIqDWK4Eueu2B01CPTyAw6+KP/RSbRMlW1jizkk7DyAqvfxC9LFQ== X-Received: by 2002:adf:fac1:: with SMTP id a1-v6mr6607014wrs.74.1531992970780; Thu, 19 Jul 2018 02:36:10 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id a11-v6sm8422004wrr.81.2018.07.19.02.36.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 02:36:10 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Thu, 19 Jul 2018 10:36:01 +0100 Message-Id: <20180719093601.11788-5-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180719093601.11788-1-tvrtko.ursulin@linux.intel.com> References: <20180719093601.11788-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH i-g-t 4/4] trace.pl: Fix frequency timeline X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Frequency timeline needs to be finished with an entry spanning to the end of known time so that the last known frequency is displayed. Signed-off-by: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> --- scripts/trace.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/trace.pl b/scripts/trace.pl index 1924333e12b6..2976cfdf585a 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -1201,6 +1201,8 @@ foreach my $key (sort sortQueue keys %db) { last if $i > $max_items; } +push @freqs, [$prev_freq_ts, $last_ts, $prev_freq] if $prev_freq; + foreach my $item (@freqs) { my ($start, $end, $freq) = @$item; my $startend;