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
20 changes: 19 additions & 1 deletion case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,24 @@ find_ldc_file()
}

SOF_LOG_COLLECT=0
# This function starts a logger in the background using '&'
#
# 0. Without any argument is it used to read the DMA trace
# continuously from /sys/kernel/debug/sof/trace.
#
# 1. It is also invoked at the end of a test with an argument other than
# '0' for a one-shot collection of the shared memory 'etrace' in the
# same directory. In that second usage, the caller is expected to sleep
# a little bit while the collection happens in the "pseudo-background".
#
# Note the sof-logger is not able to "stream" logs from the 'etrace'
# ring buffer (nor from any ring buffer), it can only take a snapshot of
# that ring buffer. For the DMA trace, the Linux kernel implements the
# streaming feature. See
# https://github.com/thesofproject/linux/issues/3275 for more info.
#
# Zephyr's cavstool.py implements streaming and is able to read
# continously from the etrace ring buffer.
func_lib_start_log_collect()
{
local is_etrace=${1:-0} ldcFile
Expand Down Expand Up @@ -474,7 +492,7 @@ ipc4_used()
# If the value of file ipc_type is:
# 0: DUT runs IPC3 mode, ipc_used return 1(false)
# 1: DUT runs IPC4 mode, ipc4_used return 0(true)
[ $ipc_type -eq 1 ] || {
[ "$ipc_type" -eq 1 ] || {
return 1
}
return 0
Expand Down