Debugging Linux Systems discusses the most instruments on hand this day to debug 2.6 Linux Kernels. we commence via exploring the doubtless esoteric operations of the Kernel Debugger (KDB), Kernel GNU DeBugger (KGDB), the apparent GNU DeBugger (GDB), and JTAG debuggers. We then examine Kernel Probes, a characteristic that allows you to intervene right into a kernel functionality and extract debug details or follow a medicated patch. reading a crash sell off can yield clues for postmortem research of kernel crashes or hangs, so we have a look at Kdump, a serviceability software that collects a method sell off after spawning a brand new kernel. Profiling issues you to code areas that burn extra CPU cycles, so we discover ways to use the OProfile kernel profiler and the gprof program profiler to experience the presence of code bottlenecks. simply because tracing offers perception into behavioral difficulties that happen in the course of interactions among assorted code modules, we delve into the Linux hint Toolkit, a procedure designed for high-volume hint capture.
The part “Debugging Embedded Linux” takes a travel of the I/O interfaces in most cases chanced on on embedded undefined, corresponding to flash reminiscence, serial port, PCMCIA, safe electronic media, USB, RTC, audio, video, contact monitor, and Bluetooth, and gives tips that could debug the linked gadget drivers. We additionally decide up a few board-level debugging abilities with the aid of a case research. The part “Debugging community Throughput” takes you thru a few machine driving force layout matters and protocol implementation features which can impact the horsepower of your community interface card. We finish the shortcut through reading numerous ideas to be had within the kernel configuration menu that may emit precious debug information.