mirror of https://github.com/thesofproject/sof.git
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:
parent
343d111db7
commit
f4f0dd41da
|
@ -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 :-
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue