ANDROID: mm: export dump_tasks symbol.

Export dump_tasks to dump per-task memory status when ramdump.

Bug: 316372318
Change-Id: Ie0dd1a4c7ada280dc0c7696781b4b9a5e2a100ab
Signed-off-by: liangjlee <liangjlee@google.com>
This commit is contained in:
liangjlee
2024-01-09 03:17:54 +00:00
committed by Treehugger Robot
parent 7c91752f5d
commit 0801d8a89d

View File

@@ -420,7 +420,7 @@ static int dump_task(struct task_struct *p, void *arg)
* State information includes task's pid, uid, tgid, vm size, rss, * State information includes task's pid, uid, tgid, vm size, rss,
* pgtables_bytes, swapents, oom_score_adj value, and name. * pgtables_bytes, swapents, oom_score_adj value, and name.
*/ */
static void dump_tasks(struct oom_control *oc) void dump_tasks(struct oom_control *oc)
{ {
pr_info("Tasks state (memory values in pages):\n"); pr_info("Tasks state (memory values in pages):\n");
pr_info("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n"); pr_info("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n");
@@ -436,6 +436,7 @@ static void dump_tasks(struct oom_control *oc)
rcu_read_unlock(); rcu_read_unlock();
} }
} }
EXPORT_SYMBOL_GPL(dump_tasks);
static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim) static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim)
{ {