Linux Dynamic Debugging
In Linux programming, it is very important to debug your code by adding some debug messages to your code.
By using the dynamic debug feature of Linux, you can enable these debug messages per file, per function and even per line.
This post will show you how to do this with a simple kernel loadable module implementation.
First, you need compile your kernel with the CONFIG_DYNAMIC_DEBUG option. It is under "Kernel hacking" menu and prompt name is "Enable dynamic printk() support" as you see on the below screenshot.
Sample Code:
TBD
Enable/Disable dynamic debug in the sample code:
TBD
Comments