VirtualBox

Changeset 549 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Feb 2, 2007 1:58:40 PM (18 years ago)
Author:
vboxsync
Message:

More stats

File:
1 edited

Legend:

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

    r547 r549  
    254254    STAMPROFILEADV                      StatTdtePollGC;
    255255    STAMPROFILEADV                      StatTdtePollHC;
     256    STAMPROFILEADV                      StatTmdStoreGC;
     257    STAMPROFILEADV                      StatTmdStoreHC;
     258    STAMPROFILEADV                      StatRdtePollGC;
     259    STAMPROFILEADV                      StatRdtePollHC;
    256260    STAMPROFILE                         StatXmitQueue;
    257261    STAMPROFILEADV                      StatXmitQueueFlushGC;
     
    602606DECLINLINE(void) pcnetTmdStorePassHost(PCNetState *pData, TMD *tmd, RTGCPHYS addr)
    603607{
     608    STAM_PROFILE_ADV_START(&pData->CTXSUFF(StatTmdStore), a);
    604609    PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pData);
    605610    if (!BCR_SWSTYLE(pData))
     
    634639        PDMDevHlpPhysWrite(pDevIns, addr+7, (uint8_t*)xda + 7, 1);
    635640    }
     641    STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatTmdStore), a);
    636642}
    637643
     
    14131419static void pcnetRdtePoll(PCNetState *pData, bool fSkipCurrent=false)
    14141420{
     1421    STAM_PROFILE_ADV_START(&pData->CTXSUFF(StatRdtePoll), a);
    14151422    /* assume lack of a next receive descriptor */
    14161423    CSR_NRST(pData) = 0;
     
    14351442            CSR_CRBC(pData) = CSR_CRST(pData) = 0;
    14361443            if (!rmd.rmd1.own)
     1444            {
     1445                STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a);
    14371446                return;
     1447            }
    14381448            if (RT_LIKELY(!IS_RMD_BAD(rmd)))
    14391449            {
     
    14521462            else
    14531463            {
     1464                STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a);
    14541465                /* This is not problematic since we don't own the descriptor */
    14551466                LogRel(("PCNet#%d: BAD RMD ENTRIES AT 0x%08x (i=%d)\n",
     
    14691480        CSR_NRBC(pData) = 0;
    14701481        if (!rmd.rmd1.own)
     1482        {
     1483            STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a);
    14711484            return;
     1485        }
    14721486        if (RT_LIKELY(!IS_RMD_BAD(rmd)))
    14731487        {
     
    14791493        else
    14801494        {
     1495            STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a);
    14811496            /* This is not problematic since we don't own the descriptor */
    14821497            LogRel(("PCNet#%d: BAD RMD ENTRIES + AT 0x%08x (i=%d)\n",
     
    14941509        CSR_CRBC(pData) = CSR_NRBC(pData) = CSR_CRST(pData) = 0;
    14951510    }
     1511    STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a);
    14961512}
    14971513
     
    41414157    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollGC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in GC",     "/Devices/PCNet%d/TdtePollGC", iInstance);
    41424158    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollHC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in HC",     "/Devices/PCNet%d/TdtePollHC", iInstance);
     4159    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatRdtePollGC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in GC",     "/Devices/PCNet%d/RdtePollGC", iInstance);
     4160    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatRdtePollHC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in HC",     "/Devices/PCNet%d/RdtePollHC", iInstance);
     4161
     4162    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTmdStoreGC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in GC",     "/Devices/PCNet%d/TmdPollGC", iInstance);
     4163    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTmdStoreHC,         STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in HC",     "/Devices/PCNet%d/TmdPollHC", iInstance);
     4164   
    41434165    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatXmitQueue,          STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet xmit queue",         "/Devices/PCNet%d/XmitQueue", iInstance);
    41444166    PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatXmitQueueFlushGC,   STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet xmit queue flushes from GC", "/Devices/PCNet%d/XmitQueueFlushGC", iInstance);
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