forked from FreeRTOS/FreeRTOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 26 additions & 26 deletions
52
...Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix/Trace_Recorder_Configuration/trcStreamPortConfig.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
/* | ||
* Trace Recorder for Tracealyzer v4.8.1 | ||
* Copyright 2023 Percepio AB | ||
* www.percepio.com | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Trace Recorder for Tracealyzer v4.8.1 | ||
* Copyright 2023 Percepio AB | ||
* www.percepio.com | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The configuration for trace streaming ("stream ports"). | ||
*/ | ||
*/ | ||
|
||
#ifndef TRC_STREAM_PORT_CONFIG_H | ||
#define TRC_STREAM_PORT_CONFIG_H | ||
#define TRC_STREAM_PORT_CONFIG_H | ||
|
||
#if (TRC_USE_TRACEALYZER_RECORDER == 1) | ||
#if ( TRC_USE_TRACEALYZER_RECORDER == 1 ) | ||
|
||
#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING) | ||
#if ( TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING ) | ||
|
||
#include <trcTypes.h> | ||
#include <trcTypes.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* Type flags */ | ||
#define TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL (0U) | ||
#define TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL (1U) | ||
#define TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL ( 0U ) | ||
#define TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL ( 1U ) | ||
|
||
/** | ||
* @def TRC_CFG_STREAM_PORT_BUFFER_SIZE | ||
* | ||
* | ||
* @brief Defines the size of the ring buffer use for storing trace events. | ||
*/ | ||
#define TRC_CFG_STREAM_PORT_BUFFER_SIZE 10240 | ||
#define TRC_CFG_STREAM_PORT_BUFFER_SIZE 10240 | ||
|
||
/** | ||
* @def TRC_CFG_STREAM_PORT_BUFFER_MODE | ||
* | ||
* | ||
* @brief Configures the behavior of the ring buffer when full. | ||
* | ||
* | ||
* With TRC_CFG_STREAM_PORT_MODE set to TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL, the | ||
* events are stored in a ring buffer, i.e., where the oldest events are | ||
* overwritten when the buffer becomes full. This allows you to get the last | ||
* events leading up to an interesting state, e.g., an error, without having | ||
* to store the whole run since startup. | ||
* | ||
* | ||
* When TRC_CFG_STREAM_PORT_MODE is TRC_STREAM_PORT_RINGBUFFER_MODE_STOP_WHEN_FULL, the | ||
* recording is stopped when the buffer becomes full. This is useful for | ||
* recording events following a specific state, e.g., the startup sequence. | ||
*/ | ||
#define TRC_CFG_STREAM_PORT_RINGBUFFER_MODE TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL | ||
#define TRC_CFG_STREAM_PORT_RINGBUFFER_MODE TRC_STREAM_PORT_RINGBUFFER_MODE_OVERWRITE_WHEN_FULL | ||
|
||
#ifdef __cplusplus | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif | ||
|
||
#endif /*(TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)*/ | ||
#endif /*(TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)*/ | ||
|
||
#endif /*(TRC_USE_TRACEALYZER_RECORDER == 1)*/ | ||
#endif /*(TRC_USE_TRACEALYZER_RECORDER == 1)*/ | ||
|
||
#endif /* TRC_STREAM_PORT_CONFIG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters