This document is a concise reference guide to the most important Linux Kernel debugging configurations. It talks about important kernel-level debug options like CONFIG_DEBUG_KERNEL, CONFIG_DEBUG_INFO, CONFIG_DYNAMIC_DEBUG, and parameters for tracing, memory, and lock debugging.
This cheat sheet gi...
This document is a concise reference guide to the most important Linux Kernel debugging configurations. It talks about important kernel-level debug options like CONFIG_DEBUG_KERNEL, CONFIG_DEBUG_INFO, CONFIG_DYNAMIC_DEBUG, and parameters for tracing, memory, and lock debugging.
This cheat sheet gives embedded engineers and kernel developers a structured overview of the most common kernel debug settings, organized by General Debugging, Early Debugging, Dynamic Debugging, Tracing & Profiling, and Memory & Object Debugging. It covers everything from early printk support to runtime tracing and memory object tracking.
Size: 105.91 MB
Language: en
Added: Oct 28, 2025
Slides: 10 pages
Slide Content
LINUX KERNELLINUX KERNEL
DEBUGDEBUG
CONFIGSCONFIGS
LINUX KERNEL
DEBUG
CONFIGS
1. CONFIG_DEBUG_KERNEL: ENABLE KERNEL DEBUGGING
2. CONFIG_DEBUG_INFO: GENERATE ADDITIONAL DEBUG INFO
3. CONFIG_DEBUG_INFO_REDUCED: REDUCED DEBUGGING INFO
4. CONFIG_DEBUG_INFO_SPLIT: SPLIT DEBUG INFO INTO SEPARATE FILES
GENERAL DEBUGGING:
5. CONFIG_DEBUG_FS: ENABLE DEBUGFS FILESYSTEM
6. CONFIG_DEBUG_LL: LOW-LEVEL DEBUGGING SUPPORT
7.CONFIG_DEBUG_LL_INCLUDE: INCLUDE SPECIFIC LOW-LEVEL DEBUGGING
SUPPORT
8.CONFIG_EARLY_PRINTK: ENABLE EARLY PRINTK
9.CONFIG_EARLY_PRINTK_DBGP: EARLY PRINTK USING DEBUG PORT
10. CONFIG_EARLY_PRINTK_EFI: EARLY PRINTK USING EFI FACILITIES
11. CONFIG_EARLY_PRINTK_USB: EARLY PRINTK VIA USB
EARLY DEBUGGING:
12. CONFIG_DYNAMIC_DEBUG: ENABLE DYNAMIC DEBUGGING MESSAGES
DYNAMIC DEBUGGING:
13. CONFIG_TRACING: ENABLE KERNEL TRACING
14.CONFIG_FUNCTION_TRACER: FUNCTION TRACING SUPPORT
TRACING AND PROFILING: