/percepio-3.5.0/TraceRecorder/ |
D | trcEventBuffer.c | 18 uint8_t* puiBuffer, uint32_t uiSize) in xTraceEventBufferInitialize() argument 27 TRC_ASSERT(uiSize != 0u); in xTraceEventBufferInitialize() 32 pxTraceEventBuffer->uiSize = uiSize; in xTraceEventBufferInitialize() 33 pxTraceEventBuffer->uiFree = uiSize; in xTraceEventBufferInitialize() 63 …xTraceEventBuffer->uiTail = (pxTraceEventBuffer->uiTail + uiFreeSize) % pxTraceEventBuffer->uiSize; in prvTraceEventBufferPop() 76 if (pxTraceEventBuffer->uiTail >= (pxTraceEventBuffer->uiSize - pxTraceEventBuffer->uiSlack)) in prvTraceEventBufferAllocPop() 87 …xTraceEventBuffer->uiTail = (pxTraceEventBuffer->uiTail + uiFreeSize) % pxTraceEventBuffer->uiSize; in prvTraceEventBufferAllocPop() 93 traceResult xTraceEventBufferAlloc(TraceEventBuffer_t *pxTraceEventBuffer, uint32_t uiSize, void **… in xTraceEventBufferAlloc() argument 106 uiBufferSize = pxTraceEventBuffer->uiSize; in xTraceEventBufferAlloc() 112 TRC_ASSERT(uiSize <= uiBufferSize); in xTraceEventBufferAlloc() [all …]
|
D | trcInternalEventBuffer.c | 25 traceResult xTraceInternalEventBufferInitialize(uint8_t* puiBuffer, uint32_t uiSize) in xTraceInternalEventBufferInitialize() argument 29 TRC_ASSERT(uiSize > sizeof(TraceMultiCoreEventBuffer_t)); in xTraceInternalEventBufferInitialize() 37 …&puiBuffer[sizeof(TraceMultiCoreEventBuffer_t)], uiSize - sizeof(TraceMultiCoreEventBuffer_t)) == … in xTraceInternalEventBufferInitialize() 47 traceResult xTraceInternalEventBufferAlloc(uint32_t uiSize, void **ppvData) in xTraceInternalEventBufferAlloc() argument 52 return xTraceMultiCoreEventBufferAlloc(pxInternalEventBuffer, uiSize, ppvData); in xTraceInternalEventBufferAlloc() 55 traceResult xTraceInternalEventBufferAllocCommit(void *pvData, uint32_t uiSize, int32_t *piBytesWri… in xTraceInternalEventBufferAllocCommit() argument 62 …return xTraceMultiCoreEventBufferAllocCommit(pxInternalEventBuffer, pvData, uiSize, piBytesWritten… in xTraceInternalEventBufferAllocCommit() 65 traceResult xTraceInternalEventBufferPush(void *pvData, uint32_t uiSize, int32_t *piBytesWritten) in xTraceInternalEventBufferPush() argument 70 return xTraceMultiCoreEventBufferPush(pxInternalEventBuffer, pvData, uiSize, piBytesWritten); in xTraceInternalEventBufferPush()
|
D | trcMultiCoreEventBuffer.c | 18 uint8_t* puiBuffer, uint32_t uiSize) in xTraceMultiCoreEventBufferInitialize() argument 29 …uiBufferSizePerCore = ((uiSize / (uint32_t)(TRC_CFG_CORE_COUNT)) / sizeof(TraceUnsignedBaseType_t)… in xTraceMultiCoreEventBufferInitialize() 55 …BufferAlloc(const TraceMultiCoreEventBuffer_t * const pxTraceMultiCoreEventBuffer, uint32_t uiSize, in xTraceMultiCoreEventBufferAlloc() argument 63 …ufferAlloc(pxTraceMultiCoreEventBuffer->xEventBuffer[TRC_CFG_GET_CURRENT_CORE()], uiSize, ppvData); in xTraceMultiCoreEventBufferAlloc() 67 …ventBuffer_t * const pxTraceMultiCoreEventBuffer, void *pvData, uint32_t uiSize, int32_t *piBytesW… in xTraceMultiCoreEventBufferAllocCommit() argument 74 …aceMultiCoreEventBuffer->xEventBuffer[TRC_CFG_GET_CURRENT_CORE()], pvData, uiSize, piBytesWritten); in xTraceMultiCoreEventBufferAllocCommit() 78 void* pvData, uint32_t uiSize, int32_t* piBytesWritten) in xTraceMultiCoreEventBufferPush() argument 85 …aceMultiCoreEventBuffer->xEventBuffer[TRC_CFG_GET_CURRENT_CORE()], pvData, uiSize, piBytesWritten); in xTraceMultiCoreEventBufferPush()
|
D | trcEvent.c | 332 traceResult xTraceEventBeginRawOffline(uint32_t uiSize, TraceEventHandle_t* pxEventHandle) in xTraceEventBeginRawOffline() argument 366 …VERIFY_EVENT_SIZE(uiSize); /*cstat !MISRAC2012-Rule-17.8 Suppress modified function parameter chec… in xTraceEventBeginRawOffline() 368 …pxEventData->size = ((uiSize + (sizeof(TraceUnsignedBaseType_t) - 1u)) / sizeof(TraceUnsignedBaseT… in xTraceEventBeginRawOffline() 384 traceResult xTraceEventBeginRawOfflineBlocking(uint32_t uiSize, TraceEventHandle_t* pxEventHandle) in xTraceEventBeginRawOfflineBlocking() argument 419 …VERIFY_EVENT_SIZE(uiSize); /*cstat !MISRAC2012-Rule-17.8 Suppress modified function parameter chec… in xTraceEventBeginRawOfflineBlocking() 421 …pxEventData->size = ((uiSize + (sizeof(TraceUnsignedBaseType_t) - 1u)) / sizeof(TraceUnsignedBaseT… in xTraceEventBeginRawOfflineBlocking() 552 …ventGetRawData(TraceEventHandle_t xEventHandle, uint32_t uiOffset, uint32_t uiSize, void** ppvData) in xTraceEventGetRawData() argument 564 TRC_ASSERT((uiOffset + uiSize) <= ((TraceEventData_t*)xEventHandle)->size); in xTraceEventGetRawData() 566 return TRC_EVENT_GET_RAW_DATA(xEventHandle, uiOffset, uiSize, ppvData); in xTraceEventGetRawData() 569 …tPayload(const TraceEventHandle_t xEventHandle, uint32_t uiOffset, uint32_t uiSize, void** ppvData) in xTraceEventGetPayload() argument [all …]
|
D | trcPrint.c | 239 …const uint32_t uiSize = sizeof(void*) + (uiArgs * sizeof(TraceUnsignedBaseType_t)) + uiLength; /* … in prvTraceVPrintF() local 256 if (xTraceEventBegin(uiEventCode, uiSize , &xEventHandle) == TRC_FAIL) in prvTraceVPrintF()
|
/percepio-3.5.0/TraceRecorder/streamports/TCPIP/include/ |
D | trcStreamPort.h | 47 int32_t prvTraceTcpWrite(void* pvData, uint32_t uiSize, int32_t* piBytesWritten); 49 int32_t prvTraceTcpRead(void* pvData, uint32_t uiSize, int32_t* piBytesRead); 64 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 66 …#define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceInternalEventBufferAlloc(… argument 69 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 94 #define xTraceStreamPortWriteData(pvData, uiSize, piBytesWritten) (prvTraceTcpWrite(pvData, uiSize,… argument 96 #define xTraceStreamPortReadData(pvData, uiSize, piBytesRead) (prvTraceTcpRead(pvData, uiSize, piBy… argument
|
/percepio-3.5.0/TraceRecorder/streamports/UDP/include/ |
D | trcStreamPort.h | 50 int32_t prvTraceUdpWrite(void* pvData, uint32_t uiSize, int32_t* piBytesWritten); 52 int32_t prvTraceUdpRead(void* pvData, uint32_t uiSize, int32_t* piBytesRead); 67 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 69 …#define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceInternalEventBufferAlloc(… argument 72 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 97 #define xTraceStreamPortWriteData(pvData, uiSize, piBytesWritten) (prvTraceUdpWrite(pvData, uiSize,… argument 99 #define xTraceStreamPortReadData(pvData, uiSize, piBytesRead) (prvTraceUdpRead(pvData, uiSize, piBy… argument
|
/percepio-3.5.0/TraceRecorder/include/ |
D | trcInternalEventBuffer.h | 75 traceResult xTraceInternalEventBufferInitialize(uint8_t* puiBuffer, uint32_t uiSize); 86 traceResult xTraceInternalEventBufferAlloc(uint32_t uiSize, void **ppvData); 104 traceResult xTraceInternalEventBufferAllocCommit(void *pvData, uint32_t uiSize, int32_t *piBytesWri… 116 traceResult xTraceInternalEventBufferPush(void *pvData, uint32_t uiSize, int32_t *piBytesWritten); 173 #define xTraceInternalEventBufferInitialize(puiBuffer, uiSize) ((void)(uiSize), (puiBuffer) != 0 ? … argument 174 #define xTraceInternalEventBufferAlloc(ppvData, uiSize) ((void)(uiSize), (ppvData) != 0 ? TRC_SUCCE… argument 175 …ine xTraceInternalEventBufferAllocCommit(pvData, uiSize, piBytesWritten) ((void)(pvData), (void)(u… argument 176 #define xTraceInternalEventBufferPush(pvData, uiSize, piBytesWritten) ((void)(uiSize), (void)(piByt… argument
|
D | trcMultiCoreEventBuffer.h | 61 uint8_t* puiBuffer, uint32_t uiSize); 76 … TraceMultiCoreEventBuffer_t * const pxTraceMultiCoreEventBuffer, uint32_t uiSize, void** ppvData); 89 …ventBuffer_t * const pxTraceMultiCoreEventBuffer, void *pvData, uint32_t uiSize, int32_t *piBytesW… 107 …EventBuffer_t* const pxTraceMultiCoreEventBuffer, void* pvData, uint32_t uiSize, int32_t* piBytesW… 121 …CoreEventBuffer, uiSize, ppvData) xTraceEventBufferAlloc((pxTraceMultiCoreEventBuffer)->xEventBuff… argument 131 …Data, uiSize, piBytesWritten) xTraceEventBufferAllocCommit((pxTraceMultiCoreEventBuffer)->xEventBu… argument 149 …, pvData, uiSize, piBytesWritten) xTraceEventBufferPush((pxTraceMultiCoreEventBuffer)->xEventBuffe… argument
|
D | trcEventBuffer.h | 53 uint32_t uiSize; /**< Buffer size */ member 83 uint8_t *puiBuffer, uint32_t uiSize); 95 traceResult xTraceEventBufferAlloc(TraceEventBuffer_t *pxTraceEventBuffer, uint32_t uiSize, void **… 105 …mit(TraceEventBuffer_t *pxTraceEventBuffer, const void *pvData, uint32_t uiSize, int32_t *piBytesW… 120 …ufferPush(TraceEventBuffer_t *pxTraceEventBuffer, void *pvData, uint32_t uiSize, int32_t *piBytesW…
|
D | trcEvent.h | 78 #define TRC_EVENT_GET_RAW_DATA(xEventHandle, uiOffset, uiSize, ppvData) ((void)(uiSize), *(void**)(… argument 83 #define TRC_EVENT_GET_PAYLOAD(xEventHandle, uiOffset, uiSize, ppvData) ((void)(uiSize), *(void**)(p… argument 401 traceResult xTraceEventBeginRawOffline(uint32_t uiSize, TraceEventHandle_t* pxEventHandle); 415 traceResult xTraceEventBeginRawOfflineBlocking(uint32_t uiSize, TraceEventHandle_t* pxEventHandle); 525 …entGetRawData(TraceEventHandle_t xEventHandle, uint32_t uiOffset, uint32_t uiSize, void** ppvData); 541 …Payload(const TraceEventHandle_t xEventHandle, uint32_t uiOffset, uint32_t uiSize, void** ppvData);
|
/percepio-3.5.0/TraceRecorder/streamports/Jlink_RTT/include/ |
D | trcStreamPort.h | 92 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 94 …#define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceInternalEventBufferAlloc(… argument 97 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 133 …uiSize, piBytesWritten) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(piBytesWritten) = (int32_t)SEGGER_RTT… argument 135 …uiSize, piBytesWritten) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(piBytesWritten) = (int32_t)SEGGER_RTT… argument 148 …uiSize, piBytesRead) ((SEGGER_RTT_HASDATA(TRC_CFG_STREAM_PORT_RTT_DOWN_BUFFER_INDEX)) ? (*(piBytes… argument
|
/percepio-3.5.0/TraceRecorder/streamports/ARM_ITM/include/ |
D | trcStreamPort.h | 108 traceResult prvTraceItmRead(void* ptrData, uint32_t uiSize, int32_t* piBytesRead); 126 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 128 …#define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceInternalEventBufferAlloc(… argument 131 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 166 …aceStreamPortWriteData(pvData, uiSize, piBytesWritten) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(prvTrace… argument 168 #define xTraceStreamPortReadData(pvData, uiSize, piBytesRead) prvTraceItmRead(pvData, uiSize, piByt… argument
|
/percepio-3.5.0/TraceRecorder/streamports/File/include/ |
D | trcStreamPort.h | 87 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 89 …#define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceInternalEventBufferAlloc(… argument 92 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 127 …ne xTraceStreamPortWriteData(pvData, uiSize, piBytesWritten) (*(piBytesWritten) = (int32_t)fwrite(… argument 139 #define xTraceStreamPortReadData(pvData, uiSize, piBytesRead) ((void)(pvData), (void)(uiSize), (voi… argument
|
/percepio-3.5.0/TraceRecorder/streamports/TCPIP_Win32/include/ |
D | trcStreamPort.h | 67 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 69 …#define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceInternalEventBufferAlloc(… argument 72 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 97 #define xTraceStreamPortWriteData(pvData, uiSize, piBytesWritten) (prvTraceWriteToSocket(pvData, ui… argument 99 #define xTraceStreamPortReadData(pvData, uiSize, piBytesRead) (prvTraceReadFromSocket(pvData, uiSiz… argument
|
/percepio-3.5.0/TraceRecorder/kernelports/Zephyr/streamports/Semihost/include/ |
D | trcStreamPort.h | 84 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 86 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceInternalEventBufferAlloc(u… argument 89 #define xTraceStreamPortAllocate(uiSize, ppvData) ((void)(uiSize), xTraceStaticBufferGet(ppvData)) argument 124 #define xTraceStreamPortReadData(pvData, uiSize, piBytesRead) ((void)(pvData), (void)(uiSize), (voi… argument 135 traceResult xTraceStreamPortWriteData(void* pvData, uint32_t uiSize, int32_t* piBytesWritten);
|
/percepio-3.5.0/TraceRecorder/streamports/XMOS_xScope/ |
D | trcStreamPort.c | 56 traceResult xTraceStreamPortAllocate(uint32_t uiSize, void** ppvData) in xTraceStreamPortAllocate() argument 58 (void)uiSize; in xTraceStreamPortAllocate() 63 traceResult xTraceStreamPortCommit(void* pvData, uint32_t uiSize, int32_t* piBytesCommitted) in xTraceStreamPortCommit() argument 72 return xTraceInternalEventBufferPush(pvData, uiSize, piBytesCommitted); in xTraceStreamPortCommit() 75 return xTraceStreamPortWriteData(pvData, uiSize, piBytesCommitted); in xTraceStreamPortCommit() 79 traceResult xTraceStreamPortWriteData(void* pvData, uint32_t uiSize, int32_t* piBytesWritten) in xTraceStreamPortWriteData() argument 83 xscope_bytes(0, uiSize, (unsigned char*)pvData); in xTraceStreamPortWriteData() 88 *piBytesWritten = (int32_t)uiSize; in xTraceStreamPortWriteData() 94 traceResult xTraceStreamPortReadData(void* pvData, uint32_t uiSize, int32_t* piBytesRead) in xTraceStreamPortReadData() argument
|
/percepio-3.5.0/TraceRecorder/streamports/UDP/ |
D | trcStreamPort.c | 44 static int32_t prv_udp_send(void* pvData, uint32_t uiSize, int32_t* piBytesWritten); 45 static int32_t prv_udp_recv(void* pvData, uint32_t uiSize, int32_t* piBytesRead); 78 static int32_t prv_udp_send( void* pvData, uint32_t uiSize, int32_t* piBytesWritten ) in prv_udp_send() argument 91 pvBuf = pbuf_alloc(PBUF_TRANSPORT, uiSize, PBUF_RAM); in prv_udp_send() 98 memcpy(pvBuf->payload, pvData, uiSize); in prv_udp_send() 112 *piBytesWritten = uiSize; in prv_udp_send() 116 static int32_t prv_udp_recv( void* pvData, uint32_t uiSize, int32_t* piBytesRead ) in prv_udp_recv() argument 221 int32_t prvTraceUdpWrite(void* pvData, uint32_t uiSize, int32_t *piBytesWritten) in prvTraceUdpWrite() argument 225 if (uiSize > 65024) /* We have to limit it to UDP max */ in prvTraceUdpWrite() 226 uiSize = 65024; in prvTraceUdpWrite() [all …]
|
/percepio-3.5.0/TraceRecorder/streamports/STM32_USB_CDC/ |
D | trcStreamPort.c | 64 traceResult prvTraceCDCReceive(void *data, uint32_t uiSize, int32_t* piBytesReceived) in prvTraceCDCReceive() argument 70 …if ((TraceUnsignedBaseType_t)uiSize >= pxUSBBuffers->idx) // More than what is stored, number of b… in prvTraceCDCReceive() 78 uiDiff = pxUSBBuffers->idx - uiSize; in prvTraceCDCReceive() 79 TRC_MEMCPY(data, pxUSBBuffers->bufferUSB, uiSize); in prvTraceCDCReceive() 83 pxUSBBuffers->bufferUSB[i] = pxUSBBuffers->bufferUSB[i + uiSize]; in prvTraceCDCReceive() 86 *piBytesReceived = uiSize; in prvTraceCDCReceive() 100 traceResult prvTraceCDCTransmit(void* pvData, uint32_t uiSize, int32_t * piBytesSent ) in prvTraceCDCTransmit() argument 108 result = CDC_Transmit_FS(pvData, uiSize); in prvTraceCDCTransmit() 113 *piBytesSent = uiSize; in prvTraceCDCTransmit()
|
/percepio-3.5.0/TraceRecorder/streamports/TCPIP/ |
D | trcStreamPort.c | 41 static int32_t prvSocketSend(void* pvData, uint32_t uiSize, int32_t* piBytesWritten); 42 static int32_t prvSocketReceive(void* pvData, uint32_t uiSize, int32_t* piBytesRead); 47 static int32_t prvSocketSend( void* pvData, uint32_t uiSize, int32_t* piBytesWritten ) in prvSocketSend() argument 55 *piBytesWritten = send( new_sd, pvData, uiSize, 0 ); in prvSocketSend() 73 static int32_t prvSocketReceive( void* pvData, uint32_t uiSize, int32_t* piBytesRead ) in prvSocketReceive() argument 81 *piBytesRead = recv( new_sd, pvData, uiSize, 0 ); in prvSocketReceive() 174 int32_t prvTraceTcpWrite(void* pvData, uint32_t uiSize, int32_t *piBytesWritten) in prvTraceTcpWrite() argument 180 return prvSocketSend(pvData, uiSize, piBytesWritten); in prvTraceTcpWrite() 183 int32_t prvTraceTcpRead(void* pvData, uint32_t uiSize, int32_t *piBytesRead) in prvTraceTcpRead() argument 189 return prvSocketReceive(pvData, uiSize, piBytesRead); in prvTraceTcpRead()
|
/percepio-3.5.0/TraceRecorder/streamports/XMOS_xScope/include/ |
D | trcStreamPort.h | 92 traceResult xTraceStreamPortAllocate(uint32_t uiSize, void** ppvData); 106 traceResult xTraceStreamPortCommit(void* pvData, uint32_t uiSize, int32_t* piBytesCommitted); 118 traceResult xTraceStreamPortWriteData(void* pvData, uint32_t uiSize, int32_t* piBytesWritten); 130 traceResult xTraceStreamPortReadData(void* pvData, uint32_t uiSize, int32_t* piBytesRead);
|
/percepio-3.5.0/TraceRecorder/kernelports/Zephyr/streamports/Semihost/ |
D | trcStreamPort.c | 79 traceResult xTraceStreamPortWriteData(void* pvData, uint32_t uiSize, int32_t* piBytesWritten) in xTraceStreamPortWriteData() argument 83 long result = semihost_write(pxStreamPortFile->pxFileDescriptor, pvData, uiSize); in xTraceStreamPortWriteData() 86 *piBytesWritten = uiSize; in xTraceStreamPortWriteData()
|
/percepio-3.5.0/TraceRecorder/streamports/STM32_USB_CDC/include/ |
D | trcStreamPort.h | 43 traceResult prvTraceCDCReceive(void* data, uint32_t uiSize, int32_t* piBytesReceived); 45 traceResult prvTraceCDCTransmit(void* pvData, uint32_t uiSize, int32_t* piBytesSent);
|
/percepio-3.5.0/TraceRecorder/streamports/ARM_ITM/ |
D | trcStreamPort.c | 112 traceResult prvTraceItmRead(void* ptrData, uint32_t uiSize, int32_t* piBytesRead) in prvTraceItmRead() argument 122 if (tz_host_command_bytes_to_read != (int32_t)uiSize) in prvTraceItmRead()
|
/percepio-3.5.0/TraceRecorder/streamports/RingBuffer/include/ |
D | trcStreamPort.h | 159 … xTraceStreamPortReadData(pvData, uiSize, piBytesRead) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_4((void)(p… argument
|