In this tutorial, we’ll look at the following topics:
• How and why kernels fail.
• Understanding log files: dmesg and the files in /var/log, notably /var/log/messages.
• Userland tools for debugging a running system.
• Building a kernel with debugging support: the options.
• Using a serial console.
• Preparing for dumps: dumpon, savecore.
• Demonstration: panicing and dumping a system.
• The assembler-level view of a C program.
• Preliminary dump analysis.
• Reading code.
• Introduction to the kernel source tree.
• Analysing panic dumps with gdb.
• On-line kernel debuggers: ddb, remote serial gdb.
• Debugging a running system with ddb.
• Debugging a running system with gdb.
• Debug options in the kernel: INVARIANTS and friends.
• Debug options in the kernel: WITNESS.
• Code-based assistance: KTR.
点击下载:Debugging Linux Kernel Problems
Leave a Reply