diff options
author | Charles Baylis <charles.baylis@linaro.org> | 2017-12-14 15:53:58 +0000 |
---|---|---|
committer | Charles Baylis <charles.baylis@linaro.org> | 2017-12-14 15:53:58 +0000 |
commit | ae1603e859ae51656106a4281459bef6f93a83f7 (patch) | |
tree | 8fa94d00f27f9d2a2af3c759dc8d90581e2c2fbd | |
parent | 341f4812a048562a4c5fcb85954451952ca1d8ac (diff) |
Display task name when location is unknown.
Change-Id: Id276cc1ec33a0c1807ce5881966db01428fd2b37
-rw-r--r-- | perf-utilization.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perf-utilization.pl b/perf-utilization.pl index c9fcd77..9269043 100644 --- a/perf-utilization.pl +++ b/perf-utilization.pl @@ -313,6 +313,7 @@ for (my $i=0;$i<$#cpu;$i++) { my $prof_pct = sprintf("%5.1f%%", 100 * $lochash->{$loc} / $n); my $pid=$loc_to_pid{$loc}; + $loc .= " - $task{$pid}"."[$pid]" if $loc=~/\(\[unknown\]\)$/; my $line = qq($prof_pct - $loc\n); if ($count++ > $DEFAULT_PROFILE_LIMIT) { $remainder .= qq(<span class="pid$pid">$line</span>); |