summaryrefslogtreecommitdiff
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorLiam Mark <lmark@codeaurora.org>2014-06-03 13:33:18 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:30 -0700
commit71edb92d82fdc25f00728facee60ff97b4539bef (patch)
tree2f615e14a99b440566571939bb3cc75e621102c6 /mm/oom_kill.c
parent1fe8bfe88af138b470e05d7f8b4b52ea3bfcf985 (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 'mm/oom_kill.c')
-rw-r--r--mm/oom_kill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index c12680993ff3..90515f4d9786 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -350,7 +350,7 @@ static struct task_struct *select_bad_process(struct oom_control *oc,
* State information includes task's pid, uid, tgid, vm size, rss, nr_ptes,
* swapents, oom_score_adj value, and name.
*/
-static void dump_tasks(struct mem_cgroup *memcg, const nodemask_t *nodemask)
+void dump_tasks(struct mem_cgroup *memcg, const nodemask_t *nodemask)
{
struct task_struct *p;
struct task_struct *task;