From patchwork Tue Jun 5 16:50:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10448647 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 2A66260234 for ; Tue, 5 Jun 2018 16:51:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BAAB29957 for ; Tue, 5 Jun 2018 16:51:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F24729961; Tue, 5 Jun 2018 16:51:01 +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 428F429957 for ; Tue, 5 Jun 2018 16:51:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 897216E4B5; Tue, 5 Jun 2018 16:50:59 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 604D66E482 for ; Tue, 5 Jun 2018 16:50:58 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id d2-v6so3157292wrm.10 for ; Tue, 05 Jun 2018 09:50:58 -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; bh=gtMwo/+Lz5n67j4sGbsdBJzDE7/Gf9+nvL7vTXQJoMo=; b=lOTB6Q7coHCoyYoQsBUE9JDwvLP+QXQrh7ofu1ttVD4oMMCnTjkjWfJavwPR891UTu d6nroQLPFtdtl7wRJprtJG/iue8JvfiO5ylQCzGVFm/mai7QaACElCgVssuV0yoaz08X gEQv7vKDd6kWnz0SKUlFIuNoj2/IaUXIPhHqwvmVwUZsprPWT9cMLyW25jFZFYL/500T E8RP4KouxaYiHDnbcmos3b1idqhQG2TTE27q7aeHQ4EplDfBG2g4SUgSNpvJxRLSvhLG 7YNEG/Fij2vVclnsm/vWkymrgZ9+4YlzYAnOs8N5FvA0tENvst2EtnQK9njfk0WLQXE/ Jygg== X-Gm-Message-State: APt69E1F4wOVTomdZb9N0wRFbYbgJ2UV+RKuDmQUQmXXvCsnT2YL4RVj ZwBRTBIdlsaFFcS3+QCGFSFdmiLd X-Google-Smtp-Source: ADUXVKKnAGkxR4M4vQTcd2E2/JfDyFCCKg6RwmapPqoUHljlYvEhXqcVyOstLGjO/ULN6WBm5ov44w== X-Received: by 2002:adf:ae09:: with SMTP id x9-v6mr3308282wrc.19.1528217457071; Tue, 05 Jun 2018 09:50:57 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id b14-v6sm38297918wrn.57.2018.06.05.09.50.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jun 2018 09:50:56 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Tue, 5 Jun 2018 17:50:50 +0100 Message-Id: <20180605165051.29136-1-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.0 Subject: [Intel-gfx] [PATCH i-g-t 1/2] scripts/trace.pl: Support class:instance engine tracepoints 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 New way of describing engines needs the tool to be adapted to understand it. Signed-off-by: Tvrtko Ursulin Reviewed-by: Lionel Landwerlin --- scripts/trace.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/trace.pl b/scripts/trace.pl index 068eee68b30c..ea6c667696f4 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -378,6 +378,8 @@ while (<>) { $k = 'global' if $k eq 'global_seqno'; chop $v if substr($v, -1, 1) eq ','; $tp{$k} = $v; + + $tp{'ring'} = $tp{'engine'} if $k eq 'engine'; } next if exists $tp{'ring'} and exists $ignore_ring{$tp{'ring'}}; @@ -631,7 +633,7 @@ foreach my $gid (sort keys %rings) { # Extract all GPU busy intervals and sort them. foreach my $key (@sorted_keys) { - next unless $db{$key}->{'ring'} == $ring; + next unless $db{$key}->{'ring'} eq $ring; push @s_, $db{$key}->{'start'}; push @e_, $db{$key}->{'end'}; die if $db{$key}->{'start'} > $db{$key}->{'end'};