How to Get Kernel Debug Messages

How to Get Kernel Debug Messages

I have installed the kernel debug symbols for my system

sudo apt install linux-image-5.11.0-17-generic-dbgsym

Also

$ sysctl kernel.printk
kernel.printk = 7   4   1   7

But when typing

sudo dmesg -wH

I get just real error messages. I do not get any debug info.

What am I missing?

1 Answer

You have installed the debug symbols, which are not related to debug messages.

With the debug symbols you can use debuggers, like gdb.

In order to read debug messages you need to compile the kernel/kernel module with the DEBUG define.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.