summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0023-printk-implement-syslog.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches-rt/0023-printk-implement-syslog.patch')
-rw-r--r--debian/patches-rt/0023-printk-implement-syslog.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/debian/patches-rt/0023-printk-implement-syslog.patch b/debian/patches-rt/0023-printk-implement-syslog.patch
index 898adc5d0..c5ee8d712 100644
--- a/debian/patches-rt/0023-printk-implement-syslog.patch
+++ b/debian/patches-rt/0023-printk-implement-syslog.patch
@@ -1,7 +1,7 @@
From: John Ogness <john.ogness@linutronix.de>
Date: Tue, 12 Feb 2019 15:30:01 +0100
Subject: [PATCH 23/25] printk: implement syslog
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/older/patches-5.4.3-rt1.tar.xz
Since printk messages are now logged to a new ring buffer, update
the syslog functions to pull the messages from there.
@@ -14,7 +14,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
-@@ -397,10 +397,12 @@ DECLARE_STATIC_PRINTKRB_CPULOCK(printk_c
+@@ -407,10 +407,12 @@ DECLARE_STATIC_PRINTKRB_CPULOCK(printk_c
/* record buffer */
DECLARE_STATIC_PRINTKRB(printk_rb, CONFIG_LOG_BUF_SHIFT, &printk_cpulock);
@@ -28,7 +28,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
static size_t syslog_partial;
static bool syslog_time;
-@@ -1293,30 +1295,42 @@ static size_t msg_print_text(const struc
+@@ -1303,30 +1305,42 @@ static size_t msg_print_text(const struc
return len;
}
@@ -85,7 +85,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
}
/*
-@@ -1326,131 +1340,212 @@ static int syslog_print(char __user *buf
+@@ -1336,131 +1350,212 @@ static int syslog_print(char __user *buf
if (!syslog_partial)
syslog_time = printk_time;
@@ -360,7 +360,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
error = check_syslog_permissions(type, source);
if (error)
-@@ -1468,11 +1563,49 @@ int do_syslog(int type, char __user *buf
+@@ -1478,11 +1573,49 @@ int do_syslog(int type, char __user *buf
return 0;
if (!access_ok(buf, len))
return -EFAULT;
@@ -414,7 +414,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
break;
/* Read/clear last kernel messages */
case SYSLOG_ACTION_READ_CLEAR:
-@@ -1517,47 +1650,45 @@ int do_syslog(int type, char __user *buf
+@@ -1527,47 +1660,45 @@ int do_syslog(int type, char __user *buf
break;
/* Number of chars in the log buffer */
case SYSLOG_ACTION_SIZE_UNREAD:
@@ -484,7 +484,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
return error;
}
-@@ -1979,7 +2110,6 @@ EXPORT_SYMBOL(printk);
+@@ -1989,7 +2120,6 @@ EXPORT_SYMBOL(printk);
#define printk_time false
static u64 syslog_seq;