--- zzzz-none-000/linux-5.4.213/include/linux/mm_types_task.h 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/include/linux/mm_types_task.h 2024-05-29 11:20:02.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)