mm: introduce per-process mm event tracking feature
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / kernel / fork.c
index 5a34c13ca34b7b2e8ccd85e592c8dfc80a3069f0..5d81e13fe12796ff3bc113f9a1072972c7c42865 100644 (file)
@@ -1227,6 +1227,7 @@ static int copy_mm(unsigned long clone_flags, struct task_struct *tsk)
 
        tsk->min_flt = tsk->maj_flt = 0;
        tsk->nvcsw = tsk->nivcsw = 0;
+       mm_event_task_init(tsk);
 #ifdef CONFIG_DETECT_HUNG_TASK
        tsk->last_switch_count = tsk->nvcsw + tsk->nivcsw;
 #endif