[Intel-gfx] [PATCH i-g-t 02/25] trace.pl: Ignore signaling on non i915 fences

Tvrtko Ursulin
2019-05-17T11:25:03Z

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

gem_wsim uses the sw_fence timeline and confuses the script.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
scripts/trace.pl | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/trace.pl b/scripts/trace.pl
index b7bbabc79f68..930e502ad8eb 100755
--- a/scripts/trace.pl
+++ b/scripts/trace.pl
@@ -439,6 +439,7 @@ while (<>) {
} elsif ($tp_name eq 'dma_fence:dma_fence_signaled:') {
my $gkey;

+ next unless $tp{'driver'} eq 'i915';
die unless exists $ctxengines{$tp{'context'}};

$gkey = db_key($ctxengines{$tp{'context'}}, $tp{'context'}, $tp{'seqno'});
--
2.20.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org