VirtualBox

Changeset 32791 in vbox for trunk/src


Ignore:
Timestamp:
Sep 28, 2010 1:45:48 PM (14 years ago)
Author:
vboxsync
Message:

More stats

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r32489 r32791  
    409409    STAM_REG(pVM, &pVM->vmm.s.StatRZRetRescheduleREM,       STAMTYPE_COUNTER, "/VMM/RZRet/ScheduleREM",         STAMUNIT_OCCURENCES, "Number of VINF_EM_RESCHEDULE_REM returns.");
    410410    STAM_REG(pVM, &pVM->vmm.s.StatRZRetToR3,                STAMTYPE_COUNTER, "/VMM/RZRet/ToR3",                STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TO_R3 returns.");
     411    STAM_REG(pVM, &pVM->vmm.s.StatRZRetToR3Unknown,         STAMTYPE_COUNTER, "/VMM/RZRet/ToR3/Unknown",        STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TO_R3 returns.");
     412    STAM_REG(pVM, &pVM->vmm.s.StatRZRetToR3TMVirt,          STAMTYPE_COUNTER, "/VMM/RZRet/ToR3/TMVirt",         STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TO_R3 returns.");
     413    STAM_REG(pVM, &pVM->vmm.s.StatRZRetToR3HandyPages,      STAMTYPE_COUNTER, "/VMM/RZRet/ToR3/Handy",          STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TO_R3 returns.");
     414    STAM_REG(pVM, &pVM->vmm.s.StatRZRetToR3PDMQueues,       STAMTYPE_COUNTER, "/VMM/RZRet/ToR3/PDMQueue",       STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TO_R3 returns.");
     415    STAM_REG(pVM, &pVM->vmm.s.StatRZRetToR3Rendezvous,      STAMTYPE_COUNTER, "/VMM/RZRet/ToR3/Rendezvous",     STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TO_R3 returns.");
     416    STAM_REG(pVM, &pVM->vmm.s.StatRZRetToR3Timer,           STAMTYPE_COUNTER, "/VMM/RZRet/ToR3/Timer",          STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TO_R3 returns.");
    411417    STAM_REG(pVM, &pVM->vmm.s.StatRZRetTimerPending,        STAMTYPE_COUNTER, "/VMM/RZRet/TimerPending",        STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_TIMER_PENDING returns.");
    412418    STAM_REG(pVM, &pVM->vmm.s.StatRZRetInterruptPending,    STAMTYPE_COUNTER, "/VMM/RZRet/InterruptPending",    STAMUNIT_OCCURENCES, "Number of VINF_EM_RAW_INTERRUPT_PENDING returns.");
  • trunk/src/VBox/VMM/VMMInternal.h

    r32489 r32791  
    363363    STAMCOUNTER                 StatRZRetRescheduleREM;
    364364    STAMCOUNTER                 StatRZRetToR3;
     365    STAMCOUNTER                 StatRZRetToR3Unknown;
     366    STAMCOUNTER                 StatRZRetToR3TMVirt;
     367    STAMCOUNTER                 StatRZRetToR3HandyPages;
     368    STAMCOUNTER                 StatRZRetToR3PDMQueues;
     369    STAMCOUNTER                 StatRZRetToR3Rendezvous;
     370    STAMCOUNTER                 StatRZRetToR3Timer;
    365371    STAMCOUNTER                 StatRZRetTimerPending;
    366372    STAMCOUNTER                 StatRZRetInterruptPending;
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r32504 r32791  
    424424            break;
    425425        case VINF_EM_RAW_TO_R3:
    426             STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3);
    427             break;
     426            if (VM_FF_ISPENDING(pVM, VM_FF_TM_VIRTUAL_SYNC))
     427                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3TMVirt);
     428            else
     429            if (VM_FF_ISPENDING(pVM, VM_FF_PGM_NEED_HANDY_PAGES))
     430                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3HandyPages);
     431            else
     432            if (VM_FF_ISPENDING(pVM, VM_FF_PDM_QUEUES))
     433                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3PDMQueues);
     434            else
     435            if (VM_FF_ISPENDING(pVM, VM_FF_EMT_RENDEZVOUS))
     436                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3Rendezvous);
     437            else
     438            if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TIMER))
     439                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3Timer);
     440            else
     441            if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TO_R3))
     442                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3);
     443            else
     444                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3Unknown);
     445            break;
     446
    428447        case VINF_EM_RAW_TIMER_PENDING:
    429448            STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetTimerPending);
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