手机版
你好,游客 登录 注册
背景:
阅读新闻

Linux Debug Filesystem的使用

[日期:2012-03-27] 来源:Linux社区  作者:voice_shen [字体:大 中 小]

[Test Kernel: Linux-2.6.39]

在进行系统调试的时候,有可能会使用到debug file system。

下面讲解如何具体使用debug file system

1. 在kernel中使用debug file system

make menuconfig --> Kernel hacking --> 选中Debug Filesystem (CONFIG_DEBUG_FS)选项。

make menuconfig --> kernel hacking --> 选中Kernel debugging (CONFIG_DEBUG_KERNEL)选 项。

注:"kernel debugging"选项必须使能,否则在进行第三步的时候,会报“mount: unknown filesystem type 'debugfs'”

2. 编译kernel,下载并且运行之。

3. 挂载debug file system

# mount -t debugfs none /sys/kernel/debug

或者

# mkdir /debug

# mount -t debugfs none /debug

进入/debug文件夹及其子文件夹获得想要的信息。

linux
相关资讯       Linux驱动开发 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款