【内核日志打印级别】
#define KERN_EMERG "<0>" /* systemis unusable */
#define KERN_ALERT "<1>" /* actionmust be taken immediately */
#define KERN_CRIT "<2>" /*critical conditions */
#define KERN_ERR "<3>" /* errorconditions */
#define KERN_WARNING "<4>" /* warning conditions */
#define KERN_NOTICE "<5>" /* normalbut significant */
#define KERN_INFO "<6>" /*informational */
#define KERN_DEBUG "<7>" /*debug-level messages */
日志级别:/proc/sys/kernel/printk
调整内核printk的打印级别_tonywgx的博客-优快云博客_内核打印级别
core文件位置配置:
cat /proc/sys/kernel/core_pattern
0、不挂gdb打内核态栈:
for i in `ls /proc/682243/task/`; do echo "thread-${i}:" ;cat /proc/$i/stack; done
1、基本调试
调试带窗口
跟-tui
layout运行调串口
info win 查看SRC和CMD各占几行
fs CMD切换到命令窗口
fs SRC切换到源码窗口
frame 1
bt
list
<