|
Percepio Trace Recorder v4.11.0
|
Data Structures | |
| struct | TraceMultiCoreEventBuffer |
| Trace Multi-Core Event Buffer Structure. More... | |
Macros | |
| #define | xTraceMultiCoreEventBufferAlloc(pxTraceMultiCoreEventBuffer, uiSize, ppvData) |
| Allocates a data slot directly from the event buffer. | |
| #define | xTraceMultiCoreEventBufferAllocCommit(pxTraceMultiCoreEventBuffer, pvData, uiSize, piBytesWritten) |
| Commits the last allocated block to the event buffer. | |
| #define | xTraceMultiCoreEventBufferPush(pxTraceMultiCoreEventBuffer, pvData, uiSize, piBytesWritten) |
| Pushes data into multi-core trace event buffer. | |
Typedefs | |
| typedef struct TraceMultiCoreEventBuffer | TraceMultiCoreEventBuffer_t |
| Trace Multi-Core Event Buffer Structure. | |
Functions | |
| traceResult | xTraceMultiCoreEventBufferTransferAll (const TraceMultiCoreEventBuffer_t *const pxTraceMultiCoreEventBuffer, int32_t *piBytesWritten) |
| Transfer multi-core trace event buffer data through streamport. | |
| traceResult | xTraceMultiCoreEventBufferTransferChunk (const TraceMultiCoreEventBuffer_t *const pxTraceMultiCoreEventBuffer, uint32_t uiChunkSize, int32_t *piBytesWritten) |
| Transfer multi-core trace event buffer data through streamport. | |
| traceResult | xTraceMultiCoreEventBufferClear (const TraceMultiCoreEventBuffer_t *const pxTraceMultiCoreEventBuffer) |
| Clears all data from event buffer. | |
| #define xTraceMultiCoreEventBufferAlloc | ( | pxTraceMultiCoreEventBuffer, | |
| uiSize, | |||
| ppvData ) |
Allocates a data slot directly from the event buffer.
| [in] | pxTraceEventBuffer | Pointer to initialized multi-core trace event buffer. |
| [in] | uiSize | Allocation size |
| [out] | ppvData | Pointer that will hold the area from the buffer. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceMultiCoreEventBufferAllocCommit | ( | pxTraceMultiCoreEventBuffer, | |
| pvData, | |||
| uiSize, | |||
| piBytesWritten ) |
Commits the last allocated block to the event buffer.
| [in] | pxTraceEventBuffer | Pointer to initialized multi-core trace event buffer. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| #define xTraceMultiCoreEventBufferPush | ( | pxTraceMultiCoreEventBuffer, | |
| pvData, | |||
| uiSize, | |||
| piBytesWritten ) |
Pushes data into multi-core trace event buffer.
This routine attempts to push data into the multi-core trace event buffer. Selection of which core the data is pushed for is managed automatically through the TRC_CFG_GET_CURRENT_CORE macro which is defined on an RTOS basis.
| [in] | pxTraceMultiCoreEventBuffer | Pointer to initialized multi-core event buffer. |
| [in] | pvData | Pointer to data should be pushed into multi-core event buffer. |
| [in] | uiSize | Size of data that should be pushed into multi-core trace event buffer. |
| [out] | piBytesWritten | Pointer to variable which the routine will write the number of bytes that was pushed into the multi-core trace event buffer. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| traceResult xTraceMultiCoreEventBufferClear | ( | const TraceMultiCoreEventBuffer_t *const | pxTraceMultiCoreEventBuffer | ) |
Clears all data from event buffer.
| [in] | pxTraceMultiCoreEventBuffer | Pointer to initialized multi-core trace event buffer. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| traceResult xTraceMultiCoreEventBufferTransferAll | ( | const TraceMultiCoreEventBuffer_t *const | pxTraceMultiCoreEventBuffer, |
| int32_t * | piBytesWritten ) |
Transfer multi-core trace event buffer data through streamport.
This routine will attempt to transfer all existing data in the multi-core trace event buffer through the streamport. New data pushed to the trace event buffer during the execution of this routine will not be transfered to
| [in] | pxTraceMultiCoreEventBuffer | Pointer to initialized multi-core event buffer. |
| [out] | piBytesWritten | Pointer to variable which the routine will write the number of bytes that was pushed into the multi-core trace event buffer. |
| TRC_FAIL | Failure |
| TRC_SUCCESS | Success |
| traceResult xTraceMultiCoreEventBufferTransferChunk | ( | const TraceMultiCoreEventBuffer_t *const | pxTraceMultiCoreEventBuffer, |
| uint32_t | uiChunkSize, | ||
| int32_t * | piBytesWritten ) |
Transfer multi-core trace event buffer data through streamport.
This routine will attempt to transfer a chunk of stored event data in the multi-core trace event buffer. Note that the chunk size is on a per-core basis with each core event buffer attempting to push up to uiChunkSize of bytes.
| [in] | pxTraceMultiCoreEventBuffer | Pointer to initialized multi-core event buffer. |
| [in] | uiChunkSize | Number of bytes to attempt to transfer per core. |
| [out] | piBytesWritten | Pointer to variable which the routine will write the number of bytes that was pushed into the multi-core trace event buffer. |