Skip to content

Commit e9b371f

Browse files
committed
lib.sh: switch to use cavstool to dump the etrace
we will use the Zephyr logging tool to dump the etrace form the shared memory for all Zephyr platforms. Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
1 parent 6261565 commit e9b371f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

case-lib/lib.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,17 @@ func_lib_start_log_collect()
352352

353353
if [ "X$is_etrace" == "X0" ];then
354354
logfile=$LOG_ROOT/slogger.txt
355+
356+
# start cavstool in the background to collect the etrace.
357+
# Since cavstool can follow a ring buffer in etrace, so it should be
358+
# started at the start of the test and we would not miss any Zephyr logs.
359+
is_zephyr && func_cavstool_etrace_collect
355360
else
361+
# cavstool starts at the beginning of the test, we don't need to start
362+
# it again. We only need to start sof-logger to collect the etrace logs
363+
# only for the non-zephyr platforms at the end of a test.
364+
is_zephyr && return 0
365+
356366
logfile=$LOG_ROOT/etrace.txt
357367
logopt=""
358368
fi

0 commit comments

Comments
 (0)