mm: mm_event: make capture period configurable
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:02:06 +0000 (15:02 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:07 +0000 (17:37 +0800)
commit453d320ef7e5e17c833c9d2e079e01abe9006eb8
tree6be09995ab4fc96f9fcfd27036d0c8f190dc7c3d
parent9f9cbd9fa5eb487ade9dd32c8ab2989e80594a28
mm: mm_event: make capture period configurable

This patch makes per-process mm event capture inteval configurable.
Default is 500ms but admin can change it by below knob.

/sys/kernel/debug/mm_event/period_ms

The unit is millisecond.

Mot-CRs-fixed: (CR)

Bug: 80168800
Change-Id: I3b2de3dd5c4a519a2e5e20f1ef0d5f9a4c7afc8a
Signed-off-by: Minchan Kim <minchan@google.com>
Reviewed-on: https://gerrit.mot.com/1453719
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
mm/mm_event.c