From: Yan Wang yan.wang@linux.intel.com
It will use SA 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/agent.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/lib/agent.c b/src/lib/agent.c index b672f23..b1a4366 100644 --- a/src/lib/agent.c +++ b/src/lib/agent.c @@ -45,8 +45,16 @@ #include <platform/platform.h> #include <platform/clk.h>
-#define trace_sa(__e) trace_event_atomic(TRACE_CLASS_SA, __e) -#define trace_sa_value(__e) trace_value_atomic(__e) +#define trace_sa(__e) \ + trace_global_event(NORMAL_LEVEL, TRACE_CLASS_SA, __e) +#define tracev_sa(__e) \ + trace_global_event(VERBOSE_LEVEL, TRACE_CLASS_SA, __e) +#define trace_sa_error(__e) \ + trace_global_event(ERROR_LEVEL, TRACE_CLASS_SA, __e) +#define trace_sa_value(x) \ + trace_global_value(NORMAL_LEVEL, x) +#define trace_sa_error_value(x) \ + trace_global_value(ERROR_LEVEL, x)
/* * Notify the SA that we are about to enter idle state (WFI).