alloc: move trace macros to header

Moves trace macros to alloc.h header in order to use
them in the header itself.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-12-17 10:40:35 +01:00 committed by Tomasz Lauda
parent 343d111db7
commit f4f0dd41da
2 changed files with 6 additions and 5 deletions

View File

@ -15,6 +15,7 @@
#include <sof/lib/memory.h>
#include <sof/spinlock.h>
#include <sof/string.h>
#include <sof/trace/trace.h>
#include <user/trace.h>
#include <config.h>
#include <stddef.h>
@ -24,6 +25,11 @@ struct dma_copy;
struct dma_sg_config;
struct sof;
#define trace_mem_error(__e, ...) \
trace_error(TRACE_CLASS_MEM, __e, ##__VA_ARGS__)
#define trace_mem_init(__e, ...) \
trace_event(TRACE_CLASS_MEM, __e, ##__VA_ARGS__)
/* Heap Memory Zones
*
* The heap has three different zones from where memory can be allocated :-

View File

@ -29,11 +29,6 @@
#define DEBUG_BLOCK_FREE_VALUE_32BIT ((uint32_t) 0xa5a5a5a5)
#endif
#define trace_mem_error(__e, ...) \
trace_error(TRACE_CLASS_MEM, __e, ##__VA_ARGS__)
#define trace_mem_init(__e, ...) \
trace_event(TRACE_CLASS_MEM, __e, ##__VA_ARGS__)
extern struct mm memmap;
/* We have 3 memory pools