Home
last modified time | relevance | path

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

12

/percepio-3.5.0/TraceRecorder/
DtrcPrint.c44 uint32_t i; in xTracePrint() local
57 …for (i = 0u; (szString[i] != (char)0) && (i < 128u); i++) {} /*cstat !MISRAC2004-6.3 !MISRAC2012-D… in xTracePrint()
59 uiLength = i + 1u; /* Null termination */ in xTracePrint()
94 uint32_t i; in xTracePrintCompactF() local
112 …for (i = 0u; (szFormat[i] != (char)0) && (i < 128u); i++) /*cstat !MISRAC2004-6.3 !MISRAC2012-Dir-… in xTracePrintCompactF()
114 …if (szFormat[i] == '%') /*cstat !MISRAC2004-17.4_b We need to access a specific character in the s… in xTracePrintCompactF()
116 …if (szFormat[i + 1u] == (char)0) /*cstat !MISRAC2004-6.3 !MISRAC2012-Dir-4.6_a Suppress basic char… in xTracePrintCompactF()
122 …if (szFormat[i + 1u] != '%') /*cstat !MISRAC2004-17.4_b We need to access a specific character in … in xTracePrintCompactF()
128 i++; /*cstat !MISRAC2004-13.6 Suppress i increment inside for loop check*/ in xTracePrintCompactF()
191 uint32_t i; in xTraceVPrintF() local
[all …]
DtrcStackMonitor.c27 uint32_t i; in xTraceStackMonitorInitialize() local
36 for (i = 0; i < (TRC_CFG_STACK_MONITOR_MAX_TASKS); i++) in xTraceStackMonitorInitialize()
38 pxStackMonitor->xEntries[i].pvTask = 0; in xTraceStackMonitorInitialize()
87 uint32_t i; in xTraceStackMonitorRemove() local
102 for (i = 0; i < pxStackMonitor->uxEntryCount; i++) in xTraceStackMonitorRemove()
104 if (pxStackMonitor->xEntries[i].pvTask == pvTask) in xTraceStackMonitorRemove()
106 if (pxStackMonitor->uxEntryCount > 1 && i != (pxStackMonitor->uxEntryCount - 1)) in xTraceStackMonitorRemove()
109 …pxStackMonitor->xEntries[i].pvTask = pxStackMonitor->xEntries[pxStackMonitor->uxEntryCount - 1].pv… in xTraceStackMonitorRemove()
110 …pxStackMonitor->xEntries[i].uxPreviousLowWaterMark = pxStackMonitor->xEntries[pxStackMonitor->uxEn… in xTraceStackMonitorRemove()
119 pxStackMonitor->xEntries[i].pvTask = 0; in xTraceStackMonitorRemove()
[all …]
DtrcAssert.c44 TraceBaseType_t i, xLength; in prvTraceAssertCreate() local
72 …for (i = 0; (szFilePath[i] != (char)0) && (i < 128); i++) {} /*cstat !MISRAC2004-6.3 !MISRAC2012-D… in prvTraceAssertCreate()
74 xLength = i; in prvTraceAssertCreate()
77 …for (i = xLength - 1; (i >= 0) && ((szFilePath[i] != '\\') && (szFilePath[i] != '/')); i--) {} /*c… in prvTraceAssertCreate()
80 …(void)xTraceObjectSetName((TraceObjectHandle_t)pxAssertData->xEntry, &szFilePath[i + 1]); /*cstat … in prvTraceAssertCreate()
DtrcEntryTable.c49 uint32_t i, j; in xTraceEntryTableInitialize() local
63 for (i = 0u; i < (uint32_t)(TRC_ENTRY_TABLE_SLOTS); i++) in xTraceEntryTableInitialize()
65 pxEntryTable->axEntries[i].pvAddress = 0; in xTraceEntryTableInitialize()
68 pxEntryTable->axEntries[i].xStates[j] = (TraceUnsignedBaseType_t)0; in xTraceEntryTableInitialize()
70 …pxEntryTable->axEntries[i].szSymbol[0] = (char)0; /*cstat !MISRAC2004-6.3 !MISRAC2012-Dir-4.6_a Su… in xTraceEntryTableInitialize()
80 uint32_t i; in xTraceEntryCreate() local
110 for (i = 0u; i < (uint32_t)(TRC_ENTRY_TABLE_STATE_COUNT); i++) in xTraceEntryCreate()
112 pxEntry->xStates[i] = (TraceUnsignedBaseType_t)0; in xTraceEntryCreate()
168 uint32_t i; in xTraceEntryFind() local
180 for (i = 0u; i < (uint32_t)(TRC_ENTRY_TABLE_SLOTS); i++) in xTraceEntryFind()
[all …]
DtrcObject.c30 TraceUnsignedBaseType_t i; in xTraceObjectRegisterInternal() local
68 for (i = 0u; i < uxStateCount; i++) in xTraceObjectRegisterInternal()
71 …TRC_ASSERT_ALWAYS_EVALUATE(xTraceEntrySetState(xEntryHandle, (uint32_t)i, uxStates[i]) == TRC_SUCC… in xTraceObjectRegisterInternal()
94 for (i = 0u; i < uxStateCount; i++) in xTraceObjectRegisterInternal()
96 (void)xTraceEventAddUnsignedBaseType(xEventHandle, uxStates[i]); in xTraceObjectRegisterInternal()
116 uint32_t i; in xTraceObjectUnregister() local
131 …for (i = 0u; (szName[i] != (char)0) && (i < 128u); i++) {} /*cstat !MISRAC2004-6.3 !MISRAC2012-Dir… in xTraceObjectUnregister()
133 uiLength = i; in xTraceObjectUnregister()
149 uint32_t i; in xTraceObjectSetName() local
162 …for (i = 0u; (szName[i] != (char)0) && (i < 128u); i++) {} /*cstat !MISRAC2004-6.3 !MISRAC2012-Dir… in xTraceObjectSetName()
[all …]
DtrcSnapshotRecorder.c820 static uint8_t writeInt8(void * buffer, uint8_t i, uint8_t value) in writeInt8() argument
824 if (i >= MAX_ARG_SIZE) in writeInt8()
829 ((uint8_t*)buffer)[i] = value; in writeInt8()
831 if (i + 1 > MAX_ARG_SIZE) in writeInt8()
836 return ((uint8_t) (i + 1)); in writeInt8()
841 static uint8_t writeInt16(void * buffer, uint8_t i, uint16_t value) in writeInt16() argument
846 while ((i % 2) != 0) in writeInt16()
848 if (i >= MAX_ARG_SIZE) in writeInt16()
853 ((uint8_t*)buffer)[i] = 0; in writeInt16()
854 i++; in writeInt16()
[all …]
DtrcString.c22 int32_t i; in xTraceStringRegister() local
37 …for (i = 0; (szString[i] != (char)0) && (i < (int32_t)(TRC_ENTRY_TABLE_SLOT_SYMBOL_SIZE)); i++) {}… in xTraceStringRegister()
39 uiLength = (uint32_t)i; in xTraceStringRegister()
DtrcStreamingRecorder.c143 TraceUnsignedBaseType_t i; in xTraceInitialize() local
169 for (i = 0; i < TRC_CFG_CORE_COUNT; i++) in xTraceInitialize()
171 pxTraceRecorderData->uxTraceSystemStates[i] = (TraceUnsignedBaseType_t)TRC_STATE_IN_STARTUP; in xTraceInitialize()
281 uint32_t i; in xTraceHeaderInitialize() local
315 for (i = 0u; i < (uint32_t)(TRC_PLATFORM_CFG_LENGTH); i++) in xTraceHeaderInitialize()
317 …pxHeader->platformCfg[i] = platform_cfg[i]; /*cstat !MISRAC2004-17.4_b We need to access every cha… in xTraceHeaderInitialize()
318 …if (platform_cfg[i] == (char)0) /*cstat !MISRAC2004-6.3 !MISRAC2012-Dir-4.6_a Suppress basic char … in xTraceHeaderInitialize()
605 uint32_t i = 0; in prvTraceStoreEntryTable() local
621 for (i = 0; i < (TRC_ENTRY_TABLE_SLOTS); i++) in prvTraceStoreEntryTable()
623 (void)xTraceEntryGetAtIndex(i, &xEntryHandle); in prvTraceStoreEntryTable()
[all …]
DtrcRunnable.c24 int32_t i; in xTraceRunnableRegister() local
33 …for (i = 0; (szName[i] != (char)0) && (i < (int32_t)(TRC_ENTRY_TABLE_SLOT_SYMBOL_SIZE)); i++) {} /… in xTraceRunnableRegister()
35 uiLength = (uint32_t)i; in xTraceRunnableRegister()
DtrcMultiCoreEventBuffer.c20 uint32_t i; in xTraceMultiCoreEventBufferInitialize() local
34 for (i = 0u; i < (uint32_t)(TRC_CFG_CORE_COUNT); i++) in xTraceMultiCoreEventBufferInitialize()
38 …pxTraceMultiCoreEventBuffer->xEventBuffer[i] = (TraceEventBuffer_t*)(&puiBuffer[i * uiBufferSizePe… in xTraceMultiCoreEventBufferInitialize()
42 if (xTraceEventBufferInitialize(pxTraceMultiCoreEventBuffer->xEventBuffer[i], uiOptions, in xTraceMultiCoreEventBufferInitialize()
43 …&puiBuffer[(i * uiBufferSizePerCore) + sizeof(TraceEventBuffer_t)], /*cstat !MISRAC2004-17.4_b We … in xTraceMultiCoreEventBufferInitialize()
DtrcTask.c31 int32_t i; in xTraceTaskInitialize() local
38 for (i = 0; i < (TRC_CFG_CORE_COUNT); i++) in xTraceTaskInitialize()
40 …pxTraceTaskData->coreTasks[i] = TRACE_HANDLE_NO_TASK; /*cstat !MISRAC2004-11.3 !MISRAC2012-Rule-1… in xTraceTaskInitialize()
DtrcDiagnostics.c21 uint32_t i; in xTraceDiagnosticsInitialize() local
28 for (i = 0u; i < (TRC_DIAGNOSTICS_COUNT); i++) in xTraceDiagnosticsInitialize()
30 pxDiagnostics->metrics[i] = 0; in xTraceDiagnosticsInitialize()
DtrcISR.c53 uint32_t i, uiLength, uiValue = 0u; in xTraceISRRegister() local
76 …for (i = 0u; (szName[i] != (char)0) && (i < 128u); i++) {} /*cstat !MISRAC2004-6.3 !MISRAC2012-Dir… in xTraceISRRegister()
78 uiLength = i; in xTraceISRRegister()
DtrcEvent.c18 #define VERIFY_EVENT_SIZE(i) \ argument
19 if ((TraceUnsignedBaseType_t)(i) > (TraceUnsignedBaseType_t)(TRC_MAX_BLOB_SIZE)) \
21 …(void)xTraceDiagnosticsSetIfHigher(TRC_DIAGNOSTICS_BLOB_MAX_BYTES_TRUNCATED, (TraceBaseType_t)(i) …
22 (i) = (uint32_t)(TRC_MAX_BLOB_SIZE); \
30 uint32_t i, j; in xTraceEventInitialize() local
37 for (i = 0u; i < (uint32_t)(TRC_CFG_CORE_COUNT); i++) in xTraceEventInitialize()
39 pxCoreEventData = &pxTraceEventDataTable->coreEventData[i]; in xTraceEventInitialize()
514 TraceUnsignedBaseType_t i; in xTraceEventAddData() local
528 for (i = 0u; i < uxSize; i++) in xTraceEventAddData()
530 …TRC_EVENT_ADD_UNSIGNED_BASE_TYPE(xEventHandle, puxData[i]); /*cstat !MISRAC2004-17.4_b We need to … in xTraceEventAddData()
/percepio-3.5.0/DFM/
DdfmAlert.c158 uint32_t i; in xDfmAlertBegin() local
203 for (i = (uint32_t)0; i < (uint32_t)(DFM_DESCRIPTION_MAX_LEN); i++) in xDfmAlertBegin()
205 pxAlert->cAlertDescription[i] = szAlertDescription[i]; in xDfmAlertBegin()
207 if (szAlertDescription[i] == (char)0) in xDfmAlertBegin()
299 uint32_t i; in xDfmAlertAddPayload() local
350 for (i = (uint32_t)0; i < (uint32_t)(DFM_PAYLOAD_DESCRIPTION_MAX_LEN); i++) in xDfmAlertAddPayload()
352 …pxDfmAlertData->xPayloads[pxDfmAlertData->ulPayloadCount].cDescriptionBuffer[i] = szDescription[i]; in xDfmAlertAddPayload()
354 if (szDescription[i] == (char)0) in xDfmAlertAddPayload()
581 uint32_t i; in prvDfmAlertInitialize() local
611 for (i = (uint32_t)0; i < (uint32_t)(DFM_FIRMWARE_VERSION_MAX_LEN); i++) in prvDfmAlertInitialize()
[all …]
DdfmCrashCatcher.c58 int i = 0; in prvCalculateChecksum() local
65 while ((ptr[i] != (char)0) && (i < maxlen)) in prvCalculateChecksum()
67 chksum += (uint32_t)ptr[i]; in prvCalculateChecksum()
68 i++; in prvCalculateChecksum()
276 size_t i; in dumpHalfWords() local
277 for (i = 0 ; i < elementCount ; i++) in dumpHalfWords()
287 size_t i; in dumpWords() local
288 for (i = 0 ; i < elementCount ; i++) in dumpWords()
DdfmSession.c36 uint32_t i; in xDfmSessionInitialize() local
84 for (i = 0; i < (uint32_t)DFM_CFG_FIRMWARE_VERSION_MAX_LEN; i++) in xDfmSessionInitialize()
86 pxDfmSessionData->cFirmwareVersionBuffer[i] = (char)(DFM_CFG_FIRMWARE_VERSION)[i]; in xDfmSessionInitialize()
88 if (pxDfmSessionData->cFirmwareVersionBuffer[i] == (char)0) in xDfmSessionInitialize()
298 for (int i = 0; i < DFM_DEVICE_NAME_MAX_LEN - 1; i++) in xDfmSessionSetDeviceName() local
300 pxDfmSessionData->cDeviceNameBuffer[i] = szDeviceName[i]; in xDfmSessionSetDeviceName()
303 if (szDeviceName[i] == (char)0) in xDfmSessionSetDeviceName()
DdfmEntry.c336 uint32_t i; in xDfmEntryCreatePayloadHeader() local
382 for (i = 0; i < sizeof(xPayloadHeader.cFilenameBuffer); i++) in xDfmEntryCreatePayloadHeader()
384 xPayloadHeader.cFilenameBuffer[i] = szDescription[i]; in xDfmEntryCreatePayloadHeader()
386 if (xPayloadHeader.cFilenameBuffer[i] == (char)0) in xDfmEntryCreatePayloadHeader()
473 uint32_t i; in xDfmEntryCreatePayloadChunkFromBuffer() local
523 for (i = 0; i < (uint32_t)(DFM_SESSION_ID_MAX_LEN); i++) in xDfmEntryCreatePayloadChunkFromBuffer()
525 if (szSessionId[i] != szPayloadSession[i]) in xDfmEntryCreatePayloadChunkFromBuffer()
530 if (szSessionId[i] == (char)0) in xDfmEntryCreatePayloadChunkFromBuffer()
/percepio-3.5.0/DFM/kernelports/Zephyr/cloudports/Serial/
DdfmCloudPort.c23 int i; in prvPrintDataAsHex() local
26 for (i = 0; i < size; i++) in prvPrintDataAsHex()
28 uint8_t byte = data[i]; in prvPrintDataAsHex()
31 if (i % 20 == 0) in prvPrintDataAsHex()
39 if ( (i+1) % 20 == 0) in prvPrintDataAsHex()
46 if (i % 20 != 0) in prvPrintDataAsHex()
/percepio-3.5.0/TraceRecorder/streamports/STM32_USB_CDC/
DtrcStreamPort.c39 for(uint32_t i = 0; i < *puiLength; i++) in CDC_Receive_FS_modified() local
41 pxUSBBuffers->bufferUSB[pxUSBBuffers->idx] = pBuffer[i]; in CDC_Receive_FS_modified()
66 uint32_t i, uiDiff; in prvTraceCDCReceive() local
81 for(i = 0; i < uiDiff; i++) in prvTraceCDCReceive()
83 pxUSBBuffers->bufferUSB[i] = pxUSBBuffers->bufferUSB[i + uiSize]; in prvTraceCDCReceive()
/percepio-3.5.0/DFM/cloudports/Serial/
DdfmCloudPort.c34 int i; in prvPrintDataAsHex() local
37 for (i = 0; i < size; i++) in prvPrintDataAsHex()
39 uint8_t byte = data[i]; in prvPrintDataAsHex()
43 if (i % 20 == 0) in prvPrintDataAsHex()
51 if ( (i+1) % 20 == 0) in prvPrintDataAsHex()
58 if (i % 20 != 0) in prvPrintDataAsHex()
/percepio-3.5.0/TraceRecorder/streamports/ARM_ITM/
DtrcStreamPort.c114 int32_t i; in prvTraceItmRead() local
131 for (i = 0; i < tz_host_command_bytes_to_read; i++) in prvTraceItmRead()
133 bytesBuffer[i] = tz_host_command_data[i]; in prvTraceItmRead()
/percepio-3.5.0/DFM/kernelports/Zephyr/
DdfmKernelPort.c111 for (int i=0; i<ubDfmCoreDumpHeaderCounter; i++) in xDfmAlertAddCoredump() local
113 DfmCoredumpPayload_t* pxCurrentPayload = &pxDfmCoredumpParts[i]; in xDfmAlertAddCoredump()
/percepio-3.5.0/DFM/kernelports/Zephyr/storageports/Flash/
DdfmStoragePort.c260 for (int32_t i = 0; i < ARRAY_SIZE(xFlashCircularBufferSector); i++) { in xDfmStoragePortInitialize() local
261 xFlashCircularBufferSector[i].fs_off = i * CONFIG_PERCEPIO_DFM_CFG_STORAGE_PORT_FCB_SECTOR_SIZE; in xDfmStoragePortInitialize()
262 xFlashCircularBufferSector[i].fs_size = CONFIG_PERCEPIO_DFM_CFG_STORAGE_PORT_FCB_SECTOR_SIZE; in xDfmStoragePortInitialize()
/percepio-3.5.0/TraceRecorder/streamports/File/
DReadme-Streamport.txt7 i.e., the specific code needed to use a particular interface for streaming a
14 by the compiler (i.e., add this folder to your project's include paths) and

12