VirtualBox

Changeset 93633 in vbox


Ignore:
Timestamp:
Feb 7, 2022 1:27:28 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149778
Message:

VMM/PDMNetShaper: Statistics. bugref:5582

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r93632 r93633  
    108108                            Log2(("pdmNsAllocateBandwidth/%s: refused - cbTransfer=%#zx cTokens=%#x cTokensAdded=%#x\n",
    109109                                  pGroup->szName, cbTransfer, cTokens, cTokensAdded));
     110                        ASMAtomicIncU64(&pGroup->cTotalChokings);
    110111                        fAllowed = false;
    111112                    }
  • trunk/src/VBox/VMM/VMMR3/PDMNetShaper.cpp

    r93631 r93633  
    483483                         pVM->pdm.s.aNsGroups[iGroup].cbBucket));
    484484
     485            /*
     486             * Register statistics.
     487             */
     488            STAMR3RegisterF(pVM, (void *)&pVM->pdm.s.aNsGroups[iGroup].cbPerSecMax,     STAMTYPE_U64, STAMVISIBILITY_ALWAYS,
     489                            STAMUNIT_BYTES, "", "/PDM/NetShaper/%u-%s/cbPerSecMax", iGroup, szName);
     490            STAMR3RegisterF(pVM, (void *)&pVM->pdm.s.aNsGroups[iGroup].cRefs,           STAMTYPE_U32, STAMVISIBILITY_ALWAYS,
     491                            STAMUNIT_BYTES, "", "/PDM/NetShaper/%u-%s/cRefs", iGroup, szName);
     492            STAMR3RegisterF(pVM, (void *)&pVM->pdm.s.aNsGroups[iGroup].cbBucket,        STAMTYPE_U32, STAMVISIBILITY_ALWAYS,
     493                            STAMUNIT_BYTES, "", "/PDM/NetShaper/%u-%s/cbBucket", iGroup, szName);
     494            STAMR3RegisterF(pVM, (void *)&pVM->pdm.s.aNsGroups[iGroup].cbTokensLast,    STAMTYPE_U32, STAMVISIBILITY_ALWAYS,
     495                            STAMUNIT_BYTES, "", "/PDM/NetShaper/%u-%s/cbTokensLast", iGroup, szName);
     496            STAMR3RegisterF(pVM, (void *)&pVM->pdm.s.aNsGroups[iGroup].tsUpdatedLast,   STAMTYPE_U64, STAMVISIBILITY_ALWAYS,
     497                            STAMUNIT_NS, "", "/PDM/NetShaper/%u-%s/tsUpdatedLast", iGroup, szName);
     498            STAMR3RegisterF(pVM, (void *)&pVM->pdm.s.aNsGroups[iGroup].cTotalChokings,  STAMTYPE_U64_RESET, STAMVISIBILITY_ALWAYS,
     499                            STAMUNIT_OCCURENCES, "", "/PDM/NetShaper/%u-%s/TotalChokings", iGroup, szName);
     500
    485501            pVM->pdm.s.cNsGroups = ++iGroup;
    486502        }
  • trunk/src/VBox/VMM/include/PDMInternal.h

    r93631 r93633  
    12521252    /** Timestamp of the last update */
    12531253    volatile uint64_t                           tsUpdatedLast;
     1254    /** Number of times a filter was choked. */
     1255    volatile uint64_t                           cTotalChokings;
    12541256    /** Pad the structure to a multiple of 64 bytes. */
    1255     uint64_t                                    au64Padding[2];
     1257    uint64_t                                    au64Padding[1];
    12561258} PDMNSBWGROUP;
    12571259AssertCompileSizeAlignment(PDMNSBWGROUP, 64);
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