Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17fae2be authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Kconfig.debug: module: Add debug config to debug modules"

parents 2fe8c633 224419de
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
}

+12 −0
Original line number Diff line number Diff line
@@ -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"