From 936ea2ffcd607604225dfeb31b851776051bb5a6 Mon Sep 17 00:00:00 2001 From: Dezhi Huang Date: Wed, 12 Jun 2024 17:10:41 +0800 Subject: [PATCH] ANDROID: Allow vendor modules to perform operations on memory leak detection When an LMK (Low Memory Killer) occurs, it is crucial for us to identify the underlying cause of low memory. Based on past experiences, memory leaks are often the root cause in such situations. The purpose of this function is to assist us in identifying which application or type of memory is experiencing memory leaks, thereby enabling us to effectively locate and address the memory leakage issue. Bug: 346707562 Change-Id: I5d7d6bdbca30660f2a552211fd8aff40d3550df7 Signed-off-by: Dezhi Huang --- mm/show_mem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/show_mem.c b/mm/show_mem.c index ec885a398fa0..4efeb2bf6c81 100644 --- a/mm/show_mem.c +++ b/mm/show_mem.c @@ -453,3 +453,4 @@ void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) } #endif } +EXPORT_SYMBOL_GPL(__show_mem);