From 218fa79fdcf0d47dfd34eccbaf827d4224ed28d8 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Thu, 19 Jul 2018 10:28:23 +0100 Subject: trace.pl: Fix frequency timeline Frequency timeline needs to be finished with an entry spanning to the end of known time so that the last known frequency is displayed. Signed-off-by: Tvrtko Ursulin Acked-by: Chris Wilson --- scripts/trace.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/trace.pl b/scripts/trace.pl index 1924333e..2976cfdf 100755 --- a/scripts/trace.pl +++ b/scripts/trace.pl @@ -1201,6 +1201,8 @@ foreach my $key (sort sortQueue keys %db) { last if $i > $max_items; } +push @freqs, [$prev_freq_ts, $last_ts, $prev_freq] if $prev_freq; + foreach my $item (@freqs) { my ($start, $end, $freq) = @$item; my $startend; -- cgit v1.2.3