[Sound-open-firmware] [PATCH] trace: Modfiy trace event to accept uint64_t data
Xiuli Pan
xiuli.pan at linux.intel.com
Fri May 18 11:42:01 CEST 2018
From: Pan Xiuli <xiuli.pan at linux.intel.com>
In DMA trace we store the data as uint64_t, modify the function
prototype that the trace_value can get uint64_t as the src. The
added 32 bit can be used to store some channel info to help debug
with multi stream.
Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>
---
Test with:
Mininow max rt5651 and UP2 nocodec and CNL nocodec
SOF master: da9baf3f3dfef7378ee922620e3a31a04d15504c
SOF-Tool master: 86fe688a2b4f68a1ce87e0951686be12a00f1a3c
https://github.com/plbossart/sound/tree/topic/sof-v4.14:
33807ca8baa20bab2f98e9cc8a23c51a0822ad9f
---
src/include/sof/trace.h | 2 +-
src/lib/trace.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/include/sof/trace.h b/src/include/sof/trace.h
index 2fd77fe..15e620b 100644
--- a/src/include/sof/trace.h
+++ b/src/include/sof/trace.h
@@ -103,7 +103,7 @@
#define TRACEE 1
#define TRACEM 0 /* send all trace messages to mbox and local trace buffer */
-void _trace_event(uint32_t event);
+void _trace_event(uint64_t event);
void _trace_event_mbox(uint32_t event);
void _trace_event_atomic(uint32_t event);
void _trace_event_mbox_atomic(uint32_t event);
diff --git a/src/lib/trace.c b/src/lib/trace.c
index 0c37858..38def6d 100644
--- a/src/lib/trace.c
+++ b/src/lib/trace.c
@@ -46,7 +46,7 @@ struct trace {
static struct trace trace;
/* send trace events only to the local trace buffer */
-void _trace_event(uint32_t event)
+void _trace_event(uint64_t event)
{
uint64_t dt[2];
--
2.7.4
More information about the Sound-open-firmware
mailing list