mm: mm_event: add swapin stat
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:07:57 +0000 (15:07 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:07 +0000 (17:37 +0800)
commit06ea15dc6d7fb7fe263d7dcd6d650dfb40f8fdcf
tree18dde9f7d2f5ea3f9b58943f98c0f09cef2c7039
parent81d6c6c76052245205d55e004f04d58d06960f01
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