VirtualBox

Changeset 13100 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 8, 2008 5:33:04 PM (16 years ago)
Author:
vboxsync
Message:

#1865: More PGM changes.

File:
1 edited

Legend:

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

    r13062 r13100  
    721721            )
    722722    {
    723         STAM_COUNTER_INC(&pPool->CTXMID(StatMonitor,Fork));
     723        STAM_COUNTER_INC(&pPool->CTX_MID_Z(StatMonitor,Fork));
    724724        return true;
    725725    }
     
    840840                     pRegFrame->cs, (RTGCPTR)pRegFrame->eip));
    841841            rc = VINF_SUCCESS;
    842             STAM_COUNTER_INC(&pPool->StatMonitorGCIntrFailPatch2);
     842            STAM_COUNTER_INC(&pPool->StatMonitorRZIntrFailPatch2);
    843843        }
    844844        else
     
    846846        {
    847847            rc = VINF_EM_RAW_EMULATE_INSTR;
    848             STAM_COUNTER_INC(&pPool->CTXMID(StatMonitor,EmulateInstr));
     848            STAM_COUNTER_INC(&pPool->CTX_MID_Z(StatMonitor,EmulateInstr));
    849849        }
    850850    }
     
    954954                  pRegFrame->cs, (RTGCPTR)pRegFrame->rip, pCpu->pCurInstr->opcode));
    955955        rc = VINF_EM_RAW_EMULATE_INSTR;
    956         STAM_COUNTER_INC(&pPool->CTXMID(StatMonitor,EmulateInstr));
     956        STAM_COUNTER_INC(&pPool->CTX_MID_Z(StatMonitor,EmulateInstr));
    957957    }
    958958
     
    990990DECLEXPORT(int) pgmPoolAccessHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser)
    991991{
    992     STAM_PROFILE_START(&pVM->pgm.s.CTX_SUFF(pPool)->CTXSUFF(StatMonitor), a);
     992    STAM_PROFILE_START(&pVM->pgm.s.CTX_SUFF(pPool)->CTX_SUFF_Z(StatMonitor), a);
    993993    PPGMPOOL        pPool = pVM->pgm.s.CTX_SUFF(pPool);
    994994    PPGMPOOLPAGE    pPage = (PPGMPOOLPAGE)pvUser;
     
    10231023        {
    10241024             rc = pgmPoolAccessHandlerSimple(pVM, pPool, pPage, &Cpu, pRegFrame, GCPhysFault, pvFault);
    1025              STAM_PROFILE_STOP_EX(&pVM->pgm.s.CTX_SUFF(pPool)->CTXSUFF(StatMonitor), &pPool->CTXMID(StatMonitor,Handled), a);
     1025             STAM_PROFILE_STOP_EX(&pVM->pgm.s.CTX_SUFF(pPool)->CTX_SUFF_Z(StatMonitor), &pPool->CTX_MID_Z(StatMonitor,Handled), a);
    10261026             return rc;
    10271027        }
     
    10451045        {
    10461046             rc = pgmPoolAccessHandlerSTOSD(pVM, pPool, pPage, &Cpu, pRegFrame, GCPhysFault, pvFault);
    1047              STAM_PROFILE_STOP_EX(&pVM->pgm.s.CTX_SUFF(pPool)->CTXSUFF(StatMonitor), &pPool->CTXMID(StatMonitor,RepStosd), a);
     1047             STAM_PROFILE_STOP_EX(&pVM->pgm.s.CTX_SUFF(pPool)->CTX_SUFF_Z(StatMonitor), &pPool->CTX_MID_Z(StatMonitor,RepStosd), a);
    10481048             return rc;
    10491049        }
    10501050
    10511051        /* REP prefix, don't bother. */
    1052         STAM_COUNTER_INC(&pPool->CTXMID(StatMonitor,RepPrefix));
     1052        STAM_COUNTER_INC(&pPool->CTX_MID_Z(StatMonitor,RepPrefix));
    10531053        Log4(("pgmPoolAccessHandler: eax=%#x ecx=%#x edi=%#x esi=%#x eip=%VGv opcode=%d prefix=%#x\n",
    10541054              pRegFrame->eax, pRegFrame->ecx, pRegFrame->edi, pRegFrame->esi, pRegFrame->rip, Cpu.pCurInstr->opcode, Cpu.prefix));
     
    10661066    if (rc == VINF_EM_RAW_EMULATE_INSTR && fReused)
    10671067        rc = VINF_SUCCESS;
    1068     STAM_PROFILE_STOP_EX(&pVM->pgm.s.CTX_SUFF(pPool)->CTXSUFF(StatMonitor), &pPool->CTXMID(StatMonitor,FlushPage), a);
     1068    STAM_PROFILE_STOP_EX(&pVM->pgm.s.CTX_SUFF(pPool)->CTX_SUFF_Z(StatMonitor), &pPool->CTX_MID_Z(StatMonitor,FlushPage), a);
    10691069    return rc;
    10701070}
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