aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/oom.h3
-rw-r--r--mm/oom_kill.c2
2 files changed, 4 insertions, 1 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;
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 1a15cc0e1..24a437368 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -363,7 +363,7 @@ static struct task_struct *select_bad_process(unsigned int *ppoints,
* State information includes task's pid, uid, tgid, vm size, rss, nr_ptes,
* swapents, oom_score_adj value, and name.
*/
-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 *task;