kpatch/test/integration/data-new.patch

30 lines
709 B
Diff
Raw Normal View History

Index: src/fs/proc/meminfo.c
===================================================================
--- src.orig/fs/proc/meminfo.c
+++ src/fs/proc/meminfo.c
@@ -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),
@@ -193,6 +196,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);