VirtualBox

Changeset 43599 in vbox


Ignore:
Timestamp:
Oct 10, 2012 2:47:55 PM (12 years ago)
Author:
vboxsync
Message:

AsyncCompletion: New statistics counter to record 8KB unaligned accesses

Location:
trunk/src/VBox/VMM
Files:
2 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
  • trunk/src/VBox/VMM/include/PDMAsyncCompletionInternal.h

    r43529 r43599  
    228228    STAMCOUNTER                                 StatReqsUnaligned512;
    229229    STAMCOUNTER                                 StatReqsUnaligned4K;
     230    STAMCOUNTER                                 StatReqsUnaligned8K;
    230231    /** @} */
    231232    /** @name Request completion time statistics.
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