diff options
| author | Liam Mark <lmark@codeaurora.org> | 2014-06-03 13:33:18 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-12-01 22:09:41 +0100 |
| commit | 79fc97e0ebf6630830f2efd2b9ae4532932b2bce (patch) | |
| tree | 46772bc34812f20a556d14415af6215e7ac619d8 /include | |
| parent | 02cf60c4811080078829bcf8574de547eaad3b79 (diff) | |
mm, oom: make dump_tasks public
Allow other functions to dump the list of tasks.
Useful for when debugging memory leaks.
Change-Id: I76c33a118a9765b4c2276e8c76de36399c78dbf6
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/oom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index 297cda528..b16a9f5ab 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -87,6 +87,9 @@ static inline void oom_killer_enable(void) extern struct task_struct *find_lock_task_mm(struct task_struct *p); +extern void dump_tasks(const struct mem_cgroup *memcg, + const nodemask_t *nodemask); + /* sysctls */ extern int sysctl_oom_dump_tasks; extern int sysctl_oom_kill_allocating_task; |
