Current Linux Kernel debugging techniques

后端 未结 5 1644
遇见更好的自我
遇见更好的自我 2021-02-02 11:34

A linux machine freezes few hours after booting and running software (including custom drivers). I\'m looking a method to debug such problem. Recently, there has been significan

5条回答
  •  一个人的身影
    2021-02-02 12:30

    SystemTap seems to be to Linux what Dtrace is to Solaris .. however I find it rather hostile to use. Still, you may want to give it a try. NB: compile the kernel with debug info and spend some time with the kernel instrumentation hooks.

    This is why so many are still using printk() after empirically narrowing a bug down to a specific module.

    I'm not recommending it, just pointing out that it exists. I may not be smart enough to appreciate some underlying beauty .. I just write drivers for odd devices.

提交回复
热议问题