/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __INCLUDE_LINUX_OOM_H #define __INCLUDE_LINUX_OOM_H #include <linux/sched/signal.h> #include <linux/types.h> #include <linux/nodemask.h> #include <uapi/linux/oom.h> #include <linux/sched/coredump.h> /* MMF_* */ #include <linux/mm.h> /* VM_FAULT* */ struct zonelist; struct notifier_block; struct mem_cgroup; struct task_struct; /* * Details of the page allocation that triggered the oom killer that are used to * determine what should be killed. */ struct oom_control { /* Used to determine cpuset */ struct zonelist *zonelist; /* Used to determine mempolicy */ nodemask_t *nodemask; /* Memory cgroup in which oom is invoked, or NULL for global oom */ struct mem_cgroup *memcg; /* Used to determine cpuset and node locality requirement */ const gfp_t gfp_mask; /* * order == -1 means the oom kill is required by sysrq, otherwise only * for display purposes. */ const int order; /* Used by oom implementation, do not set */ unsigned long totalpages; struct task_struct *chosen; unsigned long chosen_points; }; extern struct mutex oom_lock;
static inline void set_current_oom_origin(void) { current->signal->oom_flag_origin = true; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 14 | 82.35% | 2 | 66.67% |
Tetsuo Handa | 3 | 17.65% | 1 | 33.33% |
Total | 17 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 14 | 82.35% | 1 | 50.00% |
Tetsuo Handa | 3 | 17.65% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 19 | 95.00% | 2 | 66.67% |
Tetsuo Handa | 1 | 5.00% | 1 | 33.33% |
Total | 20 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Michal Hocko | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Michal Hocko | 33 | 100.00% | 1 | 100.00% |
Total | 33 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 152 | 50.00% | 10 | 33.33% |
Michal Hocko | 71 | 23.36% | 5 | 16.67% |
Vladimir Davydov | 20 | 6.58% | 2 | 6.67% |
Kamezawa Hiroyuki | 16 | 5.26% | 2 | 6.67% |
Alexey Dobriyan | 14 | 4.61% | 2 | 6.67% |
Johannes Weiner | 12 | 3.95% | 3 | 10.00% |
Tetsuo Handa | 8 | 2.63% | 2 | 6.67% |
Andrew Morton | 6 | 1.97% | 1 | 3.33% |
David Howells | 3 | 0.99% | 1 | 3.33% |
Ingo Molnar | 1 | 0.33% | 1 | 3.33% |
Greg Kroah-Hartman | 1 | 0.33% | 1 | 3.33% |
Total | 304 | 100.00% | 30 | 100.00% |