Skip to content

Commit

Permalink
modules: Updated Percepio TraceRecorder to version 4.8.0.hotfix2
Browse files Browse the repository at this point in the history
This version introduces support for the syscalls extension,
which greatly reduces the amount of bandwidth being used
for tracing syscalls.

Signed-off-by: Aron Lander <aron.lander@percepio.se>
  • Loading branch information
aronlander-pe authored and nashif committed Aug 3, 2023
1 parent b0e9cb3 commit 6f62768
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions modules/TraceRecorder/CMakeLists.txt
Expand Up @@ -33,6 +33,8 @@ if(CONFIG_PERCEPIO_TRACERECORDER)
${TRACERECORDER_DIR}/trcString.c
${TRACERECORDER_DIR}/trcTask.c
${TRACERECORDER_DIR}/trcTimestamp.c
${TRACERECORDER_DIR}/trcDependency.c
${TRACERECORDER_DIR}/trcRunnable.c
)

if(CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RTT)
Expand Down Expand Up @@ -68,11 +70,26 @@ if(CONFIG_PERCEPIO_TRACERECORDER)
)
endif()

if (CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_ZEPHYR_SEMIHOST)
zephyr_library_sources(
${TRACERECORDER_DIR}/kernelports/Zephyr/streamports/Semihost/trcStreamPort.c
)

zephyr_include_directories(
${TRACERECORDER_DIR}/kernelports/Zephyr/streamports/Semihost/config
${TRACERECORDER_DIR}/kernelports/Zephyr/streamports/Semihost/include
)
endif()

zephyr_include_directories(
${TRACERECORDER_DIR}/kernelports/Zephyr/include
${TRACERECORDER_DIR}/kernelports/Zephyr/config
${TRACERECORDER_DIR}/kernelports/Zephyr/config/core
${TRACERECORDER_DIR}/include
)

set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND python3 ${TRACERECORDER_DIR}/kernelports/Zephyr/scripts/tz_parse_syscalls.py ${CMAKE_BINARY_DIR} ${ZEPHYR_BASE}
)

endif()
2 changes: 1 addition & 1 deletion west.yml
Expand Up @@ -321,7 +321,7 @@ manifest:
groups:
- crypto
- name: TraceRecorderSource
revision: bc839bf94904bcdb91b33760e918afbef82e3ab4
revision: 1ede7ce8e7ab226e9a84d95266241ba3f38d91d2
path: modules/debug/TraceRecorder
groups:
- debug
Expand Down

0 comments on commit 6f62768

Please sign in to comment.