设为首页 加入收藏

TOP

Linux Debug Filesystem的使用
2014-11-24 13:29:46 来源: 作者: 【 】 浏览:1
Tags:Linux Debug Filesystem 使用

[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 USB subsystem --- USBFS d.. 下一篇jQuery UI应用--滑块Slider

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Announcing October (2025-12-24 15:18:16)
·MySQL有什么推荐的学 (2025-12-24 15:18:13)
·到底应该用MySQL还是 (2025-12-24 15:18:11)
·进入Linux世界大门的 (2025-12-24 14:51:47)
·Download Linux | Li (2025-12-24 14:51:44)