1# Copyright (c) 2021 Percepio AB 2# SPDX-License-Identifier: Apache-2.0 3 4menu "Ring Buffer Config" 5config PERCEPIO_TRC_CFG_STREAM_PORT_RINGBUFFER_SIZE 6 int "Buffer size" 7 default 5000 8 range 0 10485760 9 help 10 Defines the size of the ring buffer use for storing trace events. 11 12choice PERCEPIO_TRC_CFG_STREAM_PORT_RINGBUFFER_MODE 13 prompt "Ring Buffer Mode" 14 default PERCEPIO_TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL 15 help 16 With PERCEPIO_TRC_CFG_STREAM_PORT_RINGBUFFER_MODE set to PERCEPIO_TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL, the 17 events are stored in a ring buffer, i.e., where the oldest events are 18 overwritten when the buffer becomes full. This allows you to get the last 19 events leading up to an interesting state, e.g., an error, without having 20 to store the whole run since startup. 21 22 When PERCEPIO_TRC_CFG_STREAM_PORT_RINGBUFFER_MODE is PERCEPIO_TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL, the 23 recording is stopped when the buffer becomes full. This is useful for 24 recording events following a specific state, e.g., the startup sequence. 25 26config PERCEPIO_TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL 27 bool "Overwrite when full" 28 29config PERCEPIO_TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL 30 bool "Stop when full" 31endchoice 32endmenu # "Ring Buffer Config" 33