Loading scripts/bootgraph.pl +4 −4 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ my $firsttime = 100; my $count = 0; while (<>) { my $line = $_; if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z\_]+)\+/) { if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_]+)\+/) { my $func = $2; if ($done == 0) { $start{$func} = $1; Loading @@ -66,7 +66,7 @@ while (<>) { $count = $count + 1; } if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z\_]+)\+.*returned/) { if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_]+)\+.*returned/) { if ($done == 0) { $end{$2} = $1; $maxtime = $1; Loading @@ -81,8 +81,8 @@ while (<>) { } if ($count == 0) { print "No data found in the dmesg. Make sure CONFIG_PRINTK_TIME is enabled and\n"; print "that initcall_debug is passed on the kernel command line.\n\n"; print "No data found in the dmesg. Make sure that 'printk.time=1' and\n"; print "'initcall_debug' are passed on the kernel command line.\n\n"; print "Usage: \n"; print " dmesg | perl scripts/bootgraph.pl > output.svg\n\n"; exit; Loading Loading
scripts/bootgraph.pl +4 −4 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ my $firsttime = 100; my $count = 0; while (<>) { my $line = $_; if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z\_]+)\+/) { if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_]+)\+/) { my $func = $2; if ($done == 0) { $start{$func} = $1; Loading @@ -66,7 +66,7 @@ while (<>) { $count = $count + 1; } if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z\_]+)\+.*returned/) { if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_]+)\+.*returned/) { if ($done == 0) { $end{$2} = $1; $maxtime = $1; Loading @@ -81,8 +81,8 @@ while (<>) { } if ($count == 0) { print "No data found in the dmesg. Make sure CONFIG_PRINTK_TIME is enabled and\n"; print "that initcall_debug is passed on the kernel command line.\n\n"; print "No data found in the dmesg. Make sure that 'printk.time=1' and\n"; print "'initcall_debug' are passed on the kernel command line.\n\n"; print "Usage: \n"; print " dmesg | perl scripts/bootgraph.pl > output.svg\n\n"; exit; Loading