kpatch/test/integration/rhel-7.4/new-globals.patch
Artem Savkov 76ebcd2fa4 test/integration: add patches rebased for recent rhel minor releases
This commit contains centos-7 patches rebased and adjusted to work with
recent rhel minors so that integration tests actually pass on those.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
2019-06-14 10:53:57 +02:00

35 lines
1005 B
Diff

diff -Nupr src.orig/fs/proc/cmdline.c src/fs/proc/cmdline.c
--- src.orig/fs/proc/cmdline.c 2017-09-22 15:27:21.698056175 -0400
+++ src/fs/proc/cmdline.c 2017-09-22 15:27:47.028161067 -0400
@@ -27,3 +27,10 @@ static int __init proc_cmdline_init(void
return 0;
}
module_init(proc_cmdline_init);
+
+#include <linux/printk.h>
+void kpatch_print_message(void)
+{
+ if (!jiffies)
+ printk("hello there!\n");
+}
diff -Nupr src.orig/fs/proc/meminfo.c src/fs/proc/meminfo.c
--- src.orig/fs/proc/meminfo.c 2017-09-22 15:27:21.699056179 -0400
+++ src/fs/proc/meminfo.c 2017-09-22 15:27:47.029161071 -0400
@@ -16,6 +16,8 @@
#include <asm/pgtable.h>
#include "internal.h"
+void kpatch_print_message(void);
+
void __attribute__((weak)) arch_report_meminfo(struct seq_file *m)
{
}
@@ -53,6 +55,7 @@ static int meminfo_proc_show(struct seq_
/*
* Tagged format, for easy grepping and expansion.
*/
+ kpatch_print_message();
seq_printf(m,
"MemTotal: %8lu kB\n"
"MemFree: %8lu kB\n"