ANDROID: GKI: mm: add rss counter for unreclaimable pages

Add a per mm rss counter to hold the unreclaimable
pages. This can include the pages allocated by a
task and shared with hardware for DMA etc.

Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Will McVicker <willmcvicker@google.com>
(cherry picked from commit ade7f1cd6f)
Bug: 148872640
Change-Id: Iec77d69eca0a4f8f6e23f866c80c0143620fcaf2
This commit is contained in:
Vinayak Menon 2019-03-10 17:40:16 +05:30 committed by Will McVicker
parent b4441f0a82
commit 135415b1ff

View file

@ -41,6 +41,7 @@ enum {
MM_ANONPAGES, /* Resident anonymous pages */
MM_SWAPENTS, /* Anonymous swap entries */
MM_SHMEMPAGES, /* Resident shared memory pages */
MM_UNRECLAIMABLE, /* Unreclaimable pages, e.g. shared with HW */
NR_MM_COUNTERS
};