Changeset 21168 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jul 2, 2009 2:28:47 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r21164 r21168 1591 1591 PGM_REG_COUNTER(&pPGM->StatR3PhysWrite, "/PGM/R3/Phys/Write", "The number of times PGMPhysWrite was called."); 1592 1592 PGM_REG_COUNTER_BYTES(&pPGM->StatR3PhysWriteBytes, "/PGM/R3/Phys/Write/Bytes", "The number of bytes written by PGMPhysWrite."); 1593 PGM_REG_COUNTER(&pPGM->StatR3PhysSimpleRead, "/PGM/R3/Phys/Simple/Read", "The number of times PGMPhysSimpleReadGCPtr was called."); 1594 PGM_REG_COUNTER_BYTES(&pPGM->StatR3PhysSimpleReadBytes, "/PGM/R3/Phys/Simple/Read/Bytes", "The number of bytes read by PGMPhysSimpleReadGCPtr."); 1595 PGM_REG_COUNTER(&pPGM->StatR3PhysSimpleWrite, "/PGM/R3/Phys/Simple/Write", "The number of times PGMPhysSimpleWriteGCPtr was called."); 1596 PGM_REG_COUNTER_BYTES(&pPGM->StatR3PhysSimpleWriteBytes, "/PGM/R3/Phys/Simple/Write/Bytes", "The number of bytes written by PGMPhysSimpleWriteGCPtr."); 1593 1597 1594 1598 PGM_REG_COUNTER(&pPGM->StatRZChunkR3MapTlbHits, "/PGM/ChunkR3Map/TlbHitsRZ", "TLB hits."); … … 1622 1626 PGM_REG_COUNTER(&pPGM->StatRZPhysWrite, "/PGM/RZ/Phys/Write", "The number of times PGMPhysWrite was called."); 1623 1627 PGM_REG_COUNTER_BYTES(&pPGM->StatRZPhysWriteBytes, "/PGM/RZ/Phys/Write/Bytes", "The number of bytes written by PGMPhysWrite."); 1628 PGM_REG_COUNTER(&pPGM->StatRZPhysSimpleRead, "/PGM/RZ/Phys/Simple/Read", "The number of times PGMPhysSimpleReadGCPtr was called."); 1629 PGM_REG_COUNTER_BYTES(&pPGM->StatRZPhysSimpleReadBytes, "/PGM/RZ/Phys/Simple/Read/Bytes", "The number of bytes read by PGMPhysSimpleReadGCPtr."); 1630 PGM_REG_COUNTER(&pPGM->StatRZPhysSimpleWrite, "/PGM/RZ/Phys/Simple/Write", "The number of times PGMPhysSimpleWriteGCPtr was called."); 1631 PGM_REG_COUNTER_BYTES(&pPGM->StatRZPhysSimpleWriteBytes, "/PGM/RZ/Phys/Simple/Write/Bytes", "The number of bytes written by PGMPhysSimpleWriteGCPtr."); 1624 1632 1625 1633 /* GC only: */ … … 1633 1641 PGM_REG_COUNTER(&pPGM->StatRCPhysWrite, "/PGM/RC/Phys/Write", "The number of times PGMPhysWrite was called."); 1634 1642 PGM_REG_COUNTER_BYTES(&pPGM->StatRCPhysWriteBytes, "/PGM/RC/Phys/Write/Bytes", "The number of bytes written by PGMPhysWrite."); 1643 PGM_REG_COUNTER(&pPGM->StatRCPhysSimpleRead, "/PGM/RC/Phys/Simple/Read", "The number of times PGMPhysSimpleReadGCPtr was called."); 1644 PGM_REG_COUNTER_BYTES(&pPGM->StatRCPhysSimpleReadBytes, "/PGM/RC/Phys/Simple/Read/Bytes", "The number of bytes read by PGMPhysSimpleReadGCPtr."); 1645 PGM_REG_COUNTER(&pPGM->StatRCPhysSimpleWrite, "/PGM/RC/Phys/Simple/Write", "The number of times PGMPhysSimpleWriteGCPtr was called."); 1646 PGM_REG_COUNTER_BYTES(&pPGM->StatRCPhysSimpleWriteBytes, "/PGM/RC/Phys/Simple/Write/Bytes", "The number of bytes written by PGMPhysSimpleWriteGCPtr."); 1635 1647 1636 1648 # ifdef PGMPOOL_WITH_GCPHYS_TRACKING -
trunk/src/VBox/VMM/PGMInternal.h
r21164 r21168 2493 2493 STAMCOUNTER StatRCPhysWriteBytes; 2494 2494 2495 STAMCOUNTER StatRZPhysSimpleRead; 2496 STAMCOUNTER StatRZPhysSimpleReadBytes; 2497 STAMCOUNTER StatRZPhysSimpleWrite; 2498 STAMCOUNTER StatRZPhysSimpleWriteBytes; 2499 STAMCOUNTER StatR3PhysSimpleRead; 2500 STAMCOUNTER StatR3PhysSimpleReadBytes; 2501 STAMCOUNTER StatR3PhysSimpleWrite; 2502 STAMCOUNTER StatR3PhysSimpleWriteBytes; 2503 STAMCOUNTER StatRCPhysSimpleRead; 2504 STAMCOUNTER StatRCPhysSimpleReadBytes; 2505 STAMCOUNTER StatRCPhysSimpleWrite; 2506 STAMCOUNTER StatRCPhysSimpleWriteBytes; 2507 2495 2508 # ifdef PGMPOOL_WITH_GCPHYS_TRACKING 2496 2509 STAMCOUNTER StatTrackVirgin; /**< The number of first time shadowings. */ -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r21164 r21168 2282 2282 return VINF_SUCCESS; 2283 2283 2284 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleRead)); 2285 STAM_COUNTER_ADD(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleReadBytes), cb); 2286 2284 2287 /* Take the PGM lock here, because many called functions take the lock for a very short period. That's counter-productive 2285 2288 * when many VCPUs are fighting for the lock. … … 2368 2371 if (!cb) 2369 2372 return VINF_SUCCESS; 2373 2374 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleWrite)); 2375 STAM_COUNTER_ADD(&pVM->pgm.s.CTX_MID_Z(Stat,PhysSimpleWriteBytes), cb); 2370 2376 2371 2377 /* map the 1st page */
Note:
See TracChangeset
for help on using the changeset viewer.