mm: mm_event: add reclaim stat
authorMinchan Kim <minchan@google.com>
Wed, 27 Jun 2018 13:04:07 +0000 (22:04 +0900)
committerPDO SCM Team <hudsoncm@motorola.com>
Fri, 15 Nov 2019 06:58:42 +0000 (00:58 -0600)
commit0ae5e8ec252ec4baa6dbe5056c919b5f1d1e088f
treed245a9968541bca081dad918b18cb30df5bea64f
parent35dd923d61775abc91afc5ab7ce2dcf00a66b215
mm: mm_event: add reclaim stat

This patch adds page reclaim mm_event stat so that we could
keep tracking [avg|max]_latency for the handling the event
as well as count of the event.

Direct reclaim latency is usually a most popular latency source
caused by memory pressure so we need to track it down to hunt
down application's jank problem.

Mot-CRs-fixed: (CR)

Bug: 80168800
Change-Id: I215c3972f76389404da7c4806a776bf753daac01
Signed-off-by: Minchan Kim <minchan@google.com>
Reviewed-on: https://gerrit.mot.com/1453721
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
mm/vmscan.c