Changeset 29435 in vbox
- Timestamp:
- May 12, 2010 8:55:39 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r28800 r29435 1044 1044 STAMCOUNTER StatTransmitBytes; 1045 1045 #if defined(VBOX_WITH_STATISTICS) || defined(E1K_REL_STATS) 1046 STAMPROFILEADV StatMMIORead GC;1047 STAMPROFILEADV StatMMIORead HC;1048 STAMPROFILEADV StatMMIOWrite GC;1049 STAMPROFILEADV StatMMIOWrite HC;1046 STAMPROFILEADV StatMMIOReadRZ; 1047 STAMPROFILEADV StatMMIOReadR3; 1048 STAMPROFILEADV StatMMIOWriteRZ; 1049 STAMPROFILEADV StatMMIOWriteR3; 1050 1050 STAMPROFILEADV StatEEPROMRead; 1051 1051 STAMPROFILEADV StatEEPROMWrite; 1052 STAMPROFILEADV StatIORead GC;1053 STAMPROFILEADV StatIORead HC;1054 STAMPROFILEADV StatIOWrite GC;1055 STAMPROFILEADV StatIOWrite HC;1052 STAMPROFILEADV StatIOReadRZ; 1053 STAMPROFILEADV StatIOReadR3; 1054 STAMPROFILEADV StatIOWriteRZ; 1055 STAMPROFILEADV StatIOWriteR3; 1056 1056 STAMPROFILEADV StatLateIntTimer; 1057 1057 STAMCOUNTER StatLateInts; … … 1061 1061 STAMPROFILEADV StatReceiveFilter; 1062 1062 STAMPROFILEADV StatReceiveStore; 1063 STAMPROFILEADV StatTransmit; 1064 STAMPROFILE StatTransmitSend; 1063 STAMPROFILEADV StatTransmitRZ; 1064 STAMPROFILEADV StatTransmitR3; 1065 STAMPROFILE StatTransmitSendRZ; 1066 STAMPROFILE StatTransmitSendR3; 1065 1067 STAMPROFILE StatRxOverflow; 1066 1068 STAMCOUNTER StatRxOverflowWakeup; … … 3201 3203 //e1kCsLeave(pState); 3202 3204 e1kMutexRelease(pState); 3203 STAM_PROFILE_START(&pState-> StatTransmitSend, a);3205 STAM_PROFILE_START(&pState->CTX_SUFF_Z(StatTransmitSend), a); 3204 3206 rc = pDrv->pfnSendBuf(pDrv, pSg, fOnWorkerThread); 3205 STAM_PROFILE_STOP(&pState-> StatTransmitSend, a);3207 STAM_PROFILE_STOP(&pState->CTX_SUFF_Z(StatTransmitSend), a); 3206 3208 e1kMutexAcquire(pState, VERR_SEM_BUSY, RT_SRC_POS); 3207 3209 //e1kCsEnter(pState, RT_SRC_POS); … … 3622 3624 &pState->StatTxDescTSEData: 3623 3625 &pState->StatTxDescData); 3624 STAM_PROFILE_ADV_START(&pState-> StatTransmit, a);3626 STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatTransmit), a); 3625 3627 E1K_INC_ISTAT_CNT(pState->uStatDescDat); 3626 3628 … … 3708 3710 3709 3711 e1kDescReport(pState, pDesc, addr); 3710 STAM_PROFILE_ADV_STOP(&pState-> StatTransmit, a);3712 STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatTransmit), a); 3711 3713 break; 3712 3714 } … … 3720 3722 } 3721 3723 STAM_COUNTER_INC(&pState->StatTxDescLegacy); 3722 STAM_PROFILE_ADV_START(&pState-> StatTransmit, a);3724 STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatTransmit), a); 3723 3725 3724 3726 /* First fragment: allocate new buffer. */ … … 3750 3752 3751 3753 e1kDescReport(pState, pDesc, addr); 3752 STAM_PROFILE_ADV_STOP(&pState-> StatTransmit, a);3754 STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatTransmit), a); 3753 3755 break; 3754 3756 … … 3808 3810 } 3809 3811 3810 STAM_PROFILE_ADV_STOP(&pState-> StatTransmit, a);3812 STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatTransmit), a); 3811 3813 } 3812 3814 … … 4358 4360 E1KSTATE *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *); 4359 4361 uint32_t uOffset = GCPhysAddr - pState->addrMMReg; 4360 STAM_PROFILE_ADV_START(&pState->CTX SUFF(StatMMIORead), a);4362 STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatMMIORead), a); 4361 4363 4362 4364 Assert(uOffset < E1K_MM_SIZE); 4363 4365 4364 4366 int rc = e1kRegRead(pState, uOffset, pv, cb); 4365 STAM_PROFILE_ADV_STOP(&pState->CTX SUFF(StatMMIORead), a);4367 STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatMMIORead), a); 4366 4368 return rc; 4367 4369 } … … 4386 4388 uint32_t uOffset = GCPhysAddr - pState->addrMMReg; 4387 4389 int rc; 4388 STAM_PROFILE_ADV_START(&pState->CTX SUFF(StatMMIOWrite), a);4390 STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatMMIOWrite), a); 4389 4391 4390 4392 Assert(uOffset < E1K_MM_SIZE); … … 4397 4399 rc = e1kRegWrite(pState, uOffset, pv, cb); 4398 4400 4399 STAM_PROFILE_ADV_STOP(&pState->CTX SUFF(StatMMIOWrite), a);4401 STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatMMIOWrite), a); 4400 4402 return rc; 4401 4403 } … … 4419 4421 int rc = VINF_SUCCESS; 4420 4422 const char *szInst = INSTANCE(pState); 4421 STAM_PROFILE_ADV_START(&pState->CTX SUFF(StatIORead), a);4423 STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatIORead), a); 4422 4424 4423 4425 port -= pState->addrIOPort; … … 4447 4449 } 4448 4450 4449 STAM_PROFILE_ADV_STOP(&pState->CTX SUFF(StatIORead), a);4451 STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatIORead), a); 4450 4452 return rc; 4451 4453 } … … 4470 4472 int rc = VINF_SUCCESS; 4471 4473 const char *szInst = INSTANCE(pState); 4472 STAM_PROFILE_ADV_START(&pState->CTX SUFF(StatIOWrite), a);4474 STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatIOWrite), a); 4473 4475 4474 4476 E1kLog2(("%s e1kIOPortOut: port=%RTiop value=%08x\n", szInst, port, u32)); … … 4503 4505 } 4504 4506 4505 STAM_PROFILE_ADV_STOP(&pState->CTX SUFF(StatIOWrite), a);4507 STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatIOWrite), a); 4506 4508 return rc; 4507 4509 } … … 5846 5848 5847 5849 #if defined(VBOX_WITH_STATISTICS) || defined(E1K_REL_STATS) 5848 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIORead GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in GC", "/Devices/E1k%d/MMIO/ReadGC", iInstance);5849 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIORead HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in HC", "/Devices/E1k%d/MMIO/ReadHC", iInstance);5850 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOWrite GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in GC", "/Devices/E1k%d/MMIO/WriteGC", iInstance);5851 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOWrite HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in HC", "/Devices/E1k%d/MMIO/WriteHC", iInstance);5850 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOReadRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in RZ", "/Devices/E1k%d/MMIO/ReadRZ", iInstance); 5851 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOReadR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in R3", "/Devices/E1k%d/MMIO/ReadR3", iInstance); 5852 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOWriteRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in RZ", "/Devices/E1k%d/MMIO/WriteRZ", iInstance); 5853 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOWriteR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in R3", "/Devices/E1k%d/MMIO/WriteR3", iInstance); 5852 5854 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatEEPROMRead, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling EEPROM reads", "/Devices/E1k%d/EEPROM/Read", iInstance); 5853 5855 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatEEPROMWrite, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling EEPROM writes", "/Devices/E1k%d/EEPROM/Write", iInstance); 5854 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIORead GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in GC", "/Devices/E1k%d/IO/ReadGC", iInstance);5855 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIORead HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in HC", "/Devices/E1k%d/IO/ReadHC", iInstance);5856 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOWrite GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in GC", "/Devices/E1k%d/IO/WriteGC", iInstance);5857 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOWrite HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in HC", "/Devices/E1k%d/IO/WriteHC", iInstance);5856 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOReadRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in RZ", "/Devices/E1k%d/IO/ReadRZ", iInstance); 5857 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOReadR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in R3", "/Devices/E1k%d/IO/ReadR3", iInstance); 5858 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOWriteRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in RZ", "/Devices/E1k%d/IO/WriteRZ", iInstance); 5859 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOWriteR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in R3", "/Devices/E1k%d/IO/WriteR3", iInstance); 5858 5860 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatLateIntTimer, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling late int timer", "/Devices/E1k%d/LateInt/Timer", iInstance); 5859 5861 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatLateInts, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of late interrupts", "/Devices/E1k%d/LateInt/Occured", iInstance); … … 5868 5870 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatReceiveBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data received", "/Devices/E1k%d/ReceiveBytes", iInstance); 5869 5871 #if defined(VBOX_WITH_STATISTICS) || defined(E1K_REL_STATS) 5870 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmit, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling transmits in HC", "/Devices/E1k%d/Transmit/Total", iInstance); 5872 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmitRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling transmits in RZ", "/Devices/E1k%d/Transmit/TotalRZ", iInstance); 5873 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmitR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling transmits in R3", "/Devices/E1k%d/Transmit/TotalR3", iInstance); 5871 5874 #endif /* VBOX_WITH_STATISTICS || E1K_REL_STATS */ 5872 5875 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmitBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data transmitted", "/Devices/E1k%d/TransmitBytes", iInstance); 5873 5876 #if defined(VBOX_WITH_STATISTICS) || defined(E1K_REL_STATS) 5874 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmitSend, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling send transmit in HC", "/Devices/E1k%d/Transmit/Send", iInstance); 5877 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmitSendRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling send transmit in RZ", "/Devices/E1k%d/Transmit/SendRZ", iInstance); 5878 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmitSendR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling send transmit in R3", "/Devices/E1k%d/Transmit/SendR3", iInstance); 5875 5879 5876 5880 PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTxDescCtxNormal, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of normal context descriptors","/Devices/E1k%d/TxDesc/ContexNormal", iInstance); -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r28800 r29435 272 272 STAMCOUNTER StatTransmitBytes; 273 273 #ifdef VBOX_WITH_STATISTICS 274 STAMPROFILEADV StatMMIORead GC;275 STAMPROFILEADV StatMMIORead HC;276 STAMPROFILEADV StatMMIOWrite GC;277 STAMPROFILEADV StatMMIOWrite HC;274 STAMPROFILEADV StatMMIOReadRZ; 275 STAMPROFILEADV StatMMIOReadR3; 276 STAMPROFILEADV StatMMIOWriteRZ; 277 STAMPROFILEADV StatMMIOWriteR3; 278 278 STAMPROFILEADV StatAPROMRead; 279 279 STAMPROFILEADV StatAPROMWrite; 280 STAMPROFILEADV StatIORead GC;281 STAMPROFILEADV StatIORead HC;282 STAMPROFILEADV StatIOWrite GC;283 STAMPROFILEADV StatIOWrite HC;280 STAMPROFILEADV StatIOReadRZ; 281 STAMPROFILEADV StatIOReadR3; 282 STAMPROFILEADV StatIOWriteRZ; 283 STAMPROFILEADV StatIOWriteR3; 284 284 STAMPROFILEADV StatTimer; 285 285 STAMPROFILEADV StatReceive; 286 STAMPROFILEADV StatTransmit; 286 STAMPROFILEADV StatTransmitR3; 287 STAMPROFILEADV StatTransmitRZ; 287 288 STAMCOUNTER StatTransmitCase1; 288 289 STAMCOUNTER StatTransmitCase2; 289 STAMPROFILE StatTransmitSend; 290 STAMPROFILEADV StatTdtePollGC; 291 STAMPROFILEADV StatTdtePollHC; 292 STAMPROFILEADV StatTmdStoreGC; 293 STAMPROFILEADV StatTmdStoreHC; 294 STAMPROFILEADV StatRdtePollGC; 295 STAMPROFILEADV StatRdtePollHC; 290 STAMPROFILE StatTransmitSendR3; 291 STAMPROFILE StatTransmitSendRZ; 292 STAMPROFILEADV StatTdtePollRZ; 293 STAMPROFILEADV StatTdtePollR3; 294 STAMPROFILEADV StatTmdStoreRZ; 295 STAMPROFILEADV StatTmdStoreR3; 296 STAMPROFILEADV StatRdtePollR3; 297 STAMPROFILEADV StatRdtePollRZ; 296 298 STAMPROFILE StatRxOverflow; 297 299 STAMCOUNTER StatRxOverflowWakeup; … … 305 307 STAMCOUNTER StatRCVRingWrite; 306 308 STAMCOUNTER StatTXRingWrite; 307 STAMCOUNTER StatRingWrite HC;309 STAMCOUNTER StatRingWriteR3; 308 310 STAMCOUNTER StatRingWriteR0; 309 STAMCOUNTER StatRingWrite GC;310 311 STAMCOUNTER StatRingWriteFailed HC;311 STAMCOUNTER StatRingWriteRC; 312 313 STAMCOUNTER StatRingWriteFailedR3; 312 314 STAMCOUNTER StatRingWriteFailedR0; 313 STAMCOUNTER StatRingWriteFailed GC;314 315 STAMCOUNTER StatRingWriteOutside HC;315 STAMCOUNTER StatRingWriteFailedRC; 316 317 STAMCOUNTER StatRingWriteOutsideR3; 316 318 STAMCOUNTER StatRingWriteOutsideR0; 317 STAMCOUNTER StatRingWriteOutside GC;319 STAMCOUNTER StatRingWriteOutsideRC; 318 320 # endif 319 321 #endif /* VBOX_WITH_STATISTICS */ … … 692 694 DECLINLINE(void) pcnetTmdStorePassHost(PCNetState *pThis, TMD *tmd, RTGCPHYS32 addr) 693 695 { 694 STAM_PROFILE_ADV_START(&pThis->CTX SUFF(StatTmdStore), a);696 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatTmdStore), a); 695 697 PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pThis); 696 698 if (pThis->fPrivIfEnabled) … … 734 736 PDMDevHlpPhysWrite(pDevIns, addr+7, (uint8_t*)xda + 7, 1); 735 737 } 736 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatTmdStore), a);738 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTmdStore), a); 737 739 } 738 740 … … 1674 1676 static void pcnetRdtePoll(PCNetState *pThis, bool fSkipCurrent=false) 1675 1677 { 1676 STAM_PROFILE_ADV_START(&pThis->CTX SUFF(StatRdtePoll), a);1678 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatRdtePoll), a); 1677 1679 /* assume lack of a next receive descriptor */ 1678 1680 CSR_NRST(pThis) = 0; … … 1697 1699 if (!pcnetRmdLoad(pThis, &rmd, PHYSADDR(pThis, addr), true)) 1698 1700 { 1699 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatRdtePoll), a);1701 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a); 1700 1702 return; 1701 1703 } … … 1719 1721 else 1720 1722 { 1721 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatRdtePoll), a);1723 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a); 1722 1724 /* This is not problematic since we don't own the descriptor 1723 1725 * We actually do own it, otherwise pcnetRmdLoad would have returned false. … … 1741 1743 if (!pcnetRmdLoad(pThis, &rmd, PHYSADDR(pThis, addr), true)) 1742 1744 { 1743 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatRdtePoll), a);1745 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a); 1744 1746 return; 1745 1747 } … … 1753 1755 else 1754 1756 { 1755 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatRdtePoll), a);1757 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a); 1756 1758 /* This is not problematic since we don't own the descriptor 1757 1759 * We actually do own it, otherwise pcnetRmdLoad would have returned false. … … 1773 1775 CSR_CRBC(pThis) = CSR_NRBC(pThis) = CSR_CRST(pThis) = 0; 1774 1776 } 1775 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatRdtePoll), a);1777 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a); 1776 1778 } 1777 1779 … … 1782 1784 static int pcnetTdtePoll(PCNetState *pThis, TMD *tmd) 1783 1785 { 1784 STAM_PROFILE_ADV_START(&pThis->CTX SUFF(StatTdtePoll), a);1786 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatTdtePoll), a); 1785 1787 if (RT_LIKELY(pThis->GCTDRA)) 1786 1788 { … … 1789 1791 if (!pcnetTmdLoad(pThis, tmd, PHYSADDR(pThis, cxda), true)) 1790 1792 { 1791 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatTdtePoll), a);1793 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a); 1792 1794 return 0; 1793 1795 } … … 1795 1797 if (RT_UNLIKELY(tmd->tmd1.ones != 15)) 1796 1798 { 1797 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatTdtePoll), a);1799 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a); 1798 1800 LogRel(("PCNet#%d: BAD TMD XDA=%#010x\n", 1799 1801 PCNET_INST_NR, PHYSADDR(pThis, cxda))); … … 1810 1812 CSR_CXBC(pThis) = tmd->tmd1.bcnt; 1811 1813 CSR_CXST(pThis) = ((uint32_t *)tmd)[1] >> 16; 1812 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatTdtePoll), a);1814 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a); 1813 1815 return CARD_IS_OWNER(CSR_CXST(pThis)); 1814 1816 } … … 1818 1820 CSR_CXDA(pThis) = 0; 1819 1821 CSR_CXBC(pThis) = CSR_CXST(pThis) = 0; 1820 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatTdtePoll), a);1822 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a); 1821 1823 return 0; 1822 1824 } … … 2170 2172 * the loop and make it part of the driver<->device contract, saving 2171 2173 * critsect mess down in DrvIntNet. */ 2172 STAM_PROFILE_START(&pThis-> StatTransmitSend, a);2174 STAM_PROFILE_START(&pThis->CTX_SUFF_Z(StatTransmitSend), a); 2173 2175 if (pSgBuf->cbUsed > 70) /* unqualified guess */ 2174 2176 pThis->Led.Asserted.s.fWriting = pThis->Led.Actual.s.fWriting = 1; … … 2184 2186 2185 2187 pThis->Led.Actual.s.fWriting = 0; 2186 STAM_PROFILE_STOP(&pThis-> StatTransmitSend, a);2188 STAM_PROFILE_STOP(&pThis->CTX_SUFF_Z(StatTransmitSend), a); 2187 2189 } 2188 2190 return rc; … … 2399 2401 int rc; 2400 2402 unsigned cFlushIrq = 0; 2401 STAM_PROFILE_ADV_START(&pThis-> StatTransmit, a);2403 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatTransmit), a); 2402 2404 do 2403 2405 { … … 2448 2450 else if (rc == VERR_TRY_AGAIN) 2449 2451 { 2450 STAM_PROFILE_ADV_STOP(&pThis-> StatTransmit, a);2452 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTransmit), a); 2451 2453 return VINF_SUCCESS; 2452 2454 } … … 2507 2509 if (rc == VERR_TRY_AGAIN) 2508 2510 { 2509 STAM_PROFILE_ADV_STOP(&pThis-> StatTransmit, a);2511 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTransmit), a); 2510 2512 return VINF_SUCCESS; 2511 2513 } … … 2628 2630 } 2629 2631 2630 STAM_PROFILE_ADV_STOP(&pThis-> StatTransmit, a);2632 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTransmit), a); 2631 2633 2632 2634 return VINF_SUCCESS; … … 3716 3718 int rc = VINF_SUCCESS; 3717 3719 3718 STAM_PROFILE_ADV_START(&pThis->CTX SUFF(StatIORead), a);3720 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatIORead), a); 3719 3721 rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_IOPORT_READ); 3720 3722 if (RT_LIKELY(rc == VINF_SUCCESS)) … … 3732 3734 PDMCritSectLeave(&pThis->CritSect); 3733 3735 } 3734 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatIORead), a);3736 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatIORead), a); 3735 3737 Log2(("#%d pcnetIOPortRead: Port=%RTiop *pu32=%#RX32 cb=%d rc=%Rrc\n", PCNET_INST_NR, Port, *pu32, cb, rc)); 3736 3738 #ifdef LOG_ENABLED … … 3759 3761 int rc = VINF_SUCCESS; 3760 3762 3761 STAM_PROFILE_ADV_START(&pThis->CTX SUFF(StatIOWrite), a);3763 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatIOWrite), a); 3762 3764 rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_IOPORT_WRITE); 3763 3765 if (RT_LIKELY(rc == VINF_SUCCESS)) … … 3775 3777 PDMCritSectLeave(&pThis->CritSect); 3776 3778 } 3777 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatIOWrite), a);3779 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatIOWrite), a); 3778 3780 Log2(("#%d pcnetIOPortWrite: Port=%RTiop u32=%#RX32 cb=%d rc=%Rrc\n", PCNET_INST_NR, Port, u32, cb, rc)); 3779 3781 #ifdef LOG_ENABLED … … 3807 3809 if (GCPhysAddr - pThis->MMIOBase < PCNET_PNPMMIO_SIZE) 3808 3810 { 3809 STAM_PROFILE_ADV_START(&pThis->CTX SUFF(StatMMIORead), a);3811 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatMMIORead), a); 3810 3812 rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_MMIO_READ); 3811 3813 if (RT_LIKELY(rc == VINF_SUCCESS)) … … 3823 3825 PDMCritSectLeave(&pThis->CritSect); 3824 3826 } 3825 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatMMIORead), a);3827 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatMMIORead), a); 3826 3828 } 3827 3829 else … … 3860 3862 if (GCPhysAddr - pThis->MMIOBase < PCNET_PNPMMIO_SIZE) 3861 3863 { 3862 STAM_PROFILE_ADV_START(&pThis->CTX SUFF(StatMMIOWrite), a);3864 STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatMMIOWrite), a); 3863 3865 rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_MMIO_WRITE); 3864 3866 if (RT_LIKELY(rc == VINF_SUCCESS)) … … 3878 3880 // else rc == VINF_IOM_HC_MMIO_WRITE => handle in ring3 3879 3881 3880 STAM_PROFILE_ADV_STOP(&pThis->CTX SUFF(StatMMIOWrite), a);3882 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatMMIOWrite), a); 3881 3883 } 3882 3884 LogFlow(("#%d pcnetMMIOWrite: pvUser=%p:{%.*Rhxs} cb=%d GCPhysAddr=%RGp rc=%Rrc\n", … … 5282 5284 5283 5285 #ifdef VBOX_WITH_STATISTICS 5284 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIORead GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in GC", "/Devices/PCNet%d/MMIO/ReadGC", iInstance);5285 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIORead HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in HC", "/Devices/PCNet%d/MMIO/ReadHC", iInstance);5286 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOWrite GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in GC", "/Devices/PCNet%d/MMIO/WriteGC", iInstance);5287 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOWrite HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in HC", "/Devices/PCNet%d/MMIO/WriteHC", iInstance);5286 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOReadRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in RZ", "/Devices/PCNet%d/MMIO/ReadRZ", iInstance); 5287 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOReadR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in R3", "/Devices/PCNet%d/MMIO/ReadR3", iInstance); 5288 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOWriteRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in RZ", "/Devices/PCNet%d/MMIO/WriteRZ", iInstance); 5289 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOWriteR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in R3", "/Devices/PCNet%d/MMIO/WriteR3", iInstance); 5288 5290 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatAPROMRead, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling APROM reads", "/Devices/PCNet%d/IO/APROMRead", iInstance); 5289 5291 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatAPROMWrite, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling APROM writes", "/Devices/PCNet%d/IO/APROMWrite", iInstance); 5290 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIORead GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in GC", "/Devices/PCNet%d/IO/ReadGC", iInstance);5291 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIORead HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in HC", "/Devices/PCNet%d/IO/ReadHC", iInstance);5292 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOWrite GC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in GC", "/Devices/PCNet%d/IO/WriteGC", iInstance);5293 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOWrite HC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in HC", "/Devices/PCNet%d/IO/WriteHC", iInstance);5292 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOReadRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in RZ", "/Devices/PCNet%d/IO/ReadRZ", iInstance); 5293 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOReadR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in R3", "/Devices/PCNet%d/IO/ReadR3", iInstance); 5294 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOWriteRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in RZ", "/Devices/PCNet%d/IO/WriteRZ", iInstance); 5295 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOWriteR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in R3", "/Devices/PCNet%d/IO/WriteR3", iInstance); 5294 5296 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTimer, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling Timer", "/Devices/PCNet%d/Timer", iInstance); 5295 5297 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatReceive, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling receive", "/Devices/PCNet%d/Receive", iInstance); … … 5301 5303 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitCase1, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Single descriptor transmit", "/Devices/PCNet%d/Transmit/Case1", iInstance); 5302 5304 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitCase2, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Multi descriptor transmit", "/Devices/PCNet%d/Transmit/Case2", iInstance); 5303 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmit, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling transmits in HC", "/Devices/PCNet%d/Transmit/Total", iInstance); 5305 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling transmits in RZ", "/Devices/PCNet%d/Transmit/TotalRZ", iInstance); 5306 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling transmits in R3", "/Devices/PCNet%d/Transmit/TotalR3", iInstance); 5304 5307 #endif 5305 5308 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data transmitted", "/Devices/PCNet%d/TransmitBytes", iInstance); 5306 5309 #ifdef VBOX_WITH_STATISTICS 5307 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitSend, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet send transmit in HC","/Devices/PCNet%d/Transmit/Send", iInstance); 5308 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTdtePollGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in GC", "/Devices/PCNet%d/TdtePollGC", iInstance); 5309 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTdtePollHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in HC", "/Devices/PCNet%d/TdtePollHC", iInstance); 5310 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRdtePollGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in GC", "/Devices/PCNet%d/RdtePollGC", iInstance); 5311 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRdtePollHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in HC", "/Devices/PCNet%d/RdtePollHC", iInstance); 5312 5313 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTmdStoreGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in GC", "/Devices/PCNet%d/TmdStoreGC", iInstance); 5314 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTmdStoreHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in HC", "/Devices/PCNet%d/TmdStoreHC", iInstance); 5310 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitSendRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet send transmit in RZ","/Devices/PCNet%d/Transmit/SendRZ", iInstance); 5311 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitSendR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet send transmit in R3","/Devices/PCNet%d/Transmit/SendR3", iInstance); 5312 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTdtePollRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in RZ", "/Devices/PCNet%d/TdtePollRZ", iInstance); 5313 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTdtePollR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in R3", "/Devices/PCNet%d/TdtePollR3", iInstance); 5314 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRdtePollRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in RZ", "/Devices/PCNet%d/RdtePollRZ", iInstance); 5315 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRdtePollR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in R3", "/Devices/PCNet%d/RdtePollR3", iInstance); 5316 5317 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTmdStoreRZ, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in RZ", "/Devices/PCNet%d/TmdStoreRZ", iInstance); 5318 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTmdStoreR3, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in R3", "/Devices/PCNet%d/TmdStoreR3", iInstance); 5315 5319 5316 5320 unsigned i; … … 5331 5335 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRCVRingWrite, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of receive ring writes", "/Devices/PCNet%d/Ring/RCVWrites", iInstance); 5332 5336 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTXRingWrite, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of transmit ring writes", "/Devices/PCNet%d/Ring/TXWrites", iInstance); 5333 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWrite HC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored ring page writes", "/Devices/PCNet%d/Ring/HC/Writes", iInstance);5337 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteR3, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored ring page writes", "/Devices/PCNet%d/Ring/R3/Writes", iInstance); 5334 5338 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteR0, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored ring page writes", "/Devices/PCNet%d/Ring/R0/Writes", iInstance); 5335 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWrite GC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored ring page writes", "/Devices/PCNet%d/Ring/GC/Writes", iInstance);5336 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteFailed HC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of failed ring page writes", "/Devices/PCNet%d/Ring/HC/Failed", iInstance);5339 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteRC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored ring page writes", "/Devices/PCNet%d/Ring/RC/Writes", iInstance); 5340 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteFailedR3, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of failed ring page writes", "/Devices/PCNet%d/Ring/R3/Failed", iInstance); 5337 5341 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteFailedR0, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of failed ring page writes", "/Devices/PCNet%d/Ring/R0/Failed", iInstance); 5338 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteFailed GC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of failed ring page writes", "/Devices/PCNet%d/Ring/GC/Failed", iInstance);5339 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteOutside HC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored writes outside ring","/Devices/PCNet%d/Ring/HC/Outside", iInstance);5342 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteFailedRC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of failed ring page writes", "/Devices/PCNet%d/Ring/RC/Failed", iInstance); 5343 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteOutsideR3, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored writes outside ring","/Devices/PCNet%d/Ring/R3/Outside", iInstance); 5340 5344 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteOutsideR0, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored writes outside ring","/Devices/PCNet%d/Ring/R0/Outside", iInstance); 5341 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteOutside GC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored writes outside ring","/Devices/PCNet%d/Ring/GC/Outside", iInstance);5345 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteOutsideRC, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Nr of monitored writes outside ring","/Devices/PCNet%d/Ring/RC/Outside", iInstance); 5342 5346 # endif /* PCNET_NO_POLLING */ 5343 5347 #endif -
trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
r29080 r29435 270 270 CHECK_MEMBER_ALIGNMENT(E1KSTATE, cs, 8); 271 271 CHECK_MEMBER_ALIGNMENT(E1KSTATE, csRx, 8); 272 CHECK_MEMBER_ALIGNMENT(E1KSTATE, StatReceiveBytes, 8); 272 273 #endif 273 274 #ifdef VBOX_WITH_VIRTIO … … 300 301 CHECK_MEMBER_ALIGNMENT(PCNetState, u64LastPoll, 8); 301 302 CHECK_MEMBER_ALIGNMENT(PCNetState, CritSect, 8); 303 CHECK_MEMBER_ALIGNMENT(PCNetState, StatReceiveBytes, 8); 302 304 #ifdef VBOX_WITH_STATISTICS 303 CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIORead GC, 8);305 CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIOReadRZ, 8); 304 306 #endif 305 307 CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8); -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r29033 r29435 427 427 GEN_CHECK_OFF(PCNetState, u32LinkSpeed); 428 428 GEN_CHECK_OFF(PCNetState, StatReceiveBytes); 429 GEN_CHECK_OFF(PCNetState, StatTransmitBytes); 429 430 #ifdef VBOX_WITH_STATISTICS 430 GEN_CHECK_OFF(PCNetState, StatMMIOReadGC); 431 GEN_CHECK_OFF(PCNetState, StatMMIOReadR3); 432 GEN_CHECK_OFF(PCNetState, StatMMIOReadRZ); 431 433 GEN_CHECK_OFF(PCNetState, StatMIIReads); 432 434 # ifdef PCNET_NO_POLLING 433 435 GEN_CHECK_OFF(PCNetState, StatRCVRingWrite); 434 GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRange GC);436 GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeR3); 435 437 # endif 436 438 #endif
Note:
See TracChangeset
for help on using the changeset viewer.