]> Git Repo - linux.git/commitdiff
tracing/fastboot: fix initcalls disposition in bootgraph.pl
authorFrederic Weisbecker <[email protected]>
Sat, 4 Oct 2008 19:35:48 +0000 (21:35 +0200)
committerIngo Molnar <[email protected]>
Tue, 14 Oct 2008 08:39:34 +0000 (10:39 +0200)
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]>
scripts/bootgraph.pl

index 479fb4ea8914e3db0146f74b2ce6fccf384d2366..5e7316e5aa395a4c5da260c1d2890336b4c70039 100644 (file)
@@ -110,6 +110,12 @@ while (($key,$value) = each %start) {
 
        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;
This page took 0.053352 seconds and 4 git commands to generate.