Skip to content

Commit

Permalink
bootgraph.pl: relax timing information requirements
Browse files Browse the repository at this point in the history
This patch removes the assumption of the bootgraph.pl script that the
timing information reported by PRINTK_TIME will contain at least one
entry with a time of less than 100 seconds.

Not all boards correctly reset the system timer and in many cases the
inital times reported by PRINTK_TIME is high. When this occurs the
bootchart.pl script fails to give any useful output.

This patch sets the $firsttime variable to the largest value expected
by PRINTK_TIME

Signed-off-by: Andrew Murray <[email protected]>
Acked-by: Arjan van de Ven <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
Andrew Murray authored and Jiri Kosina committed Jun 12, 2011
1 parent 28f65c1 commit c443453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bootgraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
my %type;
my $done = 0;
my $maxtime = 0;
my $firsttime = 100;
my $firsttime = 99999;
my $count = 0;
my %pids;
my %pidctr;
Expand Down

0 comments on commit c443453

Please sign in to comment.