fix(heap): Tracing of all heap_caps API

This commit fixes the missing tracing on all
heap_caps_xx_prefer and heap_caps_xx_aligned
functions.
This commit is contained in:
Guillaume Souchere
2024-03-08 13:58:13 +01:00
parent 96c81c87bf
commit dd1dde5fb9
5 changed files with 350 additions and 386 deletions

View File

@@ -8,6 +8,7 @@ if(${target} STREQUAL "linux")
endif()
set(srcs
"heap_caps_base.c"
"heap_caps.c"
"heap_caps_init.c"
"multi_heap.c")
@@ -50,15 +51,10 @@ idf_component_register(SRCS "${srcs}"
if(CONFIG_HEAP_TRACING)
set(WRAP_FUNCTIONS
calloc
malloc
free
realloc
heap_caps_malloc
heap_caps_free
heap_caps_realloc
heap_caps_malloc_default
heap_caps_realloc_default)
heap_caps_realloc_base
heap_caps_malloc_base
heap_caps_aligned_alloc_base
heap_caps_free)
foreach(wrap ${WRAP_FUNCTIONS})
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=${wrap}")