Changeset 93633 in vbox
- Timestamp:
- Feb 7, 2022 1:27:28 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149778
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAllNetShaper.cpp
r93632 r93633 108 108 Log2(("pdmNsAllocateBandwidth/%s: refused - cbTransfer=%#zx cTokens=%#x cTokensAdded=%#x\n", 109 109 pGroup->szName, cbTransfer, cTokens, cTokensAdded)); 110 ASMAtomicIncU64(&pGroup->cTotalChokings); 110 111 fAllowed = false; 111 112 } -
trunk/src/VBox/VMM/VMMR3/PDMNetShaper.cpp
r93631 r93633 483 483 pVM->pdm.s.aNsGroups[iGroup].cbBucket)); 484 484 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 485 501 pVM->pdm.s.cNsGroups = ++iGroup; 486 502 } -
trunk/src/VBox/VMM/include/PDMInternal.h
r93631 r93633 1252 1252 /** Timestamp of the last update */ 1253 1253 volatile uint64_t tsUpdatedLast; 1254 /** Number of times a filter was choked. */ 1255 volatile uint64_t cTotalChokings; 1254 1256 /** Pad the structure to a multiple of 64 bytes. */ 1255 uint64_t au64Padding[ 2];1257 uint64_t au64Padding[1]; 1256 1258 } PDMNSBWGROUP; 1257 1259 AssertCompileSizeAlignment(PDMNSBWGROUP, 64);
Note:
See TracChangeset
for help on using the changeset viewer.