mm: mm_event: add special kernel allocation stat
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:12:44 +0000 (15:12 +0900)
committerPDO SCM Team <hudsoncm@motorola.com>
Fri, 15 Nov 2019 06:58:46 +0000 (00:58 -0600)
commitcee78bb61cdec9886cadf97e9e9ce61e337d83c9
tree4bc56e14331b14bf342b597d66709fadec66fee0
parent1fb0a84213764813d80d2dffd494c09814c65b02
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