Skip to content

Commit

Permalink
tracing/fastboot: fix initcalls disposition in bootgraph.pl
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Arjan van de Ven <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
fweisbec authored and Ingo Molnar committed Oct 14, 2008
1 parent 5c54236 commit 07d1890
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/bootgraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@

if ($duration >= $threshold) {
my $s, $s2, $e, $y;
$pid = $pids{$key};

if (!defined($rows{$pid})) {
$rows{$pid} = $rowscount;
$rowscount = $rowscount + 1;
}
$s = ($value - $firsttime) * $mult;
$s2 = $s + 6;
$e = ($end{$key} - $firsttime) * $mult;
Expand Down

0 comments on commit 07d1890

Please sign in to comment.