VirtualBox

Changeset 43599 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 10, 2012 2:47:55 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81293
Message:

AsyncCompletion: New statistics counter to record 8KB unaligned accesses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletion.cpp

    r43530 r43599  
    945945    else if (cbReq & ((size_t)_4K - 1))
    946946        STAM_REL_COUNTER_INC(&pEndpoint->StatReqsUnaligned4K);
     947    else if (cbReq & ((size_t)_8K - 1))
     948        STAM_REL_COUNTER_INC(&pEndpoint->StatReqsUnaligned8K);
    947949}
    948950
     
    12061208                             "Number of requests which size is not aligned to 4KB",
    12071209                             "/PDM/AsyncCompletion/File/%s/ReqsUnaligned4K",
     1210                             RTPathFilename(pEndpoint->pszUri));
     1211    }
     1212
     1213    if (RT_SUCCESS(rc))
     1214    {
     1215        rc = STAMR3RegisterF(pVM, &pEndpoint->StatReqsUnaligned8K, STAMTYPE_COUNTER,
     1216                             STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES,
     1217                             "Number of requests which size is not aligned to 8KB",
     1218                             "/PDM/AsyncCompletion/File/%s/ReqsUnaligned8K",
    12081219                             RTPathFilename(pEndpoint->pszUri));
    12091220    }
     
    12501261    STAMR3Deregister(pVM, &pEndpoint->StatReqsUnaligned512);
    12511262    STAMR3Deregister(pVM, &pEndpoint->StatReqsUnaligned4K);
     1263    STAMR3Deregister(pVM, &pEndpoint->StatReqsUnaligned8K);
    12521264}
    12531265
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette