From 0a67541578eef66f4b27a7bcf514a0e8cdf99b6c Mon Sep 17 00:00:00 2001 From: yan chang Date: Tue, 12 Aug 2025 15:36:20 +0800 Subject: [PATCH] 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 Signed-off-by: yan chang --- mm/cma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/cma.c b/mm/cma.c index 42297d6b5f7a..1e26b9f794d1 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -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;