commit c8d97bad2987b33b2ce804805071218fd7f68bbd Author: Federico Giovanardi Date: Fri Oct 4 14:13:30 2024 +0200 Update bootgraph to handle deferred initcalls diff --git a/scripts/bootgraph.pl b/scripts/bootgraph.pl index 79c903292ae8..8057d9f474df 100755 --- a/scripts/bootgraph.pl +++ b/scripts/bootgraph.pl @@ -67,7 +67,8 @@ my $cyheader = 0; while (<>) { my $line = $_; - if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_\.]+)\+/) { + if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_\.]+)\+/ or + $line =~ /([0-9\.]+)\] deferred probe ([a-zA-Z0-9\_\.]+) @/) { my $func = $2; if ($done == 0) { $start{$func} = $1; @@ -109,6 +110,12 @@ while (<>) { $maxtime = $1; } } + if ($line =~ /([0-9\.]+)\] deferred probe ([a-zA-Z0-9\_\.]+).*returned/) { + if ($done == 0) { + $end{$2} = $1; + $maxtime = $1; + } + } if ($line =~ /([0-9\.]+)\] async_continuing @ ([0-9]+)/) { my $pid = $2;