VirtualBox

Changeset 87787 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 18, 2021 3:09:53 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142847
Message:

VMM/DBGFR3FlowTrace*: Add some API to query a record based on the index, bugref:8650

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

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

    r87781 r87787  
    16911691
    16921692/**
     1693 * Queries the specified record contained in the given report.
     1694 *
     1695 * @returns VBox status code.
     1696 * @param   hFlowTraceReport        Flow trace report handle.
     1697 * @param   idxRec                  The record index to query.
     1698 * @param   phFlowTraceRec          Where to store the retained handle of the record on success.
     1699 */
     1700VMMR3DECL(int) DBGFR3FlowTraceReportQueryRecord(DBGFFLOWTRACEREPORT hFlowTraceReport, uint32_t idxRec, PDBGFFLOWTRACERECORD phFlowTraceRec)
     1701{
     1702    PDBGFFLOWTRACEREPORTINT pReport = hFlowTraceReport;
     1703    AssertPtrReturn(pReport, 0);
     1704    AssertPtrReturn(phFlowTraceRec, VERR_INVALID_POINTER);
     1705    AssertReturn(idxRec < pReport->cRecords, VERR_INVALID_PARAMETER);
     1706
     1707    DBGFR3FlowTraceRecordRetain(pReport->apRec[idxRec]);
     1708    *phFlowTraceRec = pReport->apRec[idxRec];
     1709    return VINF_SUCCESS;
     1710}
     1711
     1712
     1713/**
    16931714 * Filters the given flow trace report by the given criterias and returns a filtered report.
    16941715 *
  • trunk/src/VBox/VMM/VMMR3/VMMR3.def

    r87780 r87787  
    208208    DBGFR3FlowTraceReportRelease
    209209    DBGFR3FlowTraceReportGetRecordCount
     210    DBGFR3FlowTraceReportQueryRecord
    210211    DBGFR3FlowTraceReportQueryFiltered
    211212    DBGFR3FlowTraceReportEnumRecords
Note: See TracChangeset for help on using the changeset viewer.

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