Skip to content

Commit 0bb98e2

Browse files
mikeysravnborg
authored andcommitted
bootgraph: fix for use with dot symbols
powerpc has dot symbols, so the dmesg output looks like: <4>[ 0.327310] calling .migration_init+0x0/0x9c @ 1 <4>[ 0.327595] initcall .migration_init+0x0/0x9c returned 1 after 0 usecs The below fixes bootgraph.pl so it handles this correctly. Signed-off-by: Michael Neuling <[email protected]> Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
1 parent fc370ec commit 0bb98e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bootgraph.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
while (<>) {
5353
my $line = $_;
54-
if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_]+)\+/) {
54+
if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_\.]+)\+/) {
5555
my $func = $2;
5656
if ($done == 0) {
5757
$start{$func} = $1;
@@ -87,7 +87,7 @@
8787
$count = $count + 1;
8888
}
8989

90-
if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_]+)\+.*returned/) {
90+
if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_\.]+)\+.*returned/) {
9191
if ($done == 0) {
9292
$end{$2} = $1;
9393
$maxtime = $1;

0 commit comments

Comments
 (0)