diff -Nupr src/fs/proc/cmdline.c src/fs/proc/cmdline.c --- src/fs/proc/cmdline.c 2020-03-11 11:23:26.878602482 +0000 +++ src/fs/proc/cmdline.c 2020-03-11 11:38:10.295599825 +0000 @@ -17,3 +17,10 @@ static int __init proc_cmdline_init(void return 0; } fs_initcall(proc_cmdline_init); + +#include +void kpatch_print_message(void) +{ + if (!jiffies) + printk("hello there!\n"); +} diff -Nupr src/fs/proc/meminfo.c src/fs/proc/meminfo.c --- src/fs/proc/meminfo.c 2020-03-11 11:23:26.882602572 +0000 +++ src/fs/proc/meminfo.c 2020-03-11 11:38:10.295599825 +0000 @@ -20,6 +20,8 @@ #include #include "internal.h" +void kpatch_print_message(void); + void __attribute__((weak)) arch_report_meminfo(struct seq_file *m) { } @@ -56,6 +58,7 @@ static int meminfo_proc_show(struct seq_ sreclaimable = global_node_page_state(NR_SLAB_RECLAIMABLE); sunreclaim = global_node_page_state(NR_SLAB_UNRECLAIMABLE); + kpatch_print_message(); show_val_kb(m, "MemTotal: ", i.totalram); show_val_kb(m, "MemFree: ", i.freeram); show_val_kb(m, "MemAvailable: ", available);