ANDROID: vendor_hooks: Export cma_alloc trace points

For cma_alloc latency measurement.

Bug: 315897033
Change-Id: I5941c0e0017728dc2139d5fad073f8b58f4efa29
Signed-off-by: Richard Chang <richardycc@google.com>
This commit is contained in:
Richard Chang 2024-03-08 03:33:23 +00:00
parent 9219a44e00
commit 8bd9771065

View File

@ -38,6 +38,12 @@
#include "cma.h"
#undef CREATE_TRACE_POINTS
#include <trace/hooks/mm.h>
EXPORT_TRACEPOINT_SYMBOL_GPL(cma_alloc_start);
EXPORT_TRACEPOINT_SYMBOL_GPL(cma_alloc_finish);
struct cma cma_areas[MAX_CMA_AREAS];
unsigned cma_area_count;
static DEFINE_MUTEX(cma_mutex);