tracing: add RAM backend

If Zephyr is running on a coprocessor we might lack I/O
such as uart or usb to output tracing datas but we might
have gigabytes of RAM available.

This patch allows to output trace datas to a ram buffer, which then
may be retrieved using gdb.

e.g:
(gdb) dump binary memory channel0_0 <ram_tracing_start> \
<ram_tracing_end>

Signed-off-by: Julien Massot <julien.massot@iot.bzh>
This commit is contained in:
Julien Massot 2021-02-26 09:22:16 +01:00 committed by Anas Nashif
commit 80402f7f8b
4 changed files with 68 additions and 0 deletions

View file

@ -36,6 +36,12 @@ zephyr_sources_ifdef(
CONFIG_TRACING_BACKEND_POSIX
tracing_backend_posix.c
)
zephyr_sources_ifdef(
CONFIG_TRACING_BACKEND_RAM
tracing_backend_ram.c
)
endif()
zephyr_include_directories_ifdef(