android linux kernel debug技术
2016-08-16 13:56
239 查看
动态调试功能就是你可以决定在程序运行过程中是否要 pr_debug(), dev_dbg(), print_hex_dump_debug(), print_hex_dump_bytes() 这些函数正常运行起来。
echo –n 'file suspend.c line 340 +p' > /sys/kernel/debug/dynamic_debug/control 让 kernel/power/suspend.c 源码第340行的 pr_debug() 函数打印日志:
echo -n 'file test.c +p' > /sys/kernel/debug/dynamic_debug/control 让 test.c
file 中的pr_debug(),dev_dbg()等函数打印日志:
echo -n 'func test_control -p' > /sys/kernel/debug/dynamic_debug/control 让 test_control 函数不打印日志:
echo -n 'module test +p' > /sys/kernel/debug/dynamic_debug/control 让 module test中的pr_debug(),dev_dbg()等函数打印日志:
echo –n 'file suspend.c line 340 +p' > /sys/kernel/debug/dynamic_debug/control 让 kernel/power/suspend.c 源码第340行的 pr_debug() 函数打印日志:
echo -n 'file test.c +p' > /sys/kernel/debug/dynamic_debug/control 让 test.c
file 中的pr_debug(),dev_dbg()等函数打印日志:
echo -n 'func test_control -p' > /sys/kernel/debug/dynamic_debug/control 让 test_control 函数不打印日志:
echo -n 'module test +p' > /sys/kernel/debug/dynamic_debug/control 让 module test中的pr_debug(),dev_dbg()等函数打印日志:
相关文章推荐
- linux kernel / android debug notes
- Debug Linux Kernel with Qemu
- Android arm linux kernel启动流程(二)
- Android和Android Linux kernel源码获取
- Linux环境下android平台调试native代码, 从java debug 到C++ (NDK DEBUG)
- Greg Kroah-Hartman: Android and the Linux kernel community
- Debug a NIC driver in linux(kernel version 2.4.20-8) which running on VMware workstation version 4.5.2
- Linux Kernel and Android 休眠与唤醒
- 嵌入式Linux之Kernel(裁减移植)启动调试、打印技术 printascii(补充)、内核调试
- Android筆記-Linux Kernel Ftrace (Function Trace)解析
- Linux环境下android平台调试native代码, 从java debug 到C++ (NDK DEBUG)
- Add kernel module to Linux/Android kernel srouce code tree.
- Android arm linux kernel启动流程(一)
- Android和Android Linux kernel源码获取
- Android Debug Bridge(ADB) 技术实现(译)
- "android linux kernel" VS "standard linux kernel"
- Using KGDB debug linux kernel and kernel module
- Android arm linux kernel启动流程
- linux_kernel_debug_tips_根据函数地址定位函数名称
- Android筆記-Linux Kernel Ftrace (Function Trace)解析(非常强悍的性能分析方法)