VirtualBox

儲存庫 vbox 的更動 85965


忽略:
時間撮記:
2020-8-31 下午11:47:31 (5 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
140160
訊息:

VMM/APIC: Added some release stats.

位置:
trunk
檔案:
修改 5 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/vmm/vm.h

    r84431 r85965  
    269269        struct APICCPU      s;
    270270#endif
    271         uint8_t             padding[1792];      /* multiple of 64 */
     271        uint8_t             padding[3840];      /* multiple of 64 */
    272272    } apic;
    273273
     
    285285
    286286    /** Align the following members on page boundary. */
    287     uint8_t                 abAlignment2[1400];
     287    uint8_t                 abAlignment2[3448];
    288288
    289289    /** PGM part. */
  • trunk/include/VBox/vmm/vm.mac

    r84431 r85965  
    7171    .dbgf                   resb 256
    7272    .gim                    resb 512
    73     .apic                   resb 1792
     73    .apic                   resb 3840
    7474
    7575    .fTraceGroups           resd 1
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r85964 r85965  
    31013101
    31023102    STAM_PROFILE_START(&pApicCpu->StatPostIntr, a);
     3103    STAM_REL_COUNTER_INC(&pApicCpu->StatPostIntrCnt);
     3104    STAM_REL_COUNTER_INC(&pApicCpu->aStatVectors[uVector]);
    31033105
    31043106    /*
  • 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;
  • trunk/src/VBox/VMM/include/APICInternal.h

    r85964 r85965  
    10331033    /** @} */
    10341034
    1035 #ifdef VBOX_WITH_STATISTICS
    10361035    /** @name APIC statistics.
    10371036     * @{ */
     1037#ifdef VBOX_WITH_STATISTICS
    10381038    /** Number of MMIO reads in RZ. */
    10391039    STAMCOUNTER                 StatMmioReadRZ;
     
    10851085    /** Number of times the APIC-ID MSR is read. */
    10861086    STAMCOUNTER                 StatIdMsrRead;
     1087#endif
     1088    /** Number of apicPostInterrupt() calls. */
     1089    STAMCOUNTER                 StatPostIntrCnt;
     1090    /** Number of interrupts broken down by vector. */
     1091    STAMCOUNTER                 aStatVectors[256];
    10871092    /** @} */
    1088 #endif
    10891093} APICCPU;
    10901094/** Pointer to APIC VMCPU instance data. */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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