Skip to content
Snippets Groups Projects
Commit 0d038372 authored by Liam Mark's avatar Liam Mark Committed by Iliyan Malchev
Browse files

mm, oom: make dump_tasks public


Allow other functions to dump the list of tasks.
Useful for when debugging memory leaks.

Bug: 17871993
Change-Id: I76c33a118a9765b4c2276e8c76de36399c78dbf6
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
Signed-off-by: default avatarNaveen Ramaraj <nramaraj@codeaurora.org>
parent 97f19073
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,9 @@ static inline void oom_killer_enable(void) ...@@ -67,6 +67,9 @@ static inline void oom_killer_enable(void)
extern struct task_struct *find_lock_task_mm(struct task_struct *p); 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 */ /* sysctls */
extern int sysctl_oom_dump_tasks; extern int sysctl_oom_dump_tasks;
extern int sysctl_oom_kill_allocating_task; extern int sysctl_oom_kill_allocating_task;
......
...@@ -389,7 +389,7 @@ static struct task_struct *select_bad_process(unsigned int *ppoints, ...@@ -389,7 +389,7 @@ static struct task_struct *select_bad_process(unsigned int *ppoints,
* *
* Call with tasklist_lock read-locked. * Call with tasklist_lock read-locked.
*/ */
static void dump_tasks(const struct mem_cgroup *memcg, const nodemask_t *nodemask) void dump_tasks(const struct mem_cgroup *memcg, const nodemask_t *nodemask)
{ {
struct task_struct *p; struct task_struct *p;
struct task_struct *task; struct task_struct *task;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment