VirtualBox

Changeset 85965 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 31, 2020 11:47:31 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140160
Message:

VMM/APIC: Added some release stats.

File:
1 edited

Legend:

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

    r85964 r85965  
    15241524    DBGFR3InfoRegisterInternalEx(pVM, "apictimer", "Dumps APIC timer information.", apicR3InfoTimer, DBGFINFO_FLAGS_ALL_EMTS);
    15251525
    1526 #ifdef VBOX_WITH_STATISTICS
    15271526    /*
    15281527     * Statistics.
     
    15311530        PDMDevHlpSTAMRegisterF(pDevIns, a_pvReg, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, \
    15321531                               STAMUNIT_OCCURENCES, a_pszDesc, a_pszNameFmt, idCpu)
    1533 # define APIC_PROF_COUNTER(a_pvReg, a_pszNameFmt, a_pszDesc) \
     1532#define APIC_PROF_COUNTER(a_pvReg, a_pszNameFmt, a_pszDesc) \
    15341533        PDMDevHlpSTAMRegisterF(pDevIns, a_pvReg, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, \
    15351534                               STAMUNIT_TICKS_PER_CALL, a_pszDesc, a_pszNameFmt, idCpu)
     
    15401539        PAPICCPU pApicCpu  = VMCPU_TO_APICCPU(pVCpu);
    15411540
     1541        APIC_REG_COUNTER(&pApicCpu->StatPostIntrCnt,   "%u",  "APIC/VCPU stats / number of apicPostInterrupt calls.");
     1542        for (size_t i = 0; i < RT_ELEMENTS(pApicCpu->aStatVectors); i++)
     1543            PDMDevHlpSTAMRegisterF(pDevIns, &pApicCpu->aStatVectors[i], STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES,
     1544                                   "Number of APICPostInterrupt calls for the vector.", "%u/Vectors/%02x", idCpu, i);
     1545
     1546#ifdef VBOX_WITH_STATISTICS
    15421547        APIC_REG_COUNTER(&pApicCpu->StatMmioReadRZ,    "%u/RZ/MmioRead",    "Number of APIC MMIO reads in RZ.");
    15431548        APIC_REG_COUNTER(&pApicCpu->StatMmioWriteRZ,   "%u/RZ/MmioWrite",   "Number of APIC MMIO writes in RZ.");
     
    15681573                                                       "/PROF/CPU%u/APIC/UpdatePendingInterrupts", "Profiling of APICUpdatePendingInterrupts");
    15691574        APIC_PROF_COUNTER(&pApicCpu->StatPostIntr,     "/PROF/CPU%u/APIC/PostInterrupt",  "Profiling of APICPostInterrupt");
     1575#endif
    15701576    }
    15711577
    15721578# undef APIC_PROF_COUNTER
    15731579# undef APIC_REG_ACCESS_COUNTER
    1574 #endif
    15751580
    15761581    return VINF_SUCCESS;
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