[Sound-open-firmware] [RFC PATCH v2 15/29] Change macro definition and trace calling for interrupt.h

yan.wang at linux.intel.com yan.wang at linux.intel.com
Fri May 11 08:35:57 CEST 2018


From: Yan Wang <yan.wang at linux.intel.com>

It will use IRQ trace class and global DMA trace API.

Signed-off-by: Yan Wang <yan.wang at 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/include/sof/interrupt.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/include/sof/interrupt.h b/src/include/sof/interrupt.h
index 2dc8954..a88ade3 100644
--- a/src/include/sof/interrupt.h
+++ b/src/include/sof/interrupt.h
@@ -38,8 +38,16 @@
 #include <sof/debug.h>
 #include <sof/lock.h>
 
-#define trace_irq(__e)	trace_event(TRACE_CLASS_IRQ, __e)
-#define trace_irq_error(__e)	trace_error(TRACE_CLASS_IRQ,  __e)
+#define trace_irq(__e) \
+	trace_global_event(NORMAL_LEVEL, TRACE_CLASS_IRQ, __e)
+#define tracev_irq(__e) \
+	trace_global_event(VERBOSE_LEVEL, TRACE_CLASS_IRQ, __e)
+#define trace_irq_error(__e) \
+	trace_global_event(ERROR_LEVEL, TRACE_CLASS_IRQ, __e)
+#define trace_irq_value(x) \
+	trace_global_value(NORMAL_LEVEL, x)
+#define trace_irq_error_value(x) \
+	trace_global_value(ERROR_LEVEL, x)
 
 /* child interrupt source */
 struct irq_child {
-- 
2.14.3



More information about the Sound-open-firmware mailing list