1# SPDX-License-Identifier: Apache-2.0 2 3zephyr_sources_ifdef( 4 CONFIG_TRACING_CORE 5 tracing_buffer.c 6 tracing_core.c 7 tracing_format_common.c 8 ) 9if(CONFIG_TRACING_CORE) 10zephyr_sources_ifdef( 11 CONFIG_TRACING_SYNC 12 tracing_format_sync.c 13 ) 14 15zephyr_sources_ifdef( 16 CONFIG_TRACING_ASYNC 17 tracing_format_async.c 18 ) 19 20zephyr_sources_ifdef( 21 CONFIG_TRACING_BACKEND_USB 22 tracing_backend_usb.c 23 ) 24 25zephyr_sources_ifdef( 26 CONFIG_TRACING_BACKEND_UART 27 tracing_backend_uart.c 28 ) 29 30zephyr_sources_ifdef( 31 CONFIG_TRACING_BACKEND_POSIX 32 tracing_backend_posix.c 33 ) 34 35zephyr_sources_ifdef( 36 CONFIG_TRACING_BACKEND_RAM 37 tracing_backend_ram.c 38 ) 39 40endif() 41 42if(NOT CONFIG_PERCEPIO_TRACERECORDER AND NOT CONFIG_TRACING_CTF 43 AND NOT CONFIG_SEGGER_SYSTEMVIEW AND NOT CONFIG_TRACING_TEST 44 AND NOT CONFIG_TRACING_USER) 45 zephyr_sources(tracing_none.c) 46endif() 47 48zephyr_include_directories_ifdef( 49 CONFIG_TRACING 50 ${ZEPHYR_BASE}/kernel/include 51 ${ARCH_DIR}/${ARCH}/include 52) 53 54zephyr_include_directories_ifdef(CONFIG_TRACING include) 55 56add_subdirectory_ifdef(CONFIG_TRACING_CTF ctf) 57add_subdirectory_ifdef(CONFIG_SEGGER_SYSTEMVIEW sysview) 58add_subdirectory_ifdef(CONFIG_TRACING_TEST test) 59add_subdirectory_ifdef(CONFIG_TRACING_USER user) 60