summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-03-06 12:43:12 +0000
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-07-12 11:14:18 +0100
commit5175aff31e00e17786ebb97aaaf25ddd38b5e72e (patch)
tree5e7ace88144a1f1108e4b8c164ed29f8a7a74ada /scripts
parent3d1c6b1a62024450c7aff7908cc62efaed6f1e29 (diff)
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 <tvrtko.ursulin@intel.com> Cc: John Harrison <John.C.Harrison@intel.com> Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trace.pl3
1 files changed, 2 insertions, 1 deletions
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'};