mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
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:
@@ -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}")
|
||||
|
Reference in New Issue
Block a user