Linux kernel live debugging, how it's done and what tools are used?

后端 未结 11 1717
不知归路
不知归路 2020-11-28 01:58

What are the most common and why not uncommon methods and tools used to do live debugging on the Linux kernel? I know that Linus for eg. is against this kind of debugging fo

11条回答
  •  渐次进展
    2020-11-28 02:14

    As someone who writes kernel code a lot I have to say I have never used kgdb, and only rarely use kprobes etc.

    It is still often the best approach to throw in some strategic printks. In more recent kernels trace_printk is a good way to do that without spamming dmesg.

提交回复
热议问题