- Timestamp:
- Dec 29, 2020 12:32:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFR3FlowTrace.cpp
r87134 r87135 259 259 if (pProbeCmn) 260 260 { 261 uint32_t offValCmn = pProbe->cbProbe - pProbe->cEntries * sizeof(DBGFFLOWTRACEPROBEVAL);261 size_t offValCmn = pProbe->cbProbe - pProbe->cEntries * sizeof(DBGFFLOWTRACEPROBEVAL); 262 262 pRecord->paValCmn = (PDBGFFLOWTRACEPROBEVAL)(*ppbBuf + offValCmn); 263 263 *ppbBufCmn = (uint8_t *)&pRecord->paValCmn[pProbeCmn->cEntries]; … … 273 273 * 274 274 * @returns nothing. 275 * @param pRe port The reportto destroy.275 * @param pRecord The record to destroy. 276 276 */ 277 277 static void dbgfR3FlowTraceRecordDestroy(PDBGFFLOWTRACERECORDINT pRecord) … … 293 293 { 294 294 PDBGFFLOWTRACEREPORTINT pReport = (PDBGFFLOWTRACEREPORTINT)MMR3HeapAllocZU(pUVM, MM_TAG_DBGF_FLOWTRACE, 295 RT_ OFFSETOF(DBGFFLOWTRACEREPORTINT, apRec[cRecords]));295 RT_UOFFSETOF_DYN(DBGFFLOWTRACEREPORTINT, apRec[cRecords])); 296 296 if (RT_LIKELY(pReport)) 297 297 { … … 694 694 * 695 695 * @returns nothing. 696 * @param p VM The VM instance data.696 * @param pUVM The user mode VM handle. 697 697 * @param idCpu The virtual CPU ID. 698 698 * @param pTraceMod The trace module instance. … … 1003 1003 * 1004 1004 * @returns VBox status code. 1005 * @ paramVERR_NO_MEMORY if increasing the size failed due to an out of memory condition.1005 * @retval VERR_NO_MEMORY if increasing the size failed due to an out of memory condition. 1006 1006 * @param pProbe The probe insatnce. 1007 1007 * @param cEntriesAdd Number of additional entries required. … … 1665 1665 { 1666 1666 PDBGFFLOWTRACEREPORTINT pReport = hFlowTraceReport; 1667 AssertPtrReturn(pReport, VERR_INVALID_HANDLE);1667 AssertPtrReturn(pReport, 0); 1668 1668 1669 1669 return pReport->cRecords;
Note:
See TracChangeset
for help on using the changeset viewer.