Book description
Debugging Linux Systems discusses the main tools available today to debug 2.6 Linux Kernels. We start by exploring the seemingly esoteric operations of the Kernel Debugger (KDB), Kernel GNU DeBugger (KGDB), the plain GNU DeBugger (GDB), and JTAG debuggers. We then investigate Kernel Probes, a feature that lets you intrude into a kernel function and extract debug information or apply a medicated patch. Analyzing a crash dump can yield clues for postmortem analysis of kernel crashes or hangs, so we take a look at Kdump, a serviceability tool that collects a system dump after spawning a new kernel. Profiling points you to code regions that burn more CPU cycles, so we learn to use the OProfile kernel profiler and the gprof application profiler to sense the presence of code bottlenecks. Because tracing provides insight into behavioral problems that manifest during interactions between different code modules, we delve into the Linux Trace Toolkit, a system designed for high-volume trace capture.
The section “Debugging Embedded Linux” takes a tour of the I/O interfaces commonly found on embedded hardware, such as flash memory, serial port, PCMCIA, Secure Digital media, USB, RTC, audio, video, touch screen, and Bluetooth, and provides pointers to debug the associated device drivers. We also pick up some board-level debugging skills with the help of a case study. The section “Debugging Network Throughput” takes you through some device driver design issues and protocol implementation characteristics that can affect the horsepower of your network interface card. We end the shortcut by examining several options available in the kernel configuration menu that can emit valuable debug information.
Table of contents
- Title Page
- Copyright Page
- Table of Contents
- Product Description
- Kernel Version
- Book Website
- Conventions Used
- Dedication
- Section #1. Kernel Debuggers
- Section #2. Kernel Probes
- Section #3. Kexec and Kdump
- Section #4. Profiling
- Section #5. Tracing
- Section #6. Debugging Embedded Linux
- Section #7. Debugging Network Throughput
- Section #8. Linux Test Project
- Section #9. User Mode Linux
- Section #10. Diagnostic Tools
- Section #11. Kernel Hacking Config Options
Product information
- Title: Debugging Linux Systems
- Author(s):
- Release date: November 2009
- Publisher(s): Pearson
- ISBN: 9780137072446
You might also like
book
Embedded Linux lernen mit dem Raspberry Pi
Ein "Mitmach"-Buch, sehr praktisch aufgebaut. Der Leser kann die vorgestellten Inhalte mit seinem eigenen Raspberry Pi …
book
Programming PIC Microcontrollers with XC8
Learn how to use microcontrollers without all the frills and math. This book uses a practical …
book
Linux® Kernel Primer, The: A Top-Down Approach for x86 and PowerPC Architectures
Learn Linux kernel programming, hands-on: a uniquely effective top-down approach The Linux is the definitive guide …
book
UNIX Filesystems: Evolution, Design, and Implementation
Covers all versions of UNIX, as well as Linux, operating systems that are used by the …