diff mbox

[i-g-t,7/8] trace.pl: Basic preemption support

Message ID 20180605175050.29850-7-tvrtko.ursulin@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tvrtko Ursulin June 5, 2018, 5:50 p.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Just forget about earlier request_in events.

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

Patch

diff --git a/scripts/trace.pl b/scripts/trace.pl
index 1d42f2749710..9bc0b5b291d4 100755
--- a/scripts/trace.pl
+++ b/scripts/trace.pl
@@ -428,7 +428,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};