mm: mm_event: add special kernel allocation stat
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:12:44 +0000 (15:12 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:07 +0000 (17:37 +0800)
commit334b26ef729a62f2dfc1b96b9ccb1b5a704ad554
tree1522e01572cc9ee3619d086769b099f9ff42f0d7
parent3c238f01240a7e1e870b5891b7f176cdd5997394
mm: mm_event: add special kernel allocation stat

Record the count of special page allocation on the process context.

This patch aims for accounting of special page allocation which
consumed a lot by android system.
At this moment, ION system heap is good candidate(it could cover
other kernel allocation in future).
With that, we could keep tracking burst kernel allocation owner
so that it would be useful to find places caused by lmk, reclaim,
compaction latency.

Mot-CRs-fixed: (CR)

Bug: 80168800
Change-Id: I5942fd940d98baa2eb814f66b076cb37ecd3b4aa
Signed-off-by: Minchan Kim <minchan@google.com>
Reviewed-on: https://gerrit.mot.com/1453724
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
drivers/staging/android/ion/ion_page_pool.c
include/linux/mm_event.h
include/trace/events/mm_event.h
mm/mm_event.c