// SPDX-License-Identifier: BSD-3-Clause // // Copyright(c) 2018 Intel Corporation. All rights reserved. // // Author: Seppo Ingalsuo // Liam Girdwood // Keyon Jie // Ranjani Sridharan #include #include #include #include #include #include #include "testbench/common_test.h" /* testbench mem alloc definition */ void *rmalloc(enum mem_zone zone, uint32_t flags, uint32_t caps, size_t bytes) { return malloc(bytes); } void *rzalloc(enum mem_zone zone, uint32_t flags, uint32_t caps, size_t bytes) { return calloc(bytes, 1); } void rfree(void *ptr) { free(ptr); } void *rballoc_align(uint32_t flags, uint32_t caps, size_t bytes, uint32_t alignment) { return malloc(bytes); } void *rbrealloc_align(void *ptr, uint32_t flags, uint32_t caps, size_t bytes, size_t old_bytes, uint32_t alignment) { return realloc(ptr, bytes); } void heap_trace(struct mm_heap *heap, int size) { malloc_info(0, stdout); } void heap_trace_all(int force) { heap_trace(NULL, 0); }