Skip to contentSkip to conversation

panic-add-cpu-pid-to-warn_slowpath_common-in-warning-printks.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 9, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [merged] panic-add-cpu-pid-to-warn_slowpath_common-in-warning-printks.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 09 Jul 2013 16:20:55 -0700

The patch titled
Subject: panic: add cpu/pid to warn_slowpath_common in WARNING printk()s
has been removed from the -mm tree. Its filename was
panic-add-cpu-pid-to-warn_slowpath_common-in-warning-printks.patch

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

------------------------------------------------------
From: Alex Thorlton <[email protected]>
Subject: panic: add cpu/pid to warn_slowpath_common in WARNING printk()s

Add the cpu/pid that called WARN() so that the stack traces can be matched up with the WARNING messages.

[[email protected]: remove stray quote]
Cc Stephen Boyd <[email protected]>
Cc Vikram Mulukutla <[email protected]>
Cc Rusty Russell <[email protected]>
Cc Tejun Heo <[email protected]>

---

 kernel/panic.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/panic.c renamed from kernel/panic.c~panic-add-cpu-pid-to-warn_slowpath_common-in-warning-printks +3 -2
diff -puN kernel/panic.c~panic-add-cpu-pid-to-warn_slowpath_common-in-warning-printks kernel/panic.c
@@ -399,8 +399,9 @@ struct slowpath_args {
 static void warn_slowpath_common(const char *file, int line, void *caller,
 				 unsigned taint, struct slowpath_args *args)
 {
-	printk(KERN_WARNING "------------[ cut here ]------------\n");
-	printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller);
+	pr_warn("------------[ cut here ]------------\n");
+	pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS()\n",
+		raw_smp_processor_id(), current->pid, file, line, caller);
 
 	if (args)
 		vprintk(args->fmt, args->args);

_

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

origin.patch