mirror of https://github.com/thesofproject/sof.git
debugability: Restore error traces always using mbox.
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
This commit is contained in:
parent
1024e946a4
commit
b0150764dc
|
@ -180,10 +180,10 @@ void trace_init(struct sof *sof);
|
||||||
|
|
||||||
/* error tracing */
|
/* error tracing */
|
||||||
#if TRACEE
|
#if TRACEE
|
||||||
#define trace_error(__c, __e, ...) \
|
#define trace_error(__c, __e, ...) _log_message(_mbox, _atomic, \
|
||||||
_log_message(,, LOG_LEVEL_CRITICAL, __c, __e, ##__VA_ARGS__)
|
LOG_LEVEL_CRITICAL, __c, __e, ##__VA_ARGS__)
|
||||||
#define trace_error_atomic(__c, __e, ...) \
|
#define trace_error_atomic(__c, __e, ...) \
|
||||||
_log_message(, _atomic, LOG_LEVEL_CRITICAL, __c, __e, ##__VA_ARGS__)
|
trace_error(__c, __e, ##__VA_ARGS__)
|
||||||
/* write back error value to mbox */
|
/* write back error value to mbox */
|
||||||
#define trace_error_value(x) \
|
#define trace_error_value(x) \
|
||||||
trace_error(0, "value %u", x)
|
trace_error(0, "value %u", x)
|
||||||
|
|
|
@ -45,6 +45,17 @@ void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||||
(void)param;
|
(void)param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic0(uint32_t log_entry)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic1(uint32_t log_entry, uint32_t param)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
(void)param;
|
||||||
|
}
|
||||||
|
|
||||||
void *rzalloc(int zone, uint32_t caps, size_t bytes)
|
void *rzalloc(int zone, uint32_t caps, size_t bytes)
|
||||||
{
|
{
|
||||||
(void)zone;
|
(void)zone;
|
||||||
|
|
|
@ -45,6 +45,17 @@ void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||||
(void)param;
|
(void)param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic0(uint32_t log_entry)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic1(uint32_t log_entry, uint32_t param)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
(void)param;
|
||||||
|
}
|
||||||
|
|
||||||
void *rzalloc(int zone, uint32_t caps, size_t bytes)
|
void *rzalloc(int zone, uint32_t caps, size_t bytes)
|
||||||
{
|
{
|
||||||
(void)zone;
|
(void)zone;
|
||||||
|
|
|
@ -49,6 +49,17 @@ void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||||
(void)param;
|
(void)param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic0(uint32_t log_entry)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic1(uint32_t log_entry, uint32_t param)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
(void)param;
|
||||||
|
}
|
||||||
|
|
||||||
void *rballoc(int zone, uint32_t caps, size_t bytes)
|
void *rballoc(int zone, uint32_t caps, size_t bytes)
|
||||||
{
|
{
|
||||||
(void)zone;
|
(void)zone;
|
||||||
|
|
|
@ -92,6 +92,17 @@ void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||||
(void)param;
|
(void)param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic0(uint32_t log_entry)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic1(uint32_t log_entry, uint32_t param)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
(void)param;
|
||||||
|
}
|
||||||
|
|
||||||
int arch_cpu_is_core_enabled(int id)
|
int arch_cpu_is_core_enabled(int id)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -55,6 +55,17 @@ void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||||
(void)param;
|
(void)param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic0(uint32_t log_entry)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
void _trace_event_mbox_atomic1(uint32_t log_entry, uint32_t param)
|
||||||
|
{
|
||||||
|
(void)log_entry;
|
||||||
|
(void)param;
|
||||||
|
}
|
||||||
|
|
||||||
void trace_flush(void)
|
void trace_flush(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue