Skip to content

Commit

Permalink
Trace: remove trace ctx and uuid assignment for logs
Browse files Browse the repository at this point in the history
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 <baofeng.tian@intel.com>
  • Loading branch information
btian1 committed Feb 1, 2024
1 parent 1cc7a4c commit 9c259ff
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 9c259ff

Please sign in to comment.