linux kernel dynamic debug
来源:互联网 发布:韦小宝和康熙 知乎 编辑:程序博客网 时间:2024/05/21 09:01
refs:
http://lwn.net/Articles/434833/
https://www.kernel.org/doc/Documentation/dynamic-debug-howto.txt
= Use dynamic debug(ddebug) =
==config==
enabe debugfs, enable CONFIG_DYNAMIC_DEBUG
for some subsystem which debug based on ddebug, e.g. xhci_dbg, you also need to enable subsystem's debug
==usage==
mount -t debugfs none /sys/kernel/debug
echo 8 > /proc/sys/kernel/printk
echo "file xx.c line xxx +p" > /sys/kernel/debug/dynamic_debug/control
#also has other support to enable debug info, check Documentation/dynamic-debug-howto.txt for details.
awk '$3 != "-" ' /sys/kernel/debug/dynamic_debug/control
#check the enabled debug info is same as expected or not.
OK. now run what you want to debug and get the info you care.
Enjoy it.
= others about dynamic debug =
Dynamic debug operates on print statements written with either of:
pr_debug(char *format, ...); dev_dbg(struct device *dev, char *format, ...);
If the CONFIG_DYNAMIC_DEBUG option is not set, and if DEBUG is defined, the above functionswill be turned into normalprintk() statements at theKERN_DEBUG level.
So another way to enable dev_dbg is:
- define DEBUG before #include<linux/device.h> in the file which you want to debug.
- linux kernel dynamic debug
- Linux Kernel -- Debug VirtualBox
- linux kernel panic debug
- Linux Kernel Crash Debug
- linux kernel debug
- Linux kernel debug技巧----开启DEBUG选项
- Linux kernel debug技巧----开启DEBUG选项
- Linux kernel Low Level debug
- Debug Linux Kernel with Qemu
- Linux kernel Low Level debug
- linux kernel / android debug notes
- Linux kernel Low Level debug
- Qemu+Gdb debug linux kernel
- linux kernel debug 之 CallTrace
- android linux kernel debug技术
- Linux kernel Low Level debug
- from linux kernel to kvm -- debug linux kernel by eclipse
- Kprobe在Linux kernel debug中的应用
- table合并单元格(Jquery 插件
- 2013级测试赛 - F 播放器
- 改革春风吹满地,多边形面积的求法,用到矩阵
- Protel99SE PCB 打印设置问题
- 《审查指南》 第二部分 第九章:关于涉及计算机程序的发明专利申请审查的若干规定
- linux kernel dynamic debug
- Webkit Layout Test理论部分1 + 深入分析部分2– Layout Test :
- 程序员到底怎么了
- C++日志系统log4cxx使用总结
- explain 分析查询优化
- [C++]cpp小笔记3 --- C++基础类型的大小和转换
- pscp在使用私钥的情况下的上传下载文件
- reduh使用
- vim 空格