[igt-dev] [PATCH i-g-t 08/11] trace.pl: Split engine busy accounting in split mode
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Tue Jan 30 10:34:27 UTC 2018
Garbage in the cwd, please ignore this one! :(
On 30/01/2018 10:11, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> 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 at intel.com>
> Cc: John Harrison <John.C.Harrison at intel.com>
> ---
> scripts/trace.pl | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/trace.pl b/scripts/trace.pl
> index 16a1675c6c21..e39d56c962e7 100755
> --- a/scripts/trace.pl
> +++ b/scripts/trace.pl
> @@ -578,7 +578,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'};
>
>
More information about the igt-dev
mailing list