mm: emit tracepoint when rss watermark is hit
authorJoel Fernandes <joelaf@google.com>
Sat, 5 May 2018 21:58:08 +0000 (14:58 -0700)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:08 +0000 (17:37 +0800)
commit90e3372bef4cbb43670a02f1dd4e33c1c57ec14e
treed9c4001108f0cdf73e653c934ed008e79cc92d1a
parent4bc2134e6f301c5c3b2e2e7fe225183f313c97af
mm: emit tracepoint when rss watermark is hit

Useful to track how rss is chanGing per tgid. Required for the
memory visibility work being done for Android.

OriGinal patch by Tim Murray:
https://partner-android-review.googlesource.com/c/kernel/private/msm-google/+/1081280

Changes from oriGinal patch:
- don't bloat mm_struct
- add some noise reduction to rss tracking

Mot-CRs-fixed: (CR)

Change-Id: Ief904334235ff4380244e5803d7853579e70d202
Signed-off-by: Joel Fernandes <joelaf@google.com>
Reviewed-on: https://gerrit.mot.com/1453726
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
SLTApproved: Slta Waiver
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
include/linux/mm.h
include/trace/events/kmem.h
mm/memory.c