From patchwork Wed Sep 5 13:49:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10588883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5791415E9 for ; Wed, 5 Sep 2018 13:49:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46F702A1DF for ; Wed, 5 Sep 2018 13:49:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 458142A1F3; Wed, 5 Sep 2018 13:49:59 +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 E9D1E2A1DF for ; Wed, 5 Sep 2018 13:49:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 21C0C6E4B3; Wed, 5 Sep 2018 13:49:57 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 514076E4A8 for ; Wed, 5 Sep 2018 13:49:54 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id u12-v6so7750491wrr.4 for ; Wed, 05 Sep 2018 06:49:54 -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=nZmuEJqeaZ6quJP78FwVF/20RrE4kXSCo5Q0n8aTALA=; b=rK8Q6awVWEGaDUQU/fLcxdq5w31VkDdPClrkIwi9eVgj/6q83LRxewInPe9g6BR662 UR/paRI4NSJPC7Ni/CSkct/sjJ1H+DtQ2yYDOmYlGED/o5i3TU8fS/FjwqDeOP9JEOvf mia5blXo22cIA2FJNDiMkUShDUHrT9R+rp8G2oAj4Yph1ij6gkh2JOZRQ8TZRCFlG8sJ ORoZnxkYt2olPobC3vVt6HB1Ao4KCVjftxJTa8l9UNTIgi3ushorRozWHHH20dh1dzDJ ACK2ZGFSsw8gl0kHgEx4aNJWPB/EKQodeHmKERale++4qr54/nQsK0IG0IYEHULBjVu+ x5Cw== X-Gm-Message-State: APzg51A2sg/lV0AjI3H51BrbLkSVEgPkDqClRs1N8QSUnVGkEZGBnT0h Q9nTpWi3uw3QOuExb8Cp/k+qxA== X-Google-Smtp-Source: ANB0VdZKYatGy0YYpxDr6XiyzJmQ/qrHo1h4uGoWTCIXCLF7505fKGbiF4E5hUfZ5ygipwjc9qbRGA== X-Received: by 2002:adf:8205:: with SMTP id 5-v6mr25832151wrb.160.1536155393021; Wed, 05 Sep 2018 06:49:53 -0700 (PDT) Received: from localhost.localdomain ([95.144.165.37]) by smtp.gmail.com with ESMTPSA id j66-v6sm2701639wrj.28.2018.09.05.06.49.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 06:49:52 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Wed, 5 Sep 2018 14:49:35 +0100 Message-Id: <20180905134939.2942-10-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905134939.2942-1-tvrtko.ursulin@linux.intel.com> References: <20180905134939.2942-1-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATH i-g-t 09/13] media-bench: Update for engine=class:instance 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 Signed-off-by: Tvrtko Ursulin --- scripts/media-bench.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/media-bench.pl b/scripts/media-bench.pl index 375844d9cdf6..a3619ceb34cc 100755 --- a/scripts/media-bench.pl +++ b/scripts/media-bench.pl @@ -187,7 +187,7 @@ sub trace_workload open CMD, "$cmd |" or die; while () { chomp; - if (/Ring(\d+): (\d+) batches.*?(\d+\.?\d+)% idle,/) { + if (/Ring(\S+): (\d+) batches.*?(\d+\.?\d+)% idle,/) { if ($2 >= $min_batches) { $engines{$1} = $3; } else { @@ -542,7 +542,7 @@ foreach my $wrk (@workloads) { my ($r, $error, $c, $wps, $swps); my $saturated = 0; my $result = 'Pass'; - my $vcs2 = $gt2 ? '1' : '3'; + my $vcs2 = $gt2 ? '1:0' : '2:1'; my %problem; my $engines; @@ -575,11 +575,11 @@ foreach my $wrk (@workloads) { if ($saturated == 0) { # Not a single saturated engine $result = 'FAIL'; - } elsif (not exists $engines->{'2'} or not exists $engines->{$vcs2}) { + } elsif (not exists $engines->{'2:0'} or not exists $engines->{$vcs2}) { # VCS1 and VCS2 not present in a balancing workload $result = 'FAIL'; } elsif ($saturated == 1 and - ($engines->{'2'} < $idle_tolerance_pct or + ($engines->{'2:0'} < $idle_tolerance_pct or $engines->{$vcs2} < $idle_tolerance_pct)) { # Only one VCS saturated $result = 'WARN';