--- zzzz-none-000/linux-5.4.213/include/linux/mm_types_task.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/linux/mm_types_task.h 2024-08-14 09:02:08.000000000 +0000 @@ -36,6 +36,8 @@ struct vm_area_struct *vmas[VMACACHE_SIZE]; }; +#define AVM_ENH_SWAP_STATS 1 + /* * When updating this, please also update struct resident_page_types[] in * kernel/fork.c @@ -45,7 +47,9 @@ MM_ANONPAGES, /* Resident anonymous pages */ MM_SWAPENTS, /* Anonymous swap entries */ MM_SHMEMPAGES, /* Resident shared memory pages */ - NR_MM_COUNTERS + NR_MM_COUNTERS, + MM_SWAPOUTS, + MM_SWAPINS, }; #if USE_SPLIT_PTE_PTLOCKS && defined(CONFIG_MMU)