> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-candidate.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:

![Visual representation of kernel space debugging resources, including system logs, command-line options, and memory dumps used to identify and resolve kernel-level issues.](https://mintcdn.com/qualcomm-candidate/bJijiEA66AqKc6Zf/System/Debug-Subsystem/media/qli-support/Tools-dumps-logs-to-debug-kernelspace.svg?fit=max\&auto=format\&n=bJijiEA66AqKc6Zf\&q=85\&s=31375c9a7ca2737823f7d429e5f0643a)

Figure: Resources to debug issues in kernel space

* 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)
