summaryrefslogtreecommitdiff
path: root/scripts/bootgraph.pl
diff options
context:
space:
mode:
authorArnaud Patard <apatard@mandriva.com>2008-09-20 07:16:25 +0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 12:39:33 +0400
commit5c542368a3ded88bed98239fb3570dda416203ee (patch)
treed3b120959f1af5f1736d25020eda1b9abedcb642 /scripts/bootgraph.pl
parent80a398a55d3096ff4572b44271d095413749ebb4 (diff)
downloadlinux-5c542368a3ded88bed98239fb3570dda416203ee.tar.xz
tracing/fastboot: fix bootgraph.pl initcall name regexp
The regexp used to match the start and the end of an initcall are matching only on [a-zA-Z\_]. This rules out initcalls with a number in them. This patch is fixing that. Signed-off-by: Arnaud Patard <apatard@mandriva.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'scripts/bootgraph.pl')
-rw-r--r--scripts/bootgraph.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bootgraph.pl b/scripts/bootgraph.pl
index 4baf49985589..479fb4ea8914 100644
--- a/scripts/bootgraph.pl
+++ b/scripts/bootgraph.pl
@@ -46,7 +46,7 @@ my %pids;
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;
@@ -60,7 +60,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;
@@ -75,8 +75,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;