mm: introduce per-process mm event tracking feature
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / include / linux / sched.h
index e99ac4d74444cbe2aec0aeba71e088195b81a7f2..afcd95fd05e8bc35f4444257c0e6a18597d93de1 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <uapi/linux/sched.h>
+#include <linux/mm_event.h>
 
 #include <asm/current.h>
 
@@ -985,6 +986,10 @@ struct task_struct {
        struct rt_mutex_waiter          *pi_blocked_on;
 #endif
 
+#ifdef CONFIG_MM_EVENT_STAT
+       struct mm_event_task    mm_event[MM_TYPE_NUM];
+       unsigned long           next_period;
+#endif
 #ifdef CONFIG_DEBUG_MUTEXES
        /* Mutex deadlock detection: */
        struct mutex_waiter             *blocked_on;