> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debugging linux kernel

At a high level, you can categorize issues in the kernel space as kernel panic and bugs. To debug kernel-space issues, you can use the logs, command line tools, and dumps shown in the following figure:

<img src="https://mintcdn.com/qualcomm-prod/rpHTx_a6zriKQll9/System/Debug-Subsystem/media/qli-support/Tools-dumps-logs-to-debug-kernelspace.svg?fit=max&auto=format&n=rpHTx_a6zriKQll9&q=85&s=e2abe999678fb74a01400189d3ea23e5" alt="Visual representation of kernel space debugging resources, including system logs, command-line options, and memory dumps used to identify and resolve kernel-level issues." width="586" height="287" data-path="System/Debug-Subsystem/media/qli-support/Tools-dumps-logs-to-debug-kernelspace.svg" />

<p align="center">Figure: Resources to debug issues in kernel space</p>

* Logs section includes dynamic debug, kernel debugging configuration, and function tracer
* Command-line tools provide access to the `/proc` and `debugfs` file systems
* Dumps section lists RAM dump, RAM parser, and crash utility that are used for analyzing system crashes and memory states

You can generate kernel logs using the `dmesg` command.

To debug issues in the kernel space, it's recommended to use the `debug` build. For more information about how to generate the `debug` build, see [Qualcomm Linux metadata layers overview](https://dragonwingdocs.qualcomm.com/Key-Documents/Yocto-Guide/qualcomm-linux-metadata-layers#qualcomm-linux-metadata-layers).

For more information about kernel source configuration files, see \[Qualcomm Linux Kernel Guide([https://dragonwingdocs.qualcomm.com/System/Kernel/kernel-overview](https://dragonwingdocs.qualcomm.com/System/Kernel/kernel-overview)).

For more information about debugging Linux kernel‑space issues, see the following sections:

* [Enable Kernel Debugging](https://dragonwingdocs.qualcomm.com/System/Kernel/configure-kernel-debugger)
* [Configure The Kernel For Debugging](https://dragonwingdocs.qualcomm.com/System/Kernel/configure-debug-methods)
* [Assess Memory Usage](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/assess-memory-usage)
* [Trace Kernel Functions](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/trace-kernel-functions)
* [Collect And Parse Ram Dumps](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/collect-and-parse-ram-dump)
* [Parse RAM dumps using RAMParser](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/parse-ram-dumps-using-ram-parser)
* [Parse Ram Dumps Using Qcap](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/parse-ram-dumps-using-qcap)
* [Debug using the crash utility tool](https://dragonwingdocs.qualcomm.com/System/Debug-Subsystem/debug-using-the-crash-utility-tool)
