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

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Fri May 17 11:25:03 UTC 2019


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

gem_wsim uses the sw_fence timeline and confuses the script.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at 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



More information about the igt-dev mailing list