Skip to content

Commit

Permalink
check-sof-logger: add MIPI Sys-T Catalog support
Browse files Browse the repository at this point in the history
Add support for SOF firmware builds with

CONFIG_LOG_MIPI_SYST_ENABLE=y
CONFIG_LOG_MIPI_SYST_USE_CATALOG=y

Signed-off-by: Kai Vehmanen <[email protected]>
  • Loading branch information
kv2019i committed Sep 19, 2023
1 parent c014305 commit e2ef201
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test-case/check-sof-logger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,22 @@ main()
# then for the 'FW ABI' banner
for f in "${stdout_files[@]}"; do
local tracef="$LOG_ROOT/logger.$f.txt"
local syst_prefix="SYS-T RAW DATA:"
test -e "$tracef" || die "$tracef" not found

local tool_banner boot_banner
if is_ipc4 && is_firmware_file_zephyr && [ "$f" = 'etrace' ]; then
# mtrace
# No specific tool banner, just check some logs are visible.
tool_banner=' .*<.*>'
boot_banner='FW ABI.*tag.*zephyr'
if head -n 5 "$tracef" | grep -q "$syst_prefix" ; then
# MIPI Sys-T Catalog format, just search for Sys-T prefix
# that is available without decoding tools and collateral
tool_banner=$syst_prefix
boot_banner=$syst_prefix
else
# ascii mtrace, no specfic tool banner, just check for some logs
tool_banner=' .*<.*>'
boot_banner='FW ABI.*tag.*zephyr'
fi
elif is_firmware_file_zephyr && [ "$f" = 'etrace' ]; then
# cavstool
tool_banner=':cavs-fw:'
Expand Down

0 comments on commit e2ef201

Please sign in to comment.