Deferred probe times
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
commit c8d97bad2987b33b2ce804805071218fd7f68bbd
Author: Federico Giovanardi <[email protected]> Date: Fri Oct 4 14:13:30 2024 +0200
Update bootgraph to handle deferred initcalls
scripts/bootgraph.pl +8 -1
@@ -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;
Quoted 6 lines
-----Original Message-----
From: Federico Giovanardi <[email protected]> Hello,I was poking around the boot data database while I noticed that the
deferred_probeiniticalls are considered as a giant block;
Hmm. I didn't think anyone was looking at this data besides myself. The site is really still under construction, so I apologize for missing and mis-formatted data. But thanks for looking at
the data and finding something that needs attention upstream!!
Quoted 3 lines
There is a patch that looks never went upstream to measure them:
https://lkml.iu.edu/1707.3/02349.html
Wow, that's interesting. Here's the lore link for this thread:
https://lore.kernel.org/lkml/[email protected]/#t
It doesn't look like there were (after discussion) objections to accepting upstream. I wonder what happened.
...
It looks like it was superceded by this patch:
https://lore.kernel.org/lkml/[email protected]/
which may provide some of the data necessary.
The thing missing there are some (IMHO) better name lookups for the probe function. I wrote a patch for that, but didn't persist in trying to upstream it. Maybe I should dust that off and send it again.
Quoted 6 lines
And another one from me to print the result in the .svg.
Have a nice day
Federico
Well, the comment about the giant block was not a complaint, of course.
With both patches, I used to get the attached image, so the deferred_probe slot it's separated into its constituents.
Thanks
Federico
Quoted 37 lines · Tim
Quoted 6 lines
-----Original Message-----
From: Federico Giovanardi <[email protected]> Hello,I was poking around the boot data database while I noticed that the
deferred_probeiniticalls are considered as a giant block;Hmm. I didn't think anyone was looking at this data besides myself. The site is really still under construction, so I apologize for missing and mis-formatted data. But thanks for looking at
the data and finding something that needs attention upstream!!Quoted 3 lines
There is a patch that looks never went upstream to measure them:
https://lkml.iu.edu/1707.3/02349.htmlWow, that's interesting. Here's the lore link for this thread:
https://lore.kernel.org/lkml/[email protected]/#tIt doesn't look like there were (after discussion) objections to accepting upstream. I wonder what happened.
...
It looks like it was superceded by this patch:
https://lore.kernel.org/lkml/[email protected]/
which may provide some of the data necessary.The thing missing there are some (IMHO) better name lookups for the probe function. I wrote a patch for that, but didn't persist in trying to upstream it. Maybe I should dust that off and send it again.
Quoted 6 lines
And another one from me to print the result in the .svg.
Have a nice day
Federico