VirtualBox

Changeset 54452 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Feb 24, 2015 3:03:32 PM (10 years ago)
Author:
vboxsync
Message:

Runtime/testcase: tstRTR0ThreadPreemption renaming fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTR0ThreadPreemption.cpp

    r54449 r54452  
    6969 * @param   pvUser      Pointer to the user argument.
    7070 */
    71 static DECLCALLBACK(void) tstR0ThreadCtxHook(RTTHREADCTXEVENT enmEvent, void *pvUser)
     71static DECLCALLBACK(void) tstRTR0ThreadCtxHook(RTTHREADCTXEVENT enmEvent, void *pvUser)
    7272{
    7373    PTSTRTR0THREADCTXDATA pData = (PTSTRTR0THREADCTXDATA)pvUser;
     
    7676    if (pData->u32Magic != TSTRTR0THREADCTXDATA_MAGIC)
    7777    {
    78         RTStrPrintf(pData->achResult, sizeof(pData->achResult), "!tstR0ThreadCtxHook: Invalid magic.");
     78        RTStrPrintf(pData->achResult, sizeof(pData->achResult), "!tstRTR0ThreadCtxHook: Invalid magic.");
    7979        return;
    8080    }
     
    9393            {
    9494                RTStrPrintf(pData->achResult, sizeof(pData->achResult),
    95                             "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_PREEMPTING]: Called with preemption enabled");
     95                            "!tstRTR0ThreadCtxHook[RTTHREADCTXEVENT_PREEMPTING]: Called with preemption enabled");
    9696                break;
    9797            }
     
    101101            {
    102102                RTStrPrintf(pData->achResult, sizeof(pData->achResult),
    103                             "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_PREEMPTING]: Thread switched! Source=%RTnthrd Current=%RTnthrd.",
     103                            "!tstRTR0ThreadCtxHook[RTTHREADCTXEVENT_PREEMPTING]: Thread switched! Source=%RTnthrd Current=%RTnthrd.",
    104104                            pData->hSourceThread, hCurrentThread);
    105105                break;
     
    110110            {
    111111                RTStrPrintf(pData->achResult, sizeof(pData->achResult),
    112                             "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_PREEMPTING]: migrated uSourceCpuId=%RU32 uCurrentCpuId=%RU32",
     112                            "!tstRTR0ThreadCtxHook[RTTHREADCTXEVENT_PREEMPTING]: migrated uSourceCpuId=%RU32 uCurrentCpuId=%RU32",
    113113                            pData->uSourceCpuId, uCurrentCpuId);
    114114                break;
     
    130130            {
    131131                RTStrPrintf(pData->achResult, sizeof(pData->achResult),
    132                             "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_RESUMED]: Called before preempting callback was invoked.");
     132                            "!tstRTR0ThreadCtxHook[RTTHREADCTXEVENT_RESUMED]: Called before preempting callback was invoked.");
    133133                break;
    134134            }
     
    138138            {
    139139                RTStrPrintf(pData->achResult, sizeof(pData->achResult),
    140                             "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_RESUMED]: Thread switched! Source=%RTnthrd Current=%RTnthrd.",
     140                            "!tstRTR0ThreadCtxHook[RTTHREADCTXEVENT_RESUMED]: Thread switched! Source=%RTnthrd Current=%RTnthrd.",
    141141                            pData->hSourceThread, hCurrentThread);
    142142                break;
     
    162162 * @param   pReqHdr     The request header. Input / Output. Optional.
    163163 */
    164 DECLEXPORT(int) TSTR0ThreadPreemptionSrvReqHandler(PSUPDRVSESSION pSession, uint32_t uOperation,
    165                                                    uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr)
     164DECLEXPORT(int) TSTRTR0ThreadPreemptionSrvReqHandler(PSUPDRVSESSION pSession, uint32_t uOperation,
     165                                                     uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr)
    166166{
    167167    NOREF(pSession);
     
    345345            pCtxData->uSourceCpuId       = RTMpCpuId();
    346346
    347             rc = RTThreadCtxHooksRegister(hThreadCtx, &tstR0ThreadCtxHook, pCtxData);
     347            rc = RTThreadCtxHooksRegister(hThreadCtx, &tstRTR0ThreadCtxHook, pCtxData);
    348348            if (RT_FAILURE(rc))
    349349            {
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