heap-debug: use the correct functions for heap trace

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
Adrian Bonislawski 2019-04-04 11:30:43 +02:00 committed by Liam Girdwood
parent 5949148b94
commit 21e8d5efc5
1 changed files with 4 additions and 2 deletions

View File

@ -472,7 +472,8 @@ void alloc_trace_runtime_heap(int zone, uint32_t caps, size_t bytes)
/* check runtime heap for capabilities */
trace_mem_error("heap: using runtime");
do {
heap = get_runtime_heap_from_caps(caps, current);
heap = get_heap_from_caps(memmap.runtime, PLATFORM_HEAP_RUNTIME,
caps);
if (heap) {
trace_heap_blocks(heap);
count++;
@ -494,7 +495,8 @@ void alloc_trace_buffer_heap(int zone, uint32_t caps, size_t bytes)
/* check buffer heap for capabilities */
trace_mem_error("heap: using buffer");
do {
heap = get_buffer_heap_from_caps(caps, current);
heap = get_heap_from_caps(memmap.buffer, PLATFORM_HEAP_BUFFER,
caps);
if (heap) {
trace_heap_blocks(heap);
count++;