From 0801d8a89de16b3371ac091b123081565d58f53a Mon Sep 17 00:00:00 2001 From: liangjlee Date: Tue, 9 Jan 2024 03:17:54 +0000 Subject: [PATCH] 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 --- mm/oom_kill.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 2c5b854f767b..76a1954071e1 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -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, * 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("[ 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(); } } +EXPORT_SYMBOL_GPL(dump_tasks); static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim) {