如何提取linux内核中编译使用的文件(包括C文件,h文件,和汇编文件)?

13 views
Skip to first unread message

zhang jun

unread,
Mar 15, 2011, 7:39:26 AM3/15/11
to Linux-...@zh-kernel.org
最近看内核代码,有点不爽。现在的linux兼容的硬件越来越多,代码越来越大。用source insight
看代码,不论是同步,还是查找都挺耗时的。请问linux大侠们,有没有脚本,将linux中编译用到的文件提取出来,这样看代码比较方便。
_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.org
http://zh-kernel.org/mailman/listinfo/linux-kernel
Linux 内核开发中文社区: http://zh-kernel.org

文剑

unread,
Mar 15, 2011, 11:15:12 PM3/15/11
to zhang jun, Linux-...@zh-kernel.org
调用图?
systemtap


--
Best,

文剑

Wizard

unread,
Mar 15, 2011, 11:26:56 PM3/15/11
to 文剑, Linux-...@zh-kernel.org
这个要是有,就比较牛了。
不过我怎么感觉不一定有呢

--
Wizard

Shuduo Sang

unread,
Mar 16, 2011, 12:24:10 AM3/16/11
to zhang jun, Linux-...@zh-kernel.org
2011/3/15 zhang jun <zhangj...@gmail.com>

> 最近看内核代码,有点不爽。现在的linux兼容的硬件越来越多,代码越来越大。用source insight
> 看代码,不论是同步,还是查找都挺耗时的。请问linux大侠们,有没有脚本,将linux中编译用到的文件提取出来,这样看代码比较方便。
>

自己写一个

Zhi-zhou Zhang

unread,
Mar 29, 2011, 11:34:42 PM3/29/11
to Shuduo Sang, linux-...@zh-kernel.org
我是通过这个方法找到.o文件再去看相应的c文件的。
find . -name '*.o' | grep -v 'build'
Reply all
Reply to author
Forward
0 new messages