- Timestamp:
- Jan 2, 2015 12:34:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp
r53675 r53676 1016 1016 uint32_t iRet = (uint32_t)iBit + pChunk->iFirst + pThis->uBase; 1017 1017 RTSpinlockRelease(pThis->hSpinlock, &Tmp); 1018 SUPR0Printf("returning iRet=%u\n", iRet);1019 1018 return (void *)(uintptr_t)iRet; 1020 1019 } … … 1042 1041 return NULL; 1043 1042 1044 SUPR0Printf("Adding chunk %p at bit %u, covering %u bits\n", pChunk, iFirstBit, cFreeBits);1045 1043 pChunk->iFirst = iFirstBit; 1046 1044 pChunk->cCurFree = cFreeBits; … … 1077 1075 RTSpinlockRelease(pThis->hSpinlock, &Tmp); 1078 1076 1079 SUPR0Printf("returning NULL!\n");1080 1077 return NULL; 1081 1078 } … … 1840 1837 DECLEXPORT(void) ModuleTerm(void *hMod) 1841 1838 { 1842 1839 SUPR0Printf("ModuleTerm: IF=%RTbool#1\n", ASMIntAreEnabled()); 1840 SUPR0TracerDeregisterImpl(hMod, NULL); 1841 SUPR0Printf("ModuleTerm: IF=%RTbool#2\n", ASMIntAreEnabled()); 1842 dtrace_detach(); 1843 SUPR0Printf("ModuleTerm: IF=%RTbool#3\n", ASMIntAreEnabled()); 1843 1844 } 1844 1845 … … 1851 1852 DECLEXPORT(int) ModuleInit(void *hMod) 1852 1853 { 1854 SUPR0Printf("ModuleInit: IF=%RTbool#1\n", ASMIntAreEnabled()); 1855 1853 1856 int rc = dtrace_attach(); 1854 1857 if (rc == DDI_SUCCESS) 1855 1858 { 1859 SUPR0Printf("ModuleInit: IF=%RTbool #2\n", ASMIntAreEnabled()); 1856 1860 rc = SUPR0TracerRegisterImpl(hMod, NULL, &g_VBoxDTraceReg, &g_pVBoxDTraceHlp); 1857 1861 if (RT_SUCCESS(rc)) 1858 1862 { 1863 SUPR0Printf("ModuleInit: IF=%RTbool #3\n", ASMIntAreEnabled()); 1859 1864 return rc; 1860 1865 }
Note:
See TracChangeset
for help on using the changeset viewer.