Trace: send trace errors as normal logs to dma trace buffer if TRACEE disabled

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
Adrian Bonislawski 2019-03-14 13:40:15 +01:00 committed by Liam Girdwood
parent eb8be5be38
commit 078ead9c65
2 changed files with 7 additions and 8 deletions

View File

@ -296,13 +296,12 @@ void trace_init(struct sof *sof);
#define trace_error_value(x) trace_error(0, "value %u", x) #define trace_error_value(x) trace_error(0, "value %u", x)
#define trace_error_value_atomic(...) trace_error_value(__VA_ARGS__) #define trace_error_value_atomic(...) trace_error_value(__VA_ARGS__)
#else #else
#define _trace_error_with_ids(...) #define trace_error(...) trace_event(__VA_ARGS__)
#define trace_error(...) #define trace_error_with_ids(...) trace_event_with_ids(__VA_ARGS__)
#define trace_error_with_ids(...) #define trace_error_atomic(...) trace_event_atomic(__VA_ARGS__)
#define trace_error_atomic(...) #define trace_error_atomic_with_ids(...) trace_event_atomic_with_ids(__VA_ARGS__)
#define trace_error_atomic_with_ids(...) #define trace_error_value(x) trace_value(x)
#define trace_error_value(x) #define trace_error_value_atomic(x) trace_value_atomic(x)
#define trace_error_value_atomic(x)
#endif #endif
#ifndef CONFIG_HOST #ifndef CONFIG_HOST

View File

@ -409,7 +409,7 @@ static void dtrace_add_event(const char *e, uint32_t length)
* if any dropped entries have appeared and there * if any dropped entries have appeared and there
* is not any overflow, their amount will be logged * is not any overflow, their amount will be logged
*/ */
#if TRACEE && TRACE #if TRACE
uint32_t tmp_dropped_entries = dropped_entries; uint32_t tmp_dropped_entries = dropped_entries;
#endif #endif
dropped_entries = 0; dropped_entries = 0;