Skip to contentSkip to conversation

init-mainc-add-initcall_blacklist-kernel-parameter.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 5, 2014 Documentation

lore
Share & tools
lore
#0 lore raw

Subject: [merged] init-mainc-add-initcall_blacklist-kernel-parameter.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 05 Jun 2014 13:07:37 -0700

The patch titled
Subject: init/main.c: add initcall_blacklist kernel parameter
has been removed from the -mm tree. Its filename was
init-mainc-add-initcall_blacklist-kernel-parameter.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Prarit Bhargava <[email protected]>
Subject: init/main.c: add initcall_blacklist kernel parameter

When a module is built into the kernel the module_init() function becomes an initcall. Sometimes debugging through dynamic debug can help, however, debugging built in kernel modules is typically done by changing the .config, recompiling, and booting the new kernel in an effort to determine exactly which module caused a problem.

This patchset can be useful stand-alone or combined with initcall_debug. There are cases where some initcalls can hang the machine before the console can be flushed, which can make initcall_debug output inaccurate. Having the ability to skip initcalls can help further debugging of these scenarios.

Usage: initcall_blacklist=<list of comma separated initcalls>

ex) added "initcall_blacklist=sgi_uv_sysfs_init" as a kernel parameter and the log contains:

	blacklisting initcall sgi_uv_sysfs_init
	...
	...
	initcall sgi_uv_sysfs_init blacklisted

ex) added "initcall_blacklist=foo_bar,sgi_uv_sysfs_init" as a kernel parameter and the log contains:

blacklisting initcall foo_bar
blacklisting initcall sgi_uv_sysfs_init
...
...
initcall sgi_uv_sysfs_init blacklisted

[[email protected]: tweak printk text]
Cc Richard Weinberger <[email protected]>
Cc Andi Kleen <[email protected]>
Cc Josh Boyer <[email protected]>
Cc Rob Landley <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Frederic Weisbecker <[email protected]>

---

 Documentation/kernel-parameters.txt |    4 +
 init/main.c                         |   68 ++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
Documentation/kernel-parameters.txt renamed from Documentation/kernel-parameters.txt~init-mainc-add-initcall_blacklist-kernel-parameter +4 -0
diff -puN Documentation/kernel-parameters.txt~init-mainc-add-initcall_blacklist-kernel-parameter Documentation/kernel-parameters.txt
@@ -1312,6 +1312,10 @@ bytes respectively. Such letter suffixes
 			for working out where the kernel is dying during
 			startup.
 
+	initcall_blacklist=  [KNL] Do not execute a comma-separated list of
+			initcall functions.  Useful for debugging built-in
+			modules and initcalls.
+
 	initrd=		[BOOT] Specify the location of the initial ramdisk
 
 	inport.irq=	[HW] Inport (ATI XL and Microsoft) busmouse driver
init/main.c renamed from init/main.c~init-mainc-add-initcall_blacklist-kernel-parameter +68 -0

86 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

origin.patch
linux-next.patch