kpatch/test/integration/centos-7/data-new.patch
Joe Lawrence 11ce8102c2 testing: add and rebase integration tests for CentOS 7
Kernel version: 3.10.0-327.36.3.el7.x86_64
2016-12-16 16:06:28 -05:00

29 lines
744 B
Diff

diff -Nupr src.orig/fs/proc/meminfo.c src/fs/proc/meminfo.c
--- src.orig/fs/proc/meminfo.c 2016-11-30 19:51:03.948178250 +0000
+++ src/fs/proc/meminfo.c 2016-11-30 19:51:11.642178250 +0000
@@ -20,6 +20,8 @@ void __attribute__((weak)) arch_report_m
{
}
+static int foo = 5;
+
static int meminfo_proc_show(struct seq_file *m, void *v)
{
struct sysinfo i;
@@ -138,6 +140,7 @@ static int meminfo_proc_show(struct seq_
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
"AnonHugePages: %8lu kB\n"
#endif
+ "kpatch: %d"
,
K(i.totalram),
K(i.freeram),
@@ -199,6 +202,7 @@ static int meminfo_proc_show(struct seq_
,K(global_page_state(NR_ANON_TRANSPARENT_HUGEPAGES) *
HPAGE_PMD_NR)
#endif
+ ,foo
);
hugetlb_report_meminfo(m);