mm: mm_event: add swapin stat
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:07:57 +0000 (15:07 +0900)
committerPDO SCM Team <hudsoncm@motorola.com>
Fri, 15 Nov 2019 06:58:44 +0000 (00:58 -0600)
commit1fb0a84213764813d80d2dffd494c09814c65b02
tree68345c58c8c1db05558202c46e7dd9ab155b6a11
parentec1a809b8df3ec409a883d407ea5a57eae5649ab
mm: mm_event: add swapin stat

Many embedded devices use zram as swap. Compared to storage swap
(e.g. UFS), swapin from zram(ie., decompression) is extremly fast
so it might be not major fault but minor. So this patch provides
swapin latency tracking to distinguish them from storage major
fault.

Mot-CRs-fixed: (CR)

Bug: 80168800
Change-Id: I1c32430e32a051916ede5219bd5f40a9002652bc
Signed-off-by: Minchan Kim <minchan@google.com>
Reviewed-on: https://gerrit.mot.com/1453723
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
arch/arm64/mm/fault.c
include/linux/mm.h
include/linux/mm_event.h
include/trace/events/mm_event.h
mm/memory.c