You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FreeRTOS/FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace
Gaurav-Aggarwal-AWS 1e8d541ed4
Fix stack smashing in POSIX Demo (#901)
The tracelyzer code was declaring a local stack variable of type
`uint32_t` and passing it as output parameter to a function which
expected `uint64_t` on a 64-bit platform. This resulted in 4 byte memory
corruption. The problem was that the function signature uses
`TraceUnsignedBaseType_t` type for the output parameter which gets
defined to `uint32_t` on a 32-bit platform and to `uint64_t` on a 64-bit
platform, while the local stack variable was declared as `uint32_t`.
This commit changes the type of local stack variable to
`TraceUnsignedBaseType_t` to match the function parameter type.

Tracelyzer creates a task internally stack size of which is controlled
using TRC_CFG_CTRL_TASK_STACK_SIZE. It was earlier defined to 1024.
The POSIX port requires the stack size to be minimum PTHREAD_STACK_MIN.
The commit updates the TRC_CFG_CTRL_TASK_STACK_SIZE to
PTHREAD_STACK_MIN.

The demo directory contained one extra trcConfig.h and
trcKernelPortConfig.h. This commit deletes those files.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2 years ago
..
Include Percepio Trace Recorder v4.6.0 (#789) 2 years ago
config Percepio Trace Recorder v4.6.0 (#789) 2 years ago
extras/TraceRecorderInit Percepio Trace Recorder v4.6.0 (#789) 2 years ago
streamports Percepio Trace Recorder v4.6.0 (#789) 2 years ago
LICENSE.md Percepio Trace Recorder v4.6.0 (#789) 2 years ago
LICENSE.spdx Percepio Trace Recorder v4.6.0 (#789) 2 years ago
README.md Percepio Trace Recorder v4.6.0 (#789) 2 years ago
ReadMe.url Add FreeRTOS-Plus directory with new directory structure so it matches the FreeRTOS directory. 12 years ago
trcAssert.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcCounter.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcDiagnostics.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcEntryTable.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcError.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcEvent.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcEventBuffer.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcExtension.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcHardwarePort.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcHeap.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcISR.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcInternalEventBuffer.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcInterval.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcKernelPort.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcMultiCoreEventBuffer.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcObject.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcPrint.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcSnapshotRecorder.c Fix stack smashing in POSIX Demo (#901) 2 years ago
trcStackMonitor.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcStateMachine.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcStaticBuffer.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcStreamingRecorder.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcString.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcTask.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago
trcTimestamp.c Percepio Trace Recorder v4.6.0 (#789) 2 years ago

README.md

Trace Recorder source code for use with Percepio's Tracealyzer.

Read more at https://percepio.com/tracealyzer/ and https://percepio.com/gettingstarted.

Repository at https://github.com/percepio/TraceRecorderSource