2020-06-23 09:08:47 +00:00
|
|
|
From 5ba31ca9469e52e6d4478fee90d733f9c1634dcd Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <5ba31ca9469e52e6d4478fee90d733f9c1634dcd.1590093525.git.zanussi@kernel.org>
|
|
|
|
In-Reply-To: <4f310e18bbb62e33196484e72d1a7d0416189d63.1590093525.git.zanussi@kernel.org>
|
|
|
|
References: <4f310e18bbb62e33196484e72d1a7d0416189d63.1590093525.git.zanussi@kernel.org>
|
2018-08-27 14:32:32 +00:00
|
|
|
From: Peter Zijlstra <peterz@infradead.org>
|
2019-04-08 23:49:20 +00:00
|
|
|
Date: Fri, 2 Sep 2011 14:41:29 +0200
|
2020-06-22 13:14:16 +00:00
|
|
|
Subject: [PATCH 058/327] printk: Add "force_early_printk" boot param to help
|
2019-04-08 23:49:20 +00:00
|
|
|
with debugging
|
2020-06-23 09:08:47 +00:00
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.124-rt53.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
Gives me an option to screw printk and actually see what the machine
|
|
|
|
says.
|
|
|
|
|
|
|
|
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
|
|
|
|
Link: http://lkml.kernel.org/r/1314967289.1301.11.camel@twins
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
Link: http://lkml.kernel.org/n/tip-ykb97nsfmobq44xketrxs977@git.kernel.org
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
kernel/printk/printk.c | 7 +++++++
|
2018-08-27 14:32:32 +00:00
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
|
2020-02-21 18:07:43 +00:00
|
|
|
index 29838e532f46..f934baed564d 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/kernel/printk/printk.c
|
|
|
|
+++ b/kernel/printk/printk.c
|
2019-04-08 23:49:20 +00:00
|
|
|
@@ -435,6 +435,13 @@ asmlinkage void early_printk(const char *fmt, ...)
|
2018-08-27 14:32:32 +00:00
|
|
|
*/
|
|
|
|
static bool __read_mostly printk_killswitch;
|
|
|
|
|
|
|
|
+static int __init force_early_printk_setup(char *str)
|
|
|
|
+{
|
|
|
|
+ printk_killswitch = true;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+early_param("force_early_printk", force_early_printk_setup);
|
|
|
|
+
|
|
|
|
void printk_kill(void)
|
|
|
|
{
|
|
|
|
printk_killswitch = true;
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-06-22 13:14:16 +00:00
|
|
|
2.17.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|