[Sound-open-firmware] [PATCH] trace: Modfiy trace event to accept uint64_t data
From: Pan Xiuli xiuli.pan@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@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];
On 5/18/2018 5:42 PM, Xiuli Pan wrote:
From: Pan Xiuli xiuli.pan@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.
I am working on this. Additional 32 bit will be used to store component/widget id. Thanks.
Yan Wang
Signed-off-by: Pan Xiuli xiuli.pan@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];
participants (2)
-
Xiuli Pan
-
Yan Wang