kpatch/test/integration/rhel-7.9/data-new.patch

29 lines
730 B
Diff

diff -Nupr src.orig/fs/proc/meminfo.c src/fs/proc/meminfo.c
--- src.orig/fs/proc/meminfo.c 2020-09-03 11:48:30.497726123 -0400
+++ src/fs/proc/meminfo.c 2020-09-03 11:48:35.069740426 -0400
@@ -21,6 +21,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;
@@ -112,6 +114,7 @@ static int meminfo_proc_show(struct seq_
"CmaTotal: %8lu kB\n"
"CmaFree: %8lu kB\n"
#endif
+ "kpatch: %d"
,
K(i.totalram),
K(i.freeram),
@@ -178,6 +181,7 @@ static int meminfo_proc_show(struct seq_
, K(totalcma_pages)
, K(global_page_state(NR_FREE_CMA_PAGES))
#endif
+ ,foo
);
hugetlb_report_meminfo(m);