Skip to content

[BUG] weird logs in check-sof-logger.sh #709

@plbossart

Description

@plbossart

Describe the bug

Tests on APL_NOCODEC show this:

+ /root/sof-test/test-case/check-sof-logger.sh


2021-06-16 19:30:47 UTC Sub-Test: [INFO] ::END data


2021-06-16 19:30:47 UTC Sub-Test: [INFO] Log etrace BEG::
 TIMESTAMP      (us)           DELTA  C# COMPONENT          LOCATION                      CONTENT	ktime=49.685s  @  2021-06-16 14:30:47 -0500 CDT
[    22776253.105] (           0.000) c0 dma-trace             src/trace/dma-trace.c:343  ERROR FW ABI 0x3012001 DBG ABI 0x5003000 tag v1.8-rc1-209-g444f9a2a5969 src hash 0xb7b0cb60 (ldc hash 0xb7b0cb60)

		 --- negative DELTA = -17538225.761 us: wrap, IPC_TRACE, other? ---

[     5238027.344] (           0.000) c0 wait                         src/lib/wait.c:46   ERROR poll timeout reg 32840 mask 63 val 0 us 937
Skipped 8108 bytes after the last statement.
2021-06-16 19:30:47 UTC Sub-Test: [INFO] ::END etrace


2021-06-16 19:30:47 UTC Sub-Test: [INFO] Log error BEG::
2021-06-16 19:30:47 UTC Sub-Test: [INFO] ::END error


2021-06-16 19:30:47 UTC Sub-Test: [INFO] Log etrace_stderr BEG::
2021-06-16 19:30:47 UTC Sub-Test: [INFO] ::END etrace_stderr
2021-06-16 19:30:47 UTC Sub-Test: [INFO] Test Result: PASS!

it's rather unclear what all these BEG:: and ::END things are, and why a negative timing is a PASS.

To Reproduce

root@plb-UP-APL01:~# TPLG=/lib/firmware/intel/sof-tgpl/sof-apl-nocodec.tplg ~/sof-test/test-case/run-all-tests.sh -l1

Expected behavior

human-readable logs and clear pass/fail indications

Detail Info

  1. Branch name and commit hash of the 3 repositories: sof (firmware/topology), linux (kernel driver) and sof-test (test case)
    • Kernel: 56ab165beb0d744624fd2ee47c75b40ae13d24cd
    • SOF: 444f9a2a596992115a67e0f727a49388db38c237
    • SOF-TEST: d73423f

Metadata

Metadata

Labels

area:logsLog and results collection, storage, etc.type:bugSomething doesn't work as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions