]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - Documentation/admin-guide/dynamic-debug-howto.rst
dynamic_debug: add an option to enable dynamic debug for modules only
[mirror_ubuntu-jammy-kernel.git] / Documentation / admin-guide / dynamic-debug-howto.rst
index 0dc2eb8e44e5fa56ad19cb1191f182090ee614f8..1012bd9305e905f9b75cc0539fae1f9fe0531f60 100644 (file)
@@ -13,6 +13,11 @@ kernel code to obtain additional kernel information.  Currently, if
 ``print_hex_dump_debug()``/``print_hex_dump_bytes()`` calls can be dynamically
 enabled per-callsite.
 
+If you do not want to enable dynamic debug globally (i.e. in some embedded
+system), you may set ``CONFIG_DYNAMIC_DEBUG_CORE`` as basic support of dynamic
+debug and add ``ccflags := -DDYNAMIC_DEBUG_MODULE`` into the Makefile of any
+modules which you'd like to dynamically debug later.
+
 If ``CONFIG_DYNAMIC_DEBUG`` is not set, ``print_hex_dump_debug()`` is just
 shortcut for ``print_hex_dump(KERN_DEBUG)``.