Current Linux Kernel debugging techniques

后端 未结 5 1718
遇见更好的自我
遇见更好的自我 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:12

    One option is to use Kprobes. A quick search on google will show you all the information you need. It isn't particularly hard to use. Kprobes was created by IBM I believe as a solution for kernel debugging. It is essentially a elaborate form of printk() however it allows you to handle any "breakpoints" you insert using handlers. It may be what you are looking for. All you need to do is write and 'insmod' a module into the kernel which will handle any "breakpoints" hit that you specify in the module.

    Hope that can be a useful option...

提交回复
热议问题