VirtualBox

Changeset 87135 in vbox for trunk/src


Ignore:
Timestamp:
Dec 29, 2020 12:32:49 PM (4 years ago)
Author:
vboxsync
Message:

VMM/DBGFR3FlowTrace: First commit of a new DBGF framework to collect guest state information during execution, allowing visualization of guest execution flow, bugref:8650 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFR3FlowTrace.cpp

    r87134 r87135  
    259259        if (pProbeCmn)
    260260        {
    261             uint32_t offValCmn = pProbe->cbProbe - pProbe->cEntries * sizeof(DBGFFLOWTRACEPROBEVAL);
     261            size_t offValCmn = pProbe->cbProbe - pProbe->cEntries * sizeof(DBGFFLOWTRACEPROBEVAL);
    262262            pRecord->paValCmn = (PDBGFFLOWTRACEPROBEVAL)(*ppbBuf + offValCmn);
    263263            *ppbBufCmn = (uint8_t *)&pRecord->paValCmn[pProbeCmn->cEntries];
     
    273273 *
    274274 * @returns nothing.
    275  * @param   pReport                 The report to destroy.
     275 * @param   pRecord                 The record to destroy.
    276276 */
    277277static void dbgfR3FlowTraceRecordDestroy(PDBGFFLOWTRACERECORDINT pRecord)
     
    293293{
    294294    PDBGFFLOWTRACEREPORTINT pReport = (PDBGFFLOWTRACEREPORTINT)MMR3HeapAllocZU(pUVM, MM_TAG_DBGF_FLOWTRACE,
    295                                                                                RT_OFFSETOF(DBGFFLOWTRACEREPORTINT, apRec[cRecords]));
     295                                                                               RT_UOFFSETOF_DYN(DBGFFLOWTRACEREPORTINT, apRec[cRecords]));
    296296    if (RT_LIKELY(pReport))
    297297    {
     
    694694 *
    695695 * @returns nothing.
    696  * @param   pVM                     The VM instance data.
     696 * @param   pUVM                    The user mode VM handle.
    697697 * @param   idCpu                   The virtual CPU ID.
    698698 * @param   pTraceMod               The trace module instance.
     
    10031003 *
    10041004 * @returns VBox status code.
    1005  * @param   VERR_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.
    10061006 * @param   pProbe                  The probe insatnce.
    10071007 * @param   cEntriesAdd             Number of additional entries required.
     
    16651665{
    16661666    PDBGFFLOWTRACEREPORTINT pReport = hFlowTraceReport;
    1667     AssertPtrReturn(pReport, VERR_INVALID_HANDLE);
     1667    AssertPtrReturn(pReport, 0);
    16681668
    16691669    return pReport->cRecords;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette