mm: mm_event: make capture period configurable
authorMinchan Kim <minchan@google.com>
Mon, 6 Aug 2018 06:02:06 +0000 (15:02 +0900)
committerPDO SCM Team <hudsoncm@motorola.com>
Fri, 15 Nov 2019 06:58:39 +0000 (00:58 -0600)
commitd2a22b87a9fc50e07c0427cef2b36c6e1a3ce56b
treefe8258f45aeaa7fbf37739dd3fe42b1e90cfe4b4
parentbe075489a549ad2cad589bfbd1f84631dfb928e7
mm: mm_event: make capture period configurable

This patch makes per-process mm event capture inteval configurable.
Defenderault 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