[Intel-gfx] [PATCH i-g-t 10/11] trace.pl: Basic preemption support

Tvrtko Ursulin tursulin at ursulin.net
Mon Jul 9 13:20:03 UTC 2018


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

Just forget about earlier request_in events.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 scripts/trace.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/trace.pl b/scripts/trace.pl
index 6379dace5743..5da5f5a14104 100755
--- a/scripts/trace.pl
+++ b/scripts/trace.pl
@@ -438,7 +438,9 @@ while (<>) {
 	} elsif ($tp_name eq 'i915:i915_request_in:') {
 		my %req;
 
-		die if exists $db{$key};
+		# preemption
+		delete $db{$key} if exists $db{$key};
+
 		die unless exists $queue{$key};
 		die unless exists $submit{$key};
 
-- 
2.17.1



More information about the Intel-gfx mailing list