--- zzzz-none-000/linux-4.4.271/mm/vmstat.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/mm/vmstat.c 2023-04-19 10:22:30.000000000 +0000 @@ -62,6 +62,15 @@ } EXPORT_SYMBOL_GPL(all_vm_events); +#if defined(CONFIG_AVM_POWERMETER) +/**--------------------------------------------------------------------------------**\ + * unprotected - for bh/irq-context +\**--------------------------------------------------------------------------------**/ +void __all_vm_events(unsigned long *ret) { + sum_vm_events(ret); +} +#endif/*--- #if defined(CONFIG_AVM_POWERMETER) ---*/ + /* * Fold the foreign cpu events into our own. * @@ -764,6 +773,7 @@ "workingset_nodereclaim", "nr_anon_transparent_hugepages", "nr_free_cma", + "nr_indirectly_reclaimable", /* enum writeback_stat_item counters */ "nr_dirty_threshold", @@ -1591,10 +1601,12 @@ cpu_notifier_register_done(); #endif #ifdef CONFIG_PROC_FS - proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); - proc_create("pagetypeinfo", 0400, NULL, &pagetypeinfo_file_ops); + if (!IS_ENABLED(CONFIG_PROC_STRIPPED)) { + proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); + proc_create("pagetypeinfo", 0400, NULL, &pagetypeinfo_file_ops); + proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); + } proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations); - proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); #endif return 0; }