Skip to content

Commit

Permalink
check-sof-logger: nudge the DMA trace when it's empty
Browse files Browse the repository at this point in the history
See bug thesofproject/sof#4333

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Jun 18, 2021
1 parent 08248bb commit 24bbd6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test-case/check-sof-logger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ print_logs_exit()
# goes wrong and we don't make it until the end.
test -z "$errmsg" || dloge "$errmsg"

# If the DMA trace is empty (ignoring the first header line) then
# try to nudge it a bit. See bug
# https://github.com/thesofproject/sof/issues/4333
tail -n +2 "${LOG_ROOT}"/logger.data.txt | grep -q . || (
dloge "Empty or stuck DMA trace? Let's try to nudge it:"
set -x
timeout -k 5 2 sudo "$loggerBin" -l "${ldcFile}" -F info=pga -t || true
)

local bname
for ftype in data etrace error etrace_stderr; do
printf '\n\n'
Expand Down

0 comments on commit 24bbd6c

Please sign in to comment.