ANDROID: android: Export cma tracehooks

We need to know which module allocates/releases each cma.
The configuration of CMA resources in the system is fixed,
and multiple modules competing for limited CMA resources
at the same time may lead to allocation failures and more
serious problems.

Bug: 438090847

Change-Id: Id43beb2f36f10fdcf852ef653c6a6f2af2a1e760
Signed-off-by: Penghao Wei <weipenghao@xiaomi.com>
Signed-off-by: yan chang <changyan1@xiaomi.com>
This commit is contained in:
yan chang
2025-08-12 15:36:20 +08:00
parent 39b965f012
commit 0a67541578
+2
View File
@@ -45,6 +45,8 @@
EXPORT_TRACEPOINT_SYMBOL_GPL(cma_alloc_start);
EXPORT_TRACEPOINT_SYMBOL_GPL(cma_alloc_finish);
EXPORT_TRACEPOINT_SYMBOL_GPL(cma_alloc_busy_retry);
EXPORT_TRACEPOINT_SYMBOL_GPL(cma_release);
struct cma cma_areas[MAX_CMA_AREAS];
unsigned cma_area_count;