From 9c259ff74802b2d0329bee557a66f5da824fe842 Mon Sep 17 00:00:00 2001 From: Baofeng Tian Date: Thu, 11 Jan 2024 20:50:43 +0800 Subject: [PATCH] Trace: remove trace ctx and uuid assignment for logs Test patch, will check ipc3 and ipc4 logs still correct or not, if still correct, means these part can be deleted from current logging, it is a preparation for align sof logging with zephyr logging. Signed-off-by: Baofeng Tian --- src/trace/trace.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/trace/trace.c b/src/trace/trace.c index ecf89f600db0..b14d760670cf 100644 --- a/src/trace/trace.c +++ b/src/trace/trace.c @@ -83,9 +83,9 @@ static void put_header(void *dst, const struct sof_uuid_entry *uid, struct log_entry_header header; int ret; - header.uid = (uintptr_t)uid; - header.id_0 = id_1 & TRACE_ID_MASK; - header.id_1 = id_2 & TRACE_ID_MASK; + header.uid = 0; + header.id_0 = 0; + header.id_1 = 0; header.core_id = cpu_get_id(); header.timestamp = timestamp + delta; header.log_entry_address = entry; @@ -281,11 +281,6 @@ void trace_log_filtered(bool send_atomic, const void *log_entry, const struct tr return; } -#if CONFIG_TRACE_FILTERING_VERBOSITY - if (!trace_filter_verbosity(lvl, ctx)) - return; -#endif /* CONFIG_TRACE_FILTERING_VERBOSITY */ - #if CONFIG_TRACE_FILTERING_ADAPTIVE if (!trace->user_filter_override) { const uint64_t current_ts = sof_cycle_get_64_safe();