![](/img/trans.png)
[英]How can i get the list of all initialized device drivers in a running Linux kernel?
[英]How to get details of all modules / drivers that were initialized / probed during the Linux kernel boot?
我需要在内核引导过程中调用|初始化|探测的模块/驱动程序的顺序。
您能否让我知道是否有任何Flash命令行选项可用于获取此序列?
在内核命令行上传递选项“ initcall_debug”将使内置驱动程序的每个init例程的计时信息被打印到控制台。 initcall用于初始化静态链接的内核驱动程序和子系统,并为Linux引导过程贡献大量时间。 (可装载模块在挂载根文件系统之后才可用。)
输出如下:
calling tty_class_init+0x0/0x44 @ 1
initcall tty_class_init+0x0/0x44 returned 0 after 9765 usecs
calling spi_init+0x0/0x90 @ 1
initcall spi_init+0x0/0x90 returned 0 after 9765 usecs
参考: http : //elinux.org/Initcall_Debug
指定内核参数“ ignore_loglevel”以及“ initcall_debug”将确保在引导过程中显示该信息。
在内核命令行上同时启用initcall_debug = 1和ignore_loglevel = 1之后,我可以看到模块初始化的开始和结束时间。 以下链接对此有更多详细信息。
https://chengyihe.wordpress.com/2015/12/13/android-kernel-enable-initcall_debug-to-debug-initcall/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.