VirtualBox

Changeset 53676 in vbox for trunk


Ignore:
Timestamp:
Jan 2, 2015 12:34:40 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: debug (r54)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp

    r53675 r53676  
    10161016                    uint32_t iRet = (uint32_t)iBit + pChunk->iFirst + pThis->uBase;
    10171017                    RTSpinlockRelease(pThis->hSpinlock, &Tmp);
    1018 SUPR0Printf("returning iRet=%u\n", iRet);
    10191018                    return (void *)(uintptr_t)iRet;
    10201019                }
     
    10421041            return NULL;
    10431042
    1044 SUPR0Printf("Adding chunk %p at bit %u, covering %u bits\n", pChunk, iFirstBit, cFreeBits);
    10451043        pChunk->iFirst   = iFirstBit;
    10461044        pChunk->cCurFree = cFreeBits;
     
    10771075    RTSpinlockRelease(pThis->hSpinlock, &Tmp);
    10781076
    1079 SUPR0Printf("returning NULL!\n");
    10801077    return NULL;
    10811078}
     
    18401837DECLEXPORT(void) ModuleTerm(void *hMod)
    18411838{
    1842 
     1839SUPR0Printf("ModuleTerm: IF=%RTbool#1\n", ASMIntAreEnabled());
     1840    SUPR0TracerDeregisterImpl(hMod, NULL);
     1841SUPR0Printf("ModuleTerm: IF=%RTbool#2\n", ASMIntAreEnabled());
     1842    dtrace_detach();
     1843SUPR0Printf("ModuleTerm: IF=%RTbool#3\n", ASMIntAreEnabled());
    18431844}
    18441845
     
    18511852DECLEXPORT(int)  ModuleInit(void *hMod)
    18521853{
     1854SUPR0Printf("ModuleInit: IF=%RTbool#1\n", ASMIntAreEnabled());
     1855
    18531856    int rc = dtrace_attach();
    18541857    if (rc == DDI_SUCCESS)
    18551858    {
     1859SUPR0Printf("ModuleInit: IF=%RTbool #2\n", ASMIntAreEnabled());
    18561860        rc = SUPR0TracerRegisterImpl(hMod, NULL, &g_VBoxDTraceReg, &g_pVBoxDTraceHlp);
    18571861        if (RT_SUCCESS(rc))
    18581862        {
     1863SUPR0Printf("ModuleInit: IF=%RTbool #3\n", ASMIntAreEnabled());
    18591864            return rc;
    18601865        }
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