The simpler and more convenient way is to increase the timestamp of all kernel information of the boot process through the Printktime function, which facilitates the summary analysis. Printktime was the first kernel patch provided by Celf, which was formally incorporated into the standard kernel in later kernel 2.6.11. So you may be able to enable this feature directly in the new version of the kernel. If your Linux kernel cannot be updated to 2.6.11 for some reason, then you can refer to the methods provided by Celf to modify or directly download the patches they provide: http://tree.celinuxforum.org/CelfPubWiki/PrintkTimes;
The way to turn on the Printktime function is simple, just add "time" to the kernel boot parameter. Of course, you can also choose to directly specify "Show timing information on Printks" in "Kernel hacking" when compiling the kernel to force each boot to increase the timestamp for kernel information. There is another benefit to this approach: you can get the time that the kernel has all the information before parsing the startup parameters. So I chose the latter way.
Linux kernel print timestamp