2016-12-05 14:43:22 +00:00
|
|
|
diff -Nupr src.orig/fs/proc/meminfo.c src/fs/proc/meminfo.c
|
2017-11-27 19:14:24 +00:00
|
|
|
--- src.orig/fs/proc/meminfo.c 2017-11-17 15:58:41.113211972 -0500
|
|
|
|
+++ src/fs/proc/meminfo.c 2017-11-17 15:58:58.554211972 -0500
|
2017-02-08 22:14:32 +00:00
|
|
|
@@ -42,6 +42,8 @@ static void show_val_kb(struct seq_file
|
|
|
|
seq_write(m, " kB\n", 4);
|
2014-08-14 06:02:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+static int foo = 5;
|
|
|
|
+
|
|
|
|
static int meminfo_proc_show(struct seq_file *m, void *v)
|
|
|
|
{
|
|
|
|
struct sysinfo i;
|
2017-02-08 22:14:32 +00:00
|
|
|
@@ -153,6 +155,7 @@ static int meminfo_proc_show(struct seq_
|
|
|
|
show_val_kb(m, "CmaFree: ",
|
|
|
|
global_page_state(NR_FREE_CMA_PAGES));
|
2014-08-14 06:02:26 +00:00
|
|
|
#endif
|
2017-02-08 22:14:32 +00:00
|
|
|
+ seq_printf(m, "kpatch: %d\n", foo);
|
2014-08-14 06:02:26 +00:00
|
|
|
|
|
|
|
hugetlb_report_meminfo(m);
|
2017-02-08 22:14:32 +00:00
|
|
|
|