mirror of https://github.com/thesofproject/sof.git
heap-debug: use the correct functions for heap trace
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
parent
5949148b94
commit
21e8d5efc5
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue