From be07389110af7b6114425a45f4c2c665a421bda5 Mon Sep 17 00:00:00 2001 From: jiangxinpei Date: Mon, 9 Sep 2024 19:56:51 +0800 Subject: [PATCH] ANDROID: Allow vendor modules perform operationson on memleak detect 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: 365506689 Bug: 346707562 Change-Id: I5d7d6bdbca30660f2a552211fd8aff40d3550df7 Signed-off-by: jiangxinpei (cherry picked from commit d61134668c2d37846a6cea3e1ab3c237f2c7bc99) --- lib/show_mem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/show_mem.c b/lib/show_mem.c index f62c5b38470c..8848039712c8 100644 --- a/lib/show_mem.c +++ b/lib/show_mem.c @@ -44,3 +44,4 @@ void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) #endif trace_android_vh_show_mem(filter, nodemask); } +EXPORT_SYMBOL_GPL(__show_mem);