From 71edb92d82fdc25f00728facee60ff97b4539bef Mon Sep 17 00:00:00 2001 From: Liam Mark Date: Tue, 3 Jun 2014 13:33:18 -0700 Subject: 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 --- include/linux/oom.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/linux/oom.h b/include/linux/oom.h index 03e6257321f0..0ba4a4c9dd47 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -113,6 +113,9 @@ static inline bool task_will_free_mem(struct task_struct *task) !(task->signal->flags & SIGNAL_GROUP_COREDUMP); } +extern void dump_tasks(struct mem_cgroup *memcg, + const nodemask_t *nodemask); + /* sysctls */ extern int sysctl_oom_dump_tasks; extern int sysctl_oom_kill_allocating_task; -- cgit v1.2.3