VirtualBox

Changeset 29435 in vbox


Ignore:
Timestamp:
May 12, 2010 8:55:39 PM (15 years ago)
Author:
vboxsync
Message:

DevPCNet,DevE1000: Statistics/profiling.

Location:
trunk/src/VBox/Devices
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r28800 r29435  
    10441044    STAMCOUNTER                         StatTransmitBytes;
    10451045#if defined(VBOX_WITH_STATISTICS) || defined(E1K_REL_STATS)
    1046     STAMPROFILEADV                      StatMMIOReadGC;
    1047     STAMPROFILEADV                      StatMMIOReadHC;
    1048     STAMPROFILEADV                      StatMMIOWriteGC;
    1049     STAMPROFILEADV                      StatMMIOWriteHC;
     1046    STAMPROFILEADV                      StatMMIOReadRZ;
     1047    STAMPROFILEADV                      StatMMIOReadR3;
     1048    STAMPROFILEADV                      StatMMIOWriteRZ;
     1049    STAMPROFILEADV                      StatMMIOWriteR3;
    10501050    STAMPROFILEADV                      StatEEPROMRead;
    10511051    STAMPROFILEADV                      StatEEPROMWrite;
    1052     STAMPROFILEADV                      StatIOReadGC;
    1053     STAMPROFILEADV                      StatIOReadHC;
    1054     STAMPROFILEADV                      StatIOWriteGC;
    1055     STAMPROFILEADV                      StatIOWriteHC;
     1052    STAMPROFILEADV                      StatIOReadRZ;
     1053    STAMPROFILEADV                      StatIOReadR3;
     1054    STAMPROFILEADV                      StatIOWriteRZ;
     1055    STAMPROFILEADV                      StatIOWriteR3;
    10561056    STAMPROFILEADV                      StatLateIntTimer;
    10571057    STAMCOUNTER                         StatLateInts;
     
    10611061    STAMPROFILEADV                      StatReceiveFilter;
    10621062    STAMPROFILEADV                      StatReceiveStore;
    1063     STAMPROFILEADV                      StatTransmit;
    1064     STAMPROFILE                         StatTransmitSend;
     1063    STAMPROFILEADV                      StatTransmitRZ;
     1064    STAMPROFILEADV                      StatTransmitR3;
     1065    STAMPROFILE                         StatTransmitSendRZ;
     1066    STAMPROFILE                         StatTransmitSendR3;
    10651067    STAMPROFILE                         StatRxOverflow;
    10661068    STAMCOUNTER                         StatRxOverflowWakeup;
     
    32013203            //e1kCsLeave(pState);
    32023204            e1kMutexRelease(pState);
    3203             STAM_PROFILE_START(&pState->StatTransmitSend, a);
     3205            STAM_PROFILE_START(&pState->CTX_SUFF_Z(StatTransmitSend), a);
    32043206            rc = pDrv->pfnSendBuf(pDrv, pSg, fOnWorkerThread);
    3205             STAM_PROFILE_STOP(&pState->StatTransmitSend, a);
     3207            STAM_PROFILE_STOP(&pState->CTX_SUFF_Z(StatTransmitSend), a);
    32063208            e1kMutexAcquire(pState, VERR_SEM_BUSY, RT_SRC_POS);
    32073209            //e1kCsEnter(pState, RT_SRC_POS);
     
    36223624                             &pState->StatTxDescTSEData:
    36233625                             &pState->StatTxDescData);
    3624             STAM_PROFILE_ADV_START(&pState->StatTransmit, a);
     3626            STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatTransmit), a);
    36253627            E1K_INC_ISTAT_CNT(pState->uStatDescDat);
    36263628
     
    37083710
    37093711            e1kDescReport(pState, pDesc, addr);
    3710             STAM_PROFILE_ADV_STOP(&pState->StatTransmit, a);
     3712            STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatTransmit), a);
    37113713            break;
    37123714        }
     
    37203722            }
    37213723            STAM_COUNTER_INC(&pState->StatTxDescLegacy);
    3722             STAM_PROFILE_ADV_START(&pState->StatTransmit, a);
     3724            STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatTransmit), a);
    37233725
    37243726            /* First fragment: allocate new buffer. */
     
    37503752
    37513753            e1kDescReport(pState, pDesc, addr);
    3752             STAM_PROFILE_ADV_STOP(&pState->StatTransmit, a);
     3754            STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatTransmit), a);
    37533755            break;
    37543756
     
    38083810            }
    38093811
    3810             STAM_PROFILE_ADV_STOP(&pState->StatTransmit, a);
     3812            STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatTransmit), a);
    38113813        }
    38123814
     
    43584360    E1KSTATE  *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *);
    43594361    uint32_t  uOffset = GCPhysAddr - pState->addrMMReg;
    4360     STAM_PROFILE_ADV_START(&pState->CTXSUFF(StatMMIORead), a);
     4362    STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatMMIORead), a);
    43614363
    43624364    Assert(uOffset < E1K_MM_SIZE);
    43634365
    43644366    int rc = e1kRegRead(pState, uOffset, pv, cb);
    4365     STAM_PROFILE_ADV_STOP(&pState->CTXSUFF(StatMMIORead), a);
     4367    STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatMMIORead), a);
    43664368    return rc;
    43674369}
     
    43864388    uint32_t  uOffset = GCPhysAddr - pState->addrMMReg;
    43874389    int       rc;
    4388     STAM_PROFILE_ADV_START(&pState->CTXSUFF(StatMMIOWrite), a);
     4390    STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatMMIOWrite), a);
    43894391
    43904392    Assert(uOffset < E1K_MM_SIZE);
     
    43974399        rc = e1kRegWrite(pState, uOffset, pv, cb);
    43984400
    4399     STAM_PROFILE_ADV_STOP(&pState->CTXSUFF(StatMMIOWrite), a);
     4401    STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatMMIOWrite), a);
    44004402    return rc;
    44014403}
     
    44194421    int         rc     = VINF_SUCCESS;
    44204422    const char *szInst = INSTANCE(pState);
    4421     STAM_PROFILE_ADV_START(&pState->CTXSUFF(StatIORead), a);
     4423    STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatIORead), a);
    44224424
    44234425    port -= pState->addrIOPort;
     
    44474449        }
    44484450
    4449     STAM_PROFILE_ADV_STOP(&pState->CTXSUFF(StatIORead), a);
     4451    STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatIORead), a);
    44504452    return rc;
    44514453}
     
    44704472    int         rc     = VINF_SUCCESS;
    44714473    const char *szInst = INSTANCE(pState);
    4472     STAM_PROFILE_ADV_START(&pState->CTXSUFF(StatIOWrite), a);
     4474    STAM_PROFILE_ADV_START(&pState->CTX_SUFF_Z(StatIOWrite), a);
    44734475
    44744476    E1kLog2(("%s e1kIOPortOut: port=%RTiop value=%08x\n", szInst, port, u32));
     
    45034505    }
    45044506
    4505     STAM_PROFILE_ADV_STOP(&pState->CTXSUFF(StatIOWrite), a);
     4507    STAM_PROFILE_ADV_STOP(&pState->CTX_SUFF_Z(StatIOWrite), a);
    45064508    return rc;
    45074509}
     
    58465848
    58475849#if defined(VBOX_WITH_STATISTICS) || defined(E1K_REL_STATS)
    5848     PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOReadGC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in GC",         "/Devices/E1k%d/MMIO/ReadGC", iInstance);
    5849     PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOReadHC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in HC",         "/Devices/E1k%d/MMIO/ReadHC", iInstance);
    5850     PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOWriteGC,        STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in GC",        "/Devices/E1k%d/MMIO/WriteGC", iInstance);
    5851     PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatMMIOWriteHC,        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);
    58525854    PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatEEPROMRead,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling EEPROM reads",             "/Devices/E1k%d/EEPROM/Read", iInstance);
    58535855    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->StatIOReadGC,           STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in GC",           "/Devices/E1k%d/IO/ReadGC", iInstance);
    5855     PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOReadHC,           STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in HC",           "/Devices/E1k%d/IO/ReadHC", iInstance);
    5856     PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOWriteGC,          STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in GC",          "/Devices/E1k%d/IO/WriteGC", iInstance);
    5857     PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatIOWriteHC,          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);
    58585860    PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatLateIntTimer,       STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling late int timer",           "/Devices/E1k%d/LateInt/Timer", iInstance);
    58595861    PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatLateInts,           STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES,     "Number of late interrupts",          "/Devices/E1k%d/LateInt/Occured", iInstance);
     
    58685870    PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatReceiveBytes,       STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES,          "Amount of data received",            "/Devices/E1k%d/ReceiveBytes", iInstance);
    58695871#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);
    58715874#endif /* VBOX_WITH_STATISTICS || E1K_REL_STATS */
    58725875    PDMDevHlpSTAMRegisterF(pDevIns, &pState->StatTransmitBytes,      STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES,          "Amount of data transmitted",         "/Devices/E1k%d/TransmitBytes", iInstance);
    58735876#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);
    58755879
    58765880    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  
    272272    STAMCOUNTER                         StatTransmitBytes;
    273273#ifdef VBOX_WITH_STATISTICS
    274     STAMPROFILEADV                      StatMMIOReadGC;
    275     STAMPROFILEADV                      StatMMIOReadHC;
    276     STAMPROFILEADV                      StatMMIOWriteGC;
    277     STAMPROFILEADV                      StatMMIOWriteHC;
     274    STAMPROFILEADV                      StatMMIOReadRZ;
     275    STAMPROFILEADV                      StatMMIOReadR3;
     276    STAMPROFILEADV                      StatMMIOWriteRZ;
     277    STAMPROFILEADV                      StatMMIOWriteR3;
    278278    STAMPROFILEADV                      StatAPROMRead;
    279279    STAMPROFILEADV                      StatAPROMWrite;
    280     STAMPROFILEADV                      StatIOReadGC;
    281     STAMPROFILEADV                      StatIOReadHC;
    282     STAMPROFILEADV                      StatIOWriteGC;
    283     STAMPROFILEADV                      StatIOWriteHC;
     280    STAMPROFILEADV                      StatIOReadRZ;
     281    STAMPROFILEADV                      StatIOReadR3;
     282    STAMPROFILEADV                      StatIOWriteRZ;
     283    STAMPROFILEADV                      StatIOWriteR3;
    284284    STAMPROFILEADV                      StatTimer;
    285285    STAMPROFILEADV                      StatReceive;
    286     STAMPROFILEADV                      StatTransmit;
     286    STAMPROFILEADV                      StatTransmitR3;
     287    STAMPROFILEADV                      StatTransmitRZ;
    287288    STAMCOUNTER                         StatTransmitCase1;
    288289    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;
    296298    STAMPROFILE                         StatRxOverflow;
    297299    STAMCOUNTER                         StatRxOverflowWakeup;
     
    305307    STAMCOUNTER                         StatRCVRingWrite;
    306308    STAMCOUNTER                         StatTXRingWrite;
    307     STAMCOUNTER                         StatRingWriteHC;
     309    STAMCOUNTER                         StatRingWriteR3;
    308310    STAMCOUNTER                         StatRingWriteR0;
    309     STAMCOUNTER                         StatRingWriteGC;
    310 
    311     STAMCOUNTER                         StatRingWriteFailedHC;
     311    STAMCOUNTER                         StatRingWriteRC;
     312
     313    STAMCOUNTER                         StatRingWriteFailedR3;
    312314    STAMCOUNTER                         StatRingWriteFailedR0;
    313     STAMCOUNTER                         StatRingWriteFailedGC;
    314 
    315     STAMCOUNTER                         StatRingWriteOutsideHC;
     315    STAMCOUNTER                         StatRingWriteFailedRC;
     316
     317    STAMCOUNTER                         StatRingWriteOutsideR3;
    316318    STAMCOUNTER                         StatRingWriteOutsideR0;
    317     STAMCOUNTER                         StatRingWriteOutsideGC;
     319    STAMCOUNTER                         StatRingWriteOutsideRC;
    318320# endif
    319321#endif /* VBOX_WITH_STATISTICS */
     
    692694DECLINLINE(void) pcnetTmdStorePassHost(PCNetState *pThis, TMD *tmd, RTGCPHYS32 addr)
    693695{
    694     STAM_PROFILE_ADV_START(&pThis->CTXSUFF(StatTmdStore), a);
     696    STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatTmdStore), a);
    695697    PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pThis);
    696698    if (pThis->fPrivIfEnabled)
     
    734736        PDMDevHlpPhysWrite(pDevIns, addr+7, (uint8_t*)xda + 7, 1);
    735737    }
    736     STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatTmdStore), a);
     738    STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTmdStore), a);
    737739}
    738740
     
    16741676static void pcnetRdtePoll(PCNetState *pThis, bool fSkipCurrent=false)
    16751677{
    1676     STAM_PROFILE_ADV_START(&pThis->CTXSUFF(StatRdtePoll), a);
     1678    STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatRdtePoll), a);
    16771679    /* assume lack of a next receive descriptor */
    16781680    CSR_NRST(pThis) = 0;
     
    16971699            if (!pcnetRmdLoad(pThis, &rmd, PHYSADDR(pThis, addr), true))
    16981700            {
    1699                 STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatRdtePoll), a);
     1701                STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a);
    17001702                return;
    17011703            }
     
    17191721            else
    17201722            {
    1721                 STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatRdtePoll), a);
     1723                STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a);
    17221724                /* This is not problematic since we don't own the descriptor
    17231725                 * We actually do own it, otherwise pcnetRmdLoad would have returned false.
     
    17411743        if (!pcnetRmdLoad(pThis, &rmd, PHYSADDR(pThis, addr), true))
    17421744        {
    1743             STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatRdtePoll), a);
     1745            STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a);
    17441746            return;
    17451747        }
     
    17531755        else
    17541756        {
    1755             STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatRdtePoll), a);
     1757            STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a);
    17561758            /* This is not problematic since we don't own the descriptor
    17571759             * We actually do own it, otherwise pcnetRmdLoad would have returned false.
     
    17731775        CSR_CRBC(pThis) = CSR_NRBC(pThis) = CSR_CRST(pThis) = 0;
    17741776    }
    1775     STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatRdtePoll), a);
     1777    STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatRdtePoll), a);
    17761778}
    17771779
     
    17821784static int pcnetTdtePoll(PCNetState *pThis, TMD *tmd)
    17831785{
    1784     STAM_PROFILE_ADV_START(&pThis->CTXSUFF(StatTdtePoll), a);
     1786    STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatTdtePoll), a);
    17851787    if (RT_LIKELY(pThis->GCTDRA))
    17861788    {
     
    17891791        if (!pcnetTmdLoad(pThis, tmd, PHYSADDR(pThis, cxda), true))
    17901792        {
    1791             STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatTdtePoll), a);
     1793            STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a);
    17921794            return 0;
    17931795        }
     
    17951797        if (RT_UNLIKELY(tmd->tmd1.ones != 15))
    17961798        {
    1797             STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatTdtePoll), a);
     1799            STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a);
    17981800            LogRel(("PCNet#%d: BAD TMD XDA=%#010x\n",
    17991801                    PCNET_INST_NR, PHYSADDR(pThis, cxda)));
     
    18101812        CSR_CXBC(pThis) = tmd->tmd1.bcnt;
    18111813        CSR_CXST(pThis) = ((uint32_t *)tmd)[1] >> 16;
    1812         STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatTdtePoll), a);
     1814        STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a);
    18131815        return CARD_IS_OWNER(CSR_CXST(pThis));
    18141816    }
     
    18181820        CSR_CXDA(pThis) = 0;
    18191821        CSR_CXBC(pThis) = CSR_CXST(pThis) = 0;
    1820         STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatTdtePoll), a);
     1822        STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTdtePoll), a);
    18211823        return 0;
    18221824    }
     
    21702172         *        the loop and make it part of the driver<->device contract, saving
    21712173         *        critsect mess down in DrvIntNet. */
    2172         STAM_PROFILE_START(&pThis->StatTransmitSend, a);
     2174        STAM_PROFILE_START(&pThis->CTX_SUFF_Z(StatTransmitSend), a);
    21732175        if (pSgBuf->cbUsed > 70) /* unqualified guess */
    21742176            pThis->Led.Asserted.s.fWriting = pThis->Led.Actual.s.fWriting = 1;
     
    21842186
    21852187        pThis->Led.Actual.s.fWriting = 0;
    2186         STAM_PROFILE_STOP(&pThis->StatTransmitSend, a);
     2188        STAM_PROFILE_STOP(&pThis->CTX_SUFF_Z(StatTransmitSend), a);
    21872189    }
    21882190    return rc;
     
    23992401    int         rc;
    24002402    unsigned    cFlushIrq = 0;
    2401     STAM_PROFILE_ADV_START(&pThis->StatTransmit, a);
     2403    STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatTransmit), a);
    24022404    do
    24032405    {
     
    24482450                    else if (rc == VERR_TRY_AGAIN)
    24492451                    {
    2450                         STAM_PROFILE_ADV_STOP(&pThis->StatTransmit, a);
     2452                        STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTransmit), a);
    24512453                        return VINF_SUCCESS;
    24522454                    }
     
    25072509            if (rc == VERR_TRY_AGAIN)
    25082510            {
    2509                 STAM_PROFILE_ADV_STOP(&pThis->StatTransmit, a);
     2511                STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTransmit), a);
    25102512                return VINF_SUCCESS;
    25112513            }
     
    26282630    }
    26292631
    2630     STAM_PROFILE_ADV_STOP(&pThis->StatTransmit, a);
     2632    STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatTransmit), a);
    26312633
    26322634    return VINF_SUCCESS;
     
    37163718    int         rc    = VINF_SUCCESS;
    37173719
    3718     STAM_PROFILE_ADV_START(&pThis->CTXSUFF(StatIORead), a);
     3720    STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatIORead), a);
    37193721    rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_IOPORT_READ);
    37203722    if (RT_LIKELY(rc == VINF_SUCCESS))
     
    37323734        PDMCritSectLeave(&pThis->CritSect);
    37333735    }
    3734     STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatIORead), a);
     3736    STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatIORead), a);
    37353737    Log2(("#%d pcnetIOPortRead: Port=%RTiop *pu32=%#RX32 cb=%d rc=%Rrc\n", PCNET_INST_NR, Port, *pu32, cb, rc));
    37363738#ifdef LOG_ENABLED
     
    37593761    int         rc    = VINF_SUCCESS;
    37603762
    3761     STAM_PROFILE_ADV_START(&pThis->CTXSUFF(StatIOWrite), a);
     3763    STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatIOWrite), a);
    37623764    rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_IOPORT_WRITE);
    37633765    if (RT_LIKELY(rc == VINF_SUCCESS))
     
    37753777        PDMCritSectLeave(&pThis->CritSect);
    37763778    }
    3777     STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatIOWrite), a);
     3779    STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatIOWrite), a);
    37783780    Log2(("#%d pcnetIOPortWrite: Port=%RTiop u32=%#RX32 cb=%d rc=%Rrc\n", PCNET_INST_NR, Port, u32, cb, rc));
    37793781#ifdef LOG_ENABLED
     
    38073809    if (GCPhysAddr - pThis->MMIOBase < PCNET_PNPMMIO_SIZE)
    38083810    {
    3809         STAM_PROFILE_ADV_START(&pThis->CTXSUFF(StatMMIORead), a);
     3811        STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatMMIORead), a);
    38103812        rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_MMIO_READ);
    38113813        if (RT_LIKELY(rc == VINF_SUCCESS))
     
    38233825            PDMCritSectLeave(&pThis->CritSect);
    38243826        }
    3825         STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatMMIORead), a);
     3827        STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatMMIORead), a);
    38263828    }
    38273829    else
     
    38603862    if (GCPhysAddr - pThis->MMIOBase < PCNET_PNPMMIO_SIZE)
    38613863    {
    3862         STAM_PROFILE_ADV_START(&pThis->CTXSUFF(StatMMIOWrite), a);
     3864        STAM_PROFILE_ADV_START(&pThis->CTX_SUFF_Z(StatMMIOWrite), a);
    38633865        rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_HC_MMIO_WRITE);
    38643866        if (RT_LIKELY(rc == VINF_SUCCESS))
     
    38783880        // else rc == VINF_IOM_HC_MMIO_WRITE => handle in ring3
    38793881
    3880         STAM_PROFILE_ADV_STOP(&pThis->CTXSUFF(StatMMIOWrite), a);
     3882        STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatMMIOWrite), a);
    38813883    }
    38823884    LogFlow(("#%d pcnetMMIOWrite: pvUser=%p:{%.*Rhxs} cb=%d GCPhysAddr=%RGp rc=%Rrc\n",
     
    52825284
    52835285#ifdef VBOX_WITH_STATISTICS
    5284     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOReadGC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in GC",         "/Devices/PCNet%d/MMIO/ReadGC", iInstance);
    5285     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOReadHC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO reads in HC",         "/Devices/PCNet%d/MMIO/ReadHC", iInstance);
    5286     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOWriteGC,        STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling MMIO writes in GC",        "/Devices/PCNet%d/MMIO/WriteGC", iInstance);
    5287     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMMIOWriteHC,        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);
    52885290    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatAPROMRead,          STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling APROM reads",              "/Devices/PCNet%d/IO/APROMRead", iInstance);
    52895291    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->StatIOReadGC,           STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in GC",           "/Devices/PCNet%d/IO/ReadGC", iInstance);
    5291     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOReadHC,           STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO reads in HC",           "/Devices/PCNet%d/IO/ReadHC", iInstance);
    5292     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOWriteGC,          STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling IO writes in GC",          "/Devices/PCNet%d/IO/WriteGC", iInstance);
    5293     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatIOWriteHC,          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);
    52945296    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTimer,              STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling Timer",                    "/Devices/PCNet%d/Timer", iInstance);
    52955297    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatReceive,            STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling receive",                  "/Devices/PCNet%d/Receive", iInstance);
     
    53015303    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitCase1,      STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES,     "Single descriptor transmit",         "/Devices/PCNet%d/Transmit/Case1", iInstance);
    53025304    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);
    53045307#endif
    53055308    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatTransmitBytes,      STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES,          "Amount of data transmitted",         "/Devices/PCNet%d/TransmitBytes", iInstance);
    53065309#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);
    53155319
    53165320    unsigned i;
     
    53315335    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRCVRingWrite,       STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES,     "Nr of receive ring writes",          "/Devices/PCNet%d/Ring/RCVWrites", iInstance);
    53325336    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->StatRingWriteHC,        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);
    53345338    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->StatRingWriteGC,        STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES,     "Nr of monitored ring page writes",   "/Devices/PCNet%d/Ring/GC/Writes", iInstance);
    5336     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteFailedHC,  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);
    53375341    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->StatRingWriteFailedGC,  STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES,     "Nr of failed ring page writes",      "/Devices/PCNet%d/Ring/GC/Failed", iInstance);
    5339     PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatRingWriteOutsideHC, 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);
    53405344    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->StatRingWriteOutsideGC, 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);
    53425346# endif /* PCNET_NO_POLLING */
    53435347#endif
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    r29080 r29435  
    270270    CHECK_MEMBER_ALIGNMENT(E1KSTATE, cs, 8);
    271271    CHECK_MEMBER_ALIGNMENT(E1KSTATE, csRx, 8);
     272    CHECK_MEMBER_ALIGNMENT(E1KSTATE, StatReceiveBytes, 8);
    272273#endif
    273274#ifdef VBOX_WITH_VIRTIO
     
    300301    CHECK_MEMBER_ALIGNMENT(PCNetState, u64LastPoll, 8);
    301302    CHECK_MEMBER_ALIGNMENT(PCNetState, CritSect, 8);
     303    CHECK_MEMBER_ALIGNMENT(PCNetState, StatReceiveBytes, 8);
    302304#ifdef VBOX_WITH_STATISTICS
    303     CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIOReadGC, 8);
     305    CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIOReadRZ, 8);
    304306#endif
    305307    CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8);
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp

    r29033 r29435  
    427427    GEN_CHECK_OFF(PCNetState, u32LinkSpeed);
    428428    GEN_CHECK_OFF(PCNetState, StatReceiveBytes);
     429    GEN_CHECK_OFF(PCNetState, StatTransmitBytes);
    429430#ifdef VBOX_WITH_STATISTICS
    430     GEN_CHECK_OFF(PCNetState, StatMMIOReadGC);
     431    GEN_CHECK_OFF(PCNetState, StatMMIOReadR3);
     432    GEN_CHECK_OFF(PCNetState, StatMMIOReadRZ);
    431433    GEN_CHECK_OFF(PCNetState, StatMIIReads);
    432434# ifdef PCNET_NO_POLLING
    433435    GEN_CHECK_OFF(PCNetState, StatRCVRingWrite);
    434     GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeGC);
     436    GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeR3);
    435437# endif
    436438#endif
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