summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-07-19 10:28:23 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-09-14 12:48:32 +0100
commit218fa79fdcf0d47dfd34eccbaf827d4224ed28d8 (patch)
treeb1b29a55e89d485d73df7972a3172da97d52115e /scripts
parent468febc4c746f168e885e0d662ec3adb0cca60f6 (diff)
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 <tvrtko.ursulin@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trace.pl2
1 files changed, 2 insertions, 0 deletions
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;