linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Deferred probe times
@ 2025-05-23  7:56 Federico Giovanardi
  2025-05-24  0:16 ` Bird, Tim
  0 siblings, 1 reply; 3+ messages in thread
From: Federico Giovanardi @ 2025-05-23  7:56 UTC (permalink / raw)
  To: Linux Embedded

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

Hello,

I was poking around the boot data database while I noticed that the 
deferred_probe initicalls are considered as a giant block;

There is a patch that looks never went upstream to measure them:  
https://lkml.iu.edu/1707.3/02349.html

And another one from me to print the result in the .svg.


Have a nice day
Federico


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: update_bootgraph_deferred_init.patch --]
[-- Type: text/x-diff; name=update_bootgraph_deferred_init.patch, Size: 961 bytes --]

commit c8d97bad2987b33b2ce804805071218fd7f68bbd
Author: Federico Giovanardi <federico.giovanardi@cnhind.com>
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;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-26  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23  7:56 Deferred probe times Federico Giovanardi
2025-05-24  0:16 ` Bird, Tim
2025-05-26  8:14   ` Federico Giovanardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).