Home
last modified time | relevance | path

Searched refs:uiSize (Results 1 – 25 of 25) sorted by relevance

/percepio-3.5.0/TraceRecorder/
DtrcEventBuffer.c18 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 …]
DtrcInternalEventBuffer.c25 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()
DtrcMultiCoreEventBuffer.c18 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()
DtrcEvent.c332 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 …]
DtrcPrint.c239 …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/
DtrcStreamPort.h47 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/
DtrcStreamPort.h50 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/
DtrcInternalEventBuffer.h75 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
DtrcMultiCoreEventBuffer.h61 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
DtrcEventBuffer.h53 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…
DtrcEvent.h78 #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/
DtrcStreamPort.h92 #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
133uiSize, piBytesWritten) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(piBytesWritten) = (int32_t)SEGGER_RTT… argument
135uiSize, piBytesWritten) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(piBytesWritten) = (int32_t)SEGGER_RTT… argument
148uiSize, piBytesRead) ((SEGGER_RTT_HASDATA(TRC_CFG_STREAM_PORT_RTT_DOWN_BUFFER_INDEX)) ? (*(piBytes… argument
/percepio-3.5.0/TraceRecorder/streamports/ARM_ITM/include/
DtrcStreamPort.h108 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/
DtrcStreamPort.h87 #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/
DtrcStreamPort.h67 #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/
DtrcStreamPort.h84 #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/
DtrcStreamPort.c56 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/
DtrcStreamPort.c44 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/
DtrcStreamPort.c64 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/
DtrcStreamPort.c41 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/
DtrcStreamPort.h92 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/
DtrcStreamPort.c79 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/
DtrcStreamPort.h43 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/
DtrcStreamPort.c112 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/
DtrcStreamPort.h159 … xTraceStreamPortReadData(pvData, uiSize, piBytesRead) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_4((void)(p… argument