如何获取在Linux内核启动期间已初始化/探查的所有模块/驱动程序的详细信息? [英] How to get details of all modules / drivers that were initialized / probed during the Linux kernel boot?

查看:239
本文介绍了如何获取在Linux内核启动期间已初始化/探查的所有模块/驱动程序的详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在内核引导过程中调用|初始化|探测的模块/驱动程序的顺序.

I need the sequence of modules/drivers that are invoked|initialized|probed during the kernl boot.

能否让我知道是否有任何Flash命令行选项可用于获取此序列?

Can you please let me know if any flash command-line option available to get this sequence ?

推荐答案

在内核命令行中传递选项"initcall_debug"将导致将内置驱动程序的每个init例程的计时信息打印到控制台. initcall用于初始化静态链接的内核驱动程序和子系统,并为Linux引导过程贡献大量时间. (可装载的模块只有在安装了根文件系统之后才可用.)

Passing the option "initcall_debug" on the kernel command line will cause timing information to be printed to the console for each init routine of built-in drivers. The initcalls are used to initialize statically linked kernel drivers and subsystems and contribute a significant amount of time to the Linux boot process. (Loadable modules are not available until after the root filesystem has been mounted.)

输出如下:

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"将确保在引导过程中显示该信息.

Specifying the kernel parameter "ignore_loglevel" along with the "initcall_debug" will ensure that the information will be displayed during boot.

这篇关于如何获取在Linux内核启动期间已初始化/探查的所有模块/驱动程序的详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆