mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
tracing/fastboot: fix initcalls disposition in bootgraph.pl
When bootgraph.pl parses a file, it gives one row for each initcall's pid. But only few of them will be displayed => the longest. This patch corrects it by giving only a rows for pids which have initcalls that will be displayed. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
5c542368a3
commit
07d1890420
1 changed files with 6 additions and 0 deletions
|
@ -110,6 +110,12 @@ while (($key,$value) = each %start) {
|
||||||
|
|
||||||
if ($duration >= $threshold) {
|
if ($duration >= $threshold) {
|
||||||
my $s, $s2, $e, $y;
|
my $s, $s2, $e, $y;
|
||||||
|
$pid = $pids{$key};
|
||||||
|
|
||||||
|
if (!defined($rows{$pid})) {
|
||||||
|
$rows{$pid} = $rowscount;
|
||||||
|
$rowscount = $rowscount + 1;
|
||||||
|
}
|
||||||
$s = ($value - $firsttime) * $mult;
|
$s = ($value - $firsttime) * $mult;
|
||||||
$s2 = $s + 6;
|
$s2 = $s + 6;
|
||||||
$e = ($end{$key} - $firsttime) * $mult;
|
$e = ($end{$key} - $firsttime) * $mult;
|
||||||
|
|
Loading…
Reference in a new issue