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

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

Merge "defconfig: msm: Enable debug module info config for Lahaina/Shima"

parents 5bebd12b 6ddf9b85
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -48,3 +48,4 @@ CONFIG_USB_F_FS_IPC_LOGGING=y
CONFIG_DYNAMIC_DEBUG=y
CONFIG_QTI_PMIC_GLINK_CLIENT_DEBUG=y
# CONFIG_HH_DISABLE_UART is not set
CONFIG_DEBUG_MODULE_LOAD_INFO=y
+4 −0
Original line number Diff line number Diff line
@@ -2238,6 +2238,10 @@ static void free_module(struct module *mod)
	/* Free lock-classes; relies on the preceding sync_rcu(). */
	lockdep_free_key_range(mod->core_layout.base, mod->core_layout.size);

#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
	/* Finally, free the core (containing the module structure) */
	module_memfree(mod->core_layout.base);
}
+12 −0
Original line number Diff line number Diff line
@@ -186,6 +186,18 @@ config DYNAMIC_DEBUG_CORE
	  the case of embedded system where the kernel image size is
	  sensitive for people.

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"