From 5175aff31e00e17786ebb97aaaf25ddd38b5e72e Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Tue, 6 Mar 2018 12:43:12 +0000 Subject: trace.pl: Fix engine busy accounting in split mode In split mode all requests have to be added up since they were previously re-arranged so there is no overlap. Signed-off-by: Tvrtko Ursulin Cc: John Harrison Reviewed-by: John Harrison --- scripts/trace.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/trace.pl b/scripts/trace.pl index c9d01896..fc1713e4 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -596,7 +596,8 @@ foreach my $key (@sorted_keys) { $db{$key}->{'submit-delay'} = $db{$key}->{'submit'} - $db{$key}->{'queue'}; $db{$key}->{'duration'} = $notify - $start; - $running{$ring} += $end - $start unless exists $db{$key}->{'no-end'}; + $running{$ring} += $end - $start if $correct_durations or + not exists $db{$key}->{'no-end'}; $runnable{$ring} += $db{$key}->{'execute-delay'}; $queued{$ring} += $start - $db{$key}->{'execute-delay'} - $db{$key}->{'queue'}; -- cgit v1.2.3