From: Yan Wang yan.wang@linux.intel.com
It will use DMA 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/ipc/dma-copy.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/ipc/dma-copy.c b/src/ipc/dma-copy.c index be72eb8..2bdc218 100644 --- a/src/ipc/dma-copy.c +++ b/src/ipc/dma-copy.c @@ -40,9 +40,16 @@ #include <platform/dma.h>
/* tracing */ -#define trace_dma(__e) trace_event(TRACE_CLASS_DMA, __e) -#define trace_dma_error(__e) trace_error(TRACE_CLASS_DMA, __e) -#define tracev_dma(__e) tracev_event(TRACE_CLASS_DMA, __e) +#define trace_dma(__e) \ + trace_global_event(NORMAL_LEVEL, TRACE_CLASS_DMA, __e) +#define tracev_dma(__e) \ + trace_global_event(VERBOSE_LEVEL, TRACE_CLASS_DMA, __e) +#define trace_dma_error(__e) \ + trace_global_event(ERROR_LEVEL, TRACE_CLASS_DMA, __e) +#define trace_dma_value(x) \ + trace_global_value(NORMAL_LEVEL, x) +#define trace_dma_error_value(x) \ + trace_global_value(ERROR_LEVEL, x)
static struct dma_sg_elem *sg_get_elem_at(struct dma_sg_config *host_sg, int32_t *offset)