<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 7/9/2018 6:20 AM, Tvrtko Ursulin wrote:<br>
    <blockquote type="cite"
      cite="mid:20180709132004.14468-8-tvrtko.ursulin@linux.intel.com">
      <pre wrap="">From: Tvrtko Ursulin <a class="moz-txt-link-rfc2396E" href="mailto:tvrtko.ursulin@intel.com"><tvrtko.ursulin@intel.com></a>

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 <a class="moz-txt-link-rfc2396E" href="mailto:tvrtko.ursulin@intel.com"><tvrtko.ursulin@intel.com></a>
Cc: John Harrison <a class="moz-txt-link-rfc2396E" href="mailto:John.C.Harrison@intel.com"><John.C.Harrison@intel.com></a>
---
 scripts/trace.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/trace.pl b/scripts/trace.pl
index 60a8e441c1d9..52372e224da5 100755
--- a/scripts/trace.pl
+++ b/scripts/trace.pl
@@ -612,7 +612,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'};
 
</pre>
    </blockquote>
    <br>
    Reviewed-by: John Harrison <a class="moz-txt-link-rfc2396E"
      href="mailto:John.C.Harrison@Intel.com"><John.C.Harrison@Intel.com></a><br>
    <br>
  </body>
</html>