summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-06-05 17:50:50 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-06-06 11:58:45 +0100
commitd4c8aa79b29fb6eef6b8b81d73356c1b272bb788 (patch)
tree50dc1a74a5d139666dc06d86723fc9c5db67db42 /scripts
parent78a68c905066beeefd24b3a4518d817a811e8798 (diff)
scripts/trace.pl: Support class:instance engine tracepoints
New way of describing engines needs the tool to be adapted to understand it. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trace.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/trace.pl b/scripts/trace.pl
index 068eee68..ea6c6676 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'};