Go to file
Marc Herbert d54a9281f8 logger: print a separator when the timestamp goes back in time
This makes the display of the mailbox ring buffer log much less
confusing. It should not happen with the DMA trace but will behave the
same in case something goes wrong.

Before this commit the only clue that wrapping had happened was a NaN in
the delta column (instead of the negative value).

The "other?" is because the start of the mailbox is sometimes corrupted,
or the timestamp goes sometimes back at boot for no obvious reason. In
other words this new separator is useful to highlight bugs too.

Absolute mode -e 0 with this commit:

    TIMESTAMP         DELTA C# COMPONENT          LOCATION

[22598174808] (        11) c0 ipc                  src/ipc/....
[22598174824] (        15) c0 ipc                  src/ipc/....
[22598443257] (    268433) c0 dma-trace             src/trace/....
[22598443271] (        14) c0 dma-trace             src/trace/....
[22598443286] (        14) c0 dma-trace             src/trace/....
[22598943257] (    499971) c0 dma-trace             src/trace/....

		 --- negative DELTA: wrap, IPC_TRACE, other? ---

[22430943257] (         0) c0 dma-trace             src/trace/....
[22530943257] ( 100000000) c0 dma-trace             src/trace/....
[22542943257] (  12000000) c0 dma-trace             src/trace/....
[22542943271] (        14) c0 dma-trace             src/trace/....
[22542943285] (        14) c0 dma-trace             src/trace/....

Relative mode -e 1 with this commit:

    TIMESTAMP         DELTA C# COMPONENT          LOCATION

[  3080783.6] (       11.4) c0 ipc                  src/ipc/....
[  3080799.1] (       15.5) c0 ipc                  src/ipc/....
[  3349232.5] (   268433.4) c0 dma-trace             src/trace/....
[  3349246.8] (       14.3) c0 dma-trace             src/trace/....
[  3349261.2] (       14.4) c0 dma-trace             src/trace/....
[  3849232.4] (   499971.2) c0 dma-trace             src/trace/....

		 --- negative DELTA: wrap, IPC_TRACE, other? ---

[22430943257.0] (      0.0) c0 dma-trace             src/trace/....
[100000000.0] (100000000.0) c0 dma-trace             src/trace/....
[111999999.5] ( 12000000.0) c0 dma-trace             src/trace/....
[112000013.9] (       14.4) c0 dma-trace             src/trace/....
[112000028.2] (       14.3) c0 dma-trace             src/trace/....

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2021-04-23 13:28:26 +01:00
.github checkpatch: --ignore C99_COMMENT_TOLERANCE 2021-03-31 16:26:03 +01:00
doc doxygen: codecs: exclude 3rd party codec headers from Doxygen 2021-04-10 21:53:32 +01:00
installer Revert "installer: change default destination to /lib/firmware/updates" 2021-04-14 14:59:21 +01:00
keys Move signing key pair from rimage/ up one level 2020-05-13 10:16:04 +01:00
rimage@d1f91efdc1 rimage: Update to commit d1f91efdc1 2020-12-09 11:06:31 +00:00
scripts zephyr: add a build script 2021-04-22 12:18:38 +01:00
smex smex: log versions with a dot (3.18.1) instead of a colon (3:18:1) 2021-04-13 21:26:24 +01:00
src pcm_converter: Fix architectures not supporting XT_ROUND_S 2021-04-23 14:22:34 +03:00
test cmocka: add support to build mocks on xtensa GCC 2021-04-20 15:35:18 +01:00
tools logger: print a separator when the timestamp goes back in time 2021-04-23 13:28:26 +01:00
zephyr zephyr: allow building with dynamic interrupts disabled 2021-04-22 14:04:45 +01:00
.gitignore gitignore: Add checkpatch temporary file to gitignore 2020-10-22 13:05:23 +01:00
.gitmodules .gitmodules: use a relative path 2021-04-01 13:03:01 +01:00
.travis.yml .github: replace HAVE_CONFIG KConfig hack with an override 2021-03-23 12:17:22 +00:00
CMakeLists.txt cmocka: add support to build mocks on xtensa GCC 2021-04-20 15:35:18 +01:00
CODEOWNERS codec_adapter: add mrajwa & dbaluta as code owners 2021-04-02 13:34:52 +01:00
Kconfig ipc: debug: Add KConfig to conditionally compile memory scan feature 2020-10-06 11:35:04 +01:00
LICENCE LICENSE: Add Cadence license 2021-04-12 10:22:15 +01:00
README.md .github: rename workflow from "Github Action CI" to "Github Actions" 2021-01-28 13:20:22 +00:00

README.md

Sound Open Firmware

Status

GitHub Actions Build Status Gitter chat IRC chat

Documentation

See docs

Running the tests

See unit testing documentation

Deployment

TODO: Add additional notes about how to deploy this on a live system

Contributing

See Contributing to the Project

License

This project is licensed under the BSD Clause 3 - see the LICENCE file for details