Linux测量kernel子模块加载时间的方法

1. 在文件kernel/init/main.c里面,在接口do_one_initcall( )中,将initcall_debug设置为true,然后编译boot.img


2. 使用adb shell cat /proc/kmsg | grep initcall 来查看模块加载时间

posted on 2014-12-28 01:20  胡永光  阅读(206)  评论(0编辑  收藏  举报

导航