From: Yan Wang yan.wang@linux.intel.com
It will use MEM trace class and global DMA trace API.
Signed-off-by: Yan Wang yan.wang@linux.intel.com --- Test with: CNL nocodec SOF master: c1f2682c210201bbbc96fce7b382b25b90d19775 SOF-Tool master: 86fe688a2b4f68a1ce87e0951686be12a00f1a3c https://github.com/plbossart/sound/tree/topic/sof-v4.14: d09db67c5a9d6dfc85f700669fa2e43c678c8d51 --- src/lib/alloc.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/lib/alloc.c b/src/lib/alloc.c index 3ca14c3..a3ecc34 100644 --- a/src/lib/alloc.c +++ b/src/lib/alloc.c @@ -48,12 +48,22 @@
/* memory tracing support */ #if DEBUG_BLOCK_ALLOC || DEBUG_BLOCK_FREE -#define trace_mem(__e) trace_event(TRACE_CLASS_MEM, __e) +#define trace_mem(__e) \ + trace_global_event(NORMAL_LEVEL, TRACE_CLASS_MEM, __e) +#define tracev_mem(__e) \ + trace_global_event(VERBOSE_LEVEL, TRACE_CLASS_MEM, __e) +#define trace_mem_value(x) \ + trace_global_value(NORMAL_LEVEL, x) #else #define trace_mem(__e) +#define tracev_mem(__e) +#define trace_mem_value(__e) #endif
-#define trace_mem_error(__e) trace_error(TRACE_CLASS_MEM, __e) +#define trace_mem_error(__e) \ + trace_global_event(ERROR_LEVEL, TRACE_CLASS_MEM, __e) +#define trace_mem_error_value(x) \ + trace_global_value(ERROR_LEVEL, x)
extern struct mm memmap;
@@ -378,8 +388,8 @@ find:
error: trace_mem_error("eMm"); - trace_error_value(bytes); - trace_error_value(caps); + trace_mem_error_value(bytes); + trace_mem_error_value(caps); return NULL; }