linux-kernel - 检查 Linux 内核调试选项

标签 linux-kernel systemtap

我如何知道我的 linux 版本中提供的标准内核是否选择了 DEBUG KERNEL ENABLED 标志?

我认为应该启用 DEBUG 选项才能使用 kprobe、systemtap 等工具?

最佳答案

假设内核具有“通过 proc 提供配置”,您可以通过查看/proc/config.gz 来检查正在运行的内核的配置

gunzip -c /proc/config.gz | less

关于linux-kernel - 检查 Linux 内核调试选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1801931/

相关文章:

linux - .function() 和 .function().call 在 systemtap 中的区别

tcp - 什么时候在 tcp 段中设置推送标志

linux - 主号次号和驱动加载

linux-kernel - 为什么要读取__turn_mmu_on中的id寄存器?

linux-kernel - kprobes中未定义异常处理程序(__und_svc)的作用是什么?

linux - Linux 内核空间中的 pread 等效(与 O_DIRECT)

linux-kernel - 交叉编译 Linux 内核模块

linux - dmesg 没有记录任何内容

linux - 用于分析功能延迟的 SystemTap 脚本

linux - Systemtap 脚本到 C 代码的转换和编译