mm: emit tracepoint when rss watermark is hit
authorJoel Fernandes <joelaf@google.com>
Sat, 5 May 2018 21:58:08 +0000 (14:58 -0700)
committerPDO SCM Team <hudsoncm@motorola.com>
Fri, 15 Nov 2019 06:58:48 +0000 (00:58 -0600)
commite36fc4ae0b26f68dad620e175c1f3a5e0c906e6b
tree6e5c857fbd4799330d2eb6855f38b1f67261bfdf
parent68890dfe3a02ec7a89894b97458024f2ee7cfacc
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