Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/include/sof/trace/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ struct tr_ctx {
_TRACE_INV_ID, _TRACE_INV_ID, \
fmt, ##__VA_ARGS__)

#if CONFIG_TRACE

/** Direct, low-level access to mbox / shared memory logging when DMA
* tracing is either not initialized yet or disabled or found broken for
* any reason.
Expand Down Expand Up @@ -440,4 +442,12 @@ void mtrace_dict_entry(uint32_t log_entry_pointer, int n_args, ...);
/** Posts a fully prepared log header + log entry */
void mtrace_event(const char *complete_packet, uint32_t length);

#else

static inline void mtrace_printf(int log_level, const char *format_str, ...)
{
};

#endif /* CONFIG_TRACE */

#endif /* __SOF_TRACE_TRACE_H__ */