# Example prj.conf for using Percepio TraceRecorder with Zephyr # # This example provides snapshot tracing, but can be modified for other setups. # # Important notes before use: # # * In Tracealyzer, open File -> Settings -> Project Settings -> Definition File Paths # and add the path to your Zephyr build folder (containing syscalls-v.xml) # # * A full rebuild (--pristine) is recommended after enabling TraceRecorder, if you # have changed the tracing settings, or if Zephyr has been updated. # REQUIRED SETTINGS # Ensure you have the following in your prj.conf. # Master switch for Zephyr tracing. CONFIG_TRACING=y # Use Percepio TraceRecorder as tracing backend CONFIG_PERCEPIO_TRACERECORDER=y # Ensure the TraceRecorder control task has sufficient stack CONFIG_PERCEPIO_TRC_CFG_CTRL_TASK_STACK_SIZE=1024 # Use the RingBuffer streamport (tracing to RAM buffer, for snapshots) CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RINGBUFFER=y # Or select another option: # CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RTT=y # CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_ITM=y # CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_FILE=y # If you want to stream the trace data via SEGGER J-Link (RTT), please refer # to our guide at https://percepio.com/troubleshoot-j-link-rtt # RECOMMENDED SETTINGS # We recommend to disable the "Syscall" event category. # This is kind of a "catch-all" for events lacking bespoke # instrumentation. Kernel events like mutex and semaphore # events are still recorded. CONFIG_TRACING_SYSCALL=n # Disables "polling" events, sometimes frequent and costly. CONFIG_TRACING_POLLING=n # Sets the size of the RingBuffer trace buffer (in bytes) CONFIG_PERCEPIO_TRC_CFG_STREAM_PORT_RINGBUFFER_SIZE=4096