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)
commitffb098dc52d6cdd29a2bd4ea5dd49f6363ff5b30
tree6e5c857fbd4799330d2eb6855f38b1f67261bfdf
parentc2c3b329cfc94280ec4dfcefbf04840bdcf7f8eb
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