Percepio Trace Recorder
v4.6.6
|
Functions | |
traceResult | xTraceInternalEventBufferPush (void *pvData, uint32_t uiSize, int32_t *piBytesWritten) |
Pushes data to the internal trace event buffer. More... | |
traceResult | xTraceInternalEventBufferTransfer (int32_t *piBytesWritten) |
Transfers all internal trace event buffer data using the function xTraceStreamPortWriteData(...) as defined in trcStreamPort.h. More... | |
traceResult | xTraceInternalEventBufferClear (void) |
Clears all trace events in the internal trace event buffer. More... | |
traceResult xTraceInternalEventBufferClear | ( | void | ) |
Clears all trace events in the internal trace event buffer.
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
traceResult xTraceInternalEventBufferPush | ( | void * | pvData, |
uint32_t | uiSize, | ||
int32_t * | piBytesWritten | ||
) |
Pushes data to the internal trace event buffer.
[in] | pvData | Pointer to data |
[in] | uiSize | Size of data |
[out] | piBytesWritten | Bytes written. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
traceResult xTraceInternalEventBufferTransfer | ( | int32_t * | piBytesWritten | ) |
Transfers all internal trace event buffer data using the function xTraceStreamPortWriteData(...) as defined in trcStreamPort.h.
This function is intended to be called by the periodic TzCtrl task with a suitable delay (e.g. 10-100 ms).
In case of errors from the streaming interface, it registers a warning (TRC_WARNING_STREAM_PORT_WRITE) provided by xTraceErrorGetLast().
[out] | piBytesWritten | Bytes written. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |