+1 vote
in Linux by
Mention the ways to debug the kernel code.

1 Answer

0 votes
by

We can debug a kernel code simply with the command printks. Else we can also use KDB and kernel probes. Other methods are:

  • UML (User Mode Linux) – It is the best method for debugging but it does not support device drivers.
  • KGDB (Kernel GNU Debugger)
  • kdump tools which are used to dump kernel cores.

Related questions

0 votes
asked Nov 11, 2020 in Linux by sharadyadav1986
0 votes
asked Oct 18, 2022 in Linux by AdilsonLima
...