2019-04-06 15:08:09 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-02-06 17:20:20 +01:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_TRACING_CPU_STATS
|
|
|
|
cpu_stats.c
|
|
|
|
)
|
2019-10-24 17:08:21 +02:00
|
|
|
|
2020-02-06 04:59:54 +01:00
|
|
|
zephyr_sources_ifdef(
|
2020-02-06 20:05:40 +01:00
|
|
|
CONFIG_TRACING_CORE
|
2020-02-06 04:59:54 +01:00
|
|
|
tracing_buffer.c
|
|
|
|
tracing_core.c
|
|
|
|
tracing_format_common.c
|
|
|
|
)
|
2020-02-06 20:05:40 +01:00
|
|
|
if(CONFIG_TRACING_CORE)
|
2020-02-06 04:59:54 +01:00
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_TRACING_SYNC
|
|
|
|
tracing_format_sync.c
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_TRACING_ASYNC
|
|
|
|
tracing_format_async.c
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_TRACING_BACKEND_USB
|
|
|
|
tracing_backend_usb.c
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_TRACING_BACKEND_UART
|
|
|
|
tracing_backend_uart.c
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_sources_ifdef(
|
|
|
|
CONFIG_TRACING_BACKEND_POSIX
|
|
|
|
tracing_backend_posix.c
|
|
|
|
)
|
2020-02-06 20:05:40 +01:00
|
|
|
endif()
|
2020-02-06 04:59:54 +01:00
|
|
|
|
|
|
|
zephyr_include_directories_ifdef(
|
|
|
|
CONFIG_TRACING
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
|
|
|
${ZEPHYR_BASE}/arch/${ARCH}/include
|
|
|
|
)
|
|
|
|
|
2019-10-24 17:08:21 +02:00
|
|
|
zephyr_include_directories_ifdef(CONFIG_TRACING include)
|
2019-01-30 08:19:24 +01:00
|
|
|
|
|
|
|
add_subdirectory_ifdef(CONFIG_TRACING_CTF ctf)
|
2020-02-06 17:25:00 +01:00
|
|
|
|
|
|
|
add_subdirectory_ifdef(CONFIG_SEGGER_SYSTEMVIEW sysview)
|