Skip to contentSkip to conversation

Bootgraph.pl bug fix

PATCH In review Andrew Murray 3 participants 4 messages Jun 9, 2011 – Jun 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bootgraph.pl bug fix

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

---
 scripts/bootgraph.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/bootgraph.pl +1 -1
index 12caa82..b78fca9 100644
@@ -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;
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 21 lines · Andrew Murray

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

---
 scripts/bootgraph.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/bootgraph.pl +0 -0
index 12caa82..b78fca9 100644

scripts/bootgraph.pl my %end; · line 50

Quoted 8 lines
scripts/bootgraph.pl +1 -1
@@ -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;

Adding Arjan to CC. Arjan, if you are OK with the patch, I can take it through my tree with your Ack.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#2 lore raw
Quoted 3 lines · On Fri, 10 Jun 2011 15:00:38 +0200 (CEST) Jiri Kosina <[email protected]> wrote:

Adding Arjan to CC. Arjan, if you are OK with the patch, I can take it through my tree with your Ack.

I don't mind the patch, although I feel pitty for those having to work with such broken systems...

#3 lore raw
Quoted 5 lines · Arjan van de Ven
Quoted 2 lines

Adding Arjan to CC. Arjan, if you are OK with the patch, I can take it through my tree with your Ack.

I don't mind the patch, although I feel pitty for those having to work with such broken systems...

Indeed.

Thanks, I have applied it with your Acked-by.

Signature · 2 lines
Jiri Kosina
SUSE Labs