summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-08-03 12:40:28 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-09-14 12:53:27 +0100
commit74c3dfacc28f7560d06bfef0367787e4ea3de01f (patch)
tree6385716c1868185a300cd6333155b1d19aa1ecfd /scripts
parent0567f77b6f13e7061c0a447c0770349c08d27c36 (diff)
media-bench: Update for engine=class:instance tracepoints
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/media-bench.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/media-bench.pl b/scripts/media-bench.pl
index 375844d9..a3619ceb 100755
--- a/scripts/media-bench.pl
+++ b/scripts/media-bench.pl
@@ -187,7 +187,7 @@ sub trace_workload
open CMD, "$cmd |" or die;
while (<CMD>) {
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';