Loading kernel/module.c +4 −0 Original line number Diff line number Diff line Loading @@ -2187,6 +2187,10 @@ static void free_module(struct module *mod) /* Finally, free the core (containing the module structure) */ disable_ro_nx(&mod->core_layout); #ifdef CONFIG_DEBUG_MODULE_LOAD_INFO pr_info("Unloaded %s: module core layout, start: 0x%pK size: 0x%x\n", mod->name, mod->core_layout.base, mod->core_layout.size); #endif module_memfree(mod->core_layout.base); } Loading lib/Kconfig.debug +12 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,18 @@ config DEBUG_CONSOLE_UNHASHED_POINTERS actual pointer values, ignoring the kptr_restrict setting. Not to be enabled on production builds. config DEBUG_MODULE_LOAD_INFO bool "Use prints for module info under a debug flag" help If you say Y here the resulting kernel image will include debug prints which was kept under DEBUG_MODULE_LOAD_INFO. This will be used by developer to debug loadable modules in the kernel. Say Y here only if you plan to debug the kernel. Not to be enabled on production builds. If unsure, say N. endmenu # "printk and dmesg options" menu "Compile-time checks and compiler options" Loading Loading
kernel/module.c +4 −0 Original line number Diff line number Diff line Loading @@ -2187,6 +2187,10 @@ static void free_module(struct module *mod) /* Finally, free the core (containing the module structure) */ disable_ro_nx(&mod->core_layout); #ifdef CONFIG_DEBUG_MODULE_LOAD_INFO pr_info("Unloaded %s: module core layout, start: 0x%pK size: 0x%x\n", mod->name, mod->core_layout.base, mod->core_layout.size); #endif module_memfree(mod->core_layout.base); } Loading
lib/Kconfig.debug +12 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,18 @@ config DEBUG_CONSOLE_UNHASHED_POINTERS actual pointer values, ignoring the kptr_restrict setting. Not to be enabled on production builds. config DEBUG_MODULE_LOAD_INFO bool "Use prints for module info under a debug flag" help If you say Y here the resulting kernel image will include debug prints which was kept under DEBUG_MODULE_LOAD_INFO. This will be used by developer to debug loadable modules in the kernel. Say Y here only if you plan to debug the kernel. Not to be enabled on production builds. If unsure, say N. endmenu # "printk and dmesg options" menu "Compile-time checks and compiler options" Loading