File: data-new.patch

package info (click to toggle)
kpatch 0.9.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,716 kB
  • sloc: ansic: 9,716; sh: 2,592; makefile: 260; asm: 35
file content (28 lines) | stat: -rw-r--r-- 730 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -Nupr src.orig/fs/proc/meminfo.c src/fs/proc/meminfo.c
--- src.orig/fs/proc/meminfo.c	2020-03-10 10:35:54.568563834 -0400
+++ src/fs/proc/meminfo.c	2020-03-10 10:36:07.968536775 -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);