]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/oom.h
mm, oom: reorganize the oom report in dump_header
[linux.git] / include / linux / oom.h
index 69864a547663ecda818ac17c171ed085dbe33c26..d07992009265ab6a865ba70d0f20db21e478d5df 100644 (file)
@@ -15,6 +15,13 @@ struct notifier_block;
 struct mem_cgroup;
 struct task_struct;
 
+enum oom_constraint {
+       CONSTRAINT_NONE,
+       CONSTRAINT_CPUSET,
+       CONSTRAINT_MEMORY_POLICY,
+       CONSTRAINT_MEMCG,
+};
+
 /*
  * Details of the page allocation that triggered the oom killer that are used to
  * determine what should be killed.
@@ -42,6 +49,9 @@ struct oom_control {
        unsigned long totalpages;
        struct task_struct *chosen;
        unsigned long chosen_points;
+
+       /* Used to print the constraint info. */
+       enum oom_constraint constraint;
 };
 
 extern struct mutex oom_lock;