Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 9c79e4c

Browse files
liangjleeTreehugger Robot
authored andcommitted
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 <[email protected]> (cherry picked from commit 0801d8a)
1 parent f67eff4 commit 9c79e4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mm/oom_kill.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static int dump_task(struct task_struct *p, void *arg)
423423
* State information includes task's pid, uid, tgid, vm size, rss,
424424
* pgtables_bytes, swapents, oom_score_adj value, and name.
425425
*/
426-
static void dump_tasks(struct oom_control *oc)
426+
void dump_tasks(struct oom_control *oc)
427427
{
428428
pr_info("Tasks state (memory values in pages):\n");
429429
pr_info("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n");
@@ -439,6 +439,7 @@ static void dump_tasks(struct oom_control *oc)
439439
rcu_read_unlock();
440440
}
441441
}
442+
EXPORT_SYMBOL_GPL(dump_tasks);
442443

443444
static void dump_oom_summary(struct oom_control *oc, struct task_struct *victim)
444445
{

0 commit comments

Comments
 (0)