bootgraph.pl: relax timing information requirements
authorAndrew Murray <amurray@mpcdata.com>
Thu, 9 Jun 2011 21:40:10 +0000 (22:40 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 12 Jun 2011 22:04:57 +0000 (00:04 +0200)
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 <amurray@mpc-data.co.uk>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
scripts/bootgraph.pl

index 12caa822a232eeddc0fc97606fc5002a86a4daf7..b78fca994a15947a53a4c8438acabdbf771181ff 100644 (file)
@@ -44,7 +44,7 @@ my %end;
 my %type;
 my $done = 0;
 my $maxtime = 0;
-my $firsttime = 100;
+my $firsttime = 99999;
 my $count = 0;
 my %pids;
 my %pidctr;