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: 346707562
Change-Id: I5d7d6bdbca30660f2a552211fd8aff40d3550df7
Signed-off-by: Dezhi Huang <huangdezhi@hihonor.com>
This commit is contained in:
h00013079 2024-06-12 17:10:41 +08:00 committed by Treehugger Robot
parent 666cbbfe5c
commit d61134668c

View File

@ -434,3 +434,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);