- Timestamp:
- Jan 2, 2015 12:44:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp
r53706 r53707 1388 1388 AssertReturnVoid(pProv->pHdr->offProbeLocs != 0); 1389 1389 uint32_t const cProbeLocs = pProv->pHdr->cbProbeLocs / sizeof(VTGPROBELOC); 1390 uint32_t const cbProbeLocRW = pProv->pHdr->cBits == 32 ? sizeof(VTGPROBELOC32) : sizeof(VTGPROBELOC64);1391 1390 1392 1391 … … 1417 1416 else 1418 1417 pidProbe = &pProv->paR0ProbeLocs[idxProbeLoc].idProbe; 1419 if (*pidProbe != UINT32_MAX)1418 if (*pidProbe != 0) 1420 1419 continue; 1421 1420 … … 1453 1452 the function name a little to avoid having to deal with having 1454 1453 multiple location entries with the same probe ID. (lazy bird) */ 1455 Assert( *pidProbe == UINT32_MAX);1454 Assert(!*pidProbe); 1456 1455 if (dtrace_probe_lookup(idProvider, pProv->pszModName, pszFnNmBuf, pszPrbName) != DTRACE_IDNONE) 1457 1456 { … … 1661 1660 Assert(*pidProbe == idProbe); NOREF(idProbe); 1662 1661 } 1663 *pidProbe = UINT32_MAX;1662 *pidProbe = 0; 1664 1663 } 1665 1664 pProv->TracerData.DTrace.cProvidedProbes--; … … 1799 1798 static DECLCALLBACK(int) vbdt_ProviderRegister(PCSUPDRVTRACERREG pThis, PSUPDRVVDTPROVIDERCORE pCore) 1800 1799 { 1801 AssertReturn(pCore->TracerData.DTrace.idProvider == UINT32_MAX || pCore->TracerData.DTrace.idProvider == 0, 1802 VERR_INTERNAL_ERROR_3); 1800 AssertReturn(pCore->TracerData.DTrace.idProvider == 0, VERR_INTERNAL_ERROR_3); 1803 1801 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 1804 1802 … … 1811 1809 vboxDtVtgConvAttr(&DtAttrs.dtpa_args, &pDesc->AttrArguments); 1812 1810 1813 dtrace_provider_id_t idProvider;1811 AssertCompile(sizeof(dtrace_provider_id_t) == sizeof(pCore->TracerData.DTrace.idProvider)); 1814 1812 int rc = dtrace_register(pCore->pszName, 1815 1813 &DtAttrs, … … 1818 1816 &g_vboxDtVtgProvOps, 1819 1817 pCore, 1820 & idProvider);1818 &pCore->TracerData.DTrace.idProvider); 1821 1819 if (!rc) 1822 1820 { 1823 Assert(idProvider != UINT32_MAX && idProvider != 0); 1824 pCore->TracerData.DTrace.idProvider = idProvider; 1825 Assert(pCore->TracerData.DTrace.idProvider == idProvider); 1821 Assert(pCore->TracerData.DTrace.idProvider != 0); 1826 1822 rc = VINF_SUCCESS; 1827 1823 } … … 1840 1836 { 1841 1837 uintptr_t idProvider = pCore->TracerData.DTrace.idProvider; 1842 AssertReturn(idProvider != UINT32_MAX && idProvider !=0, VERR_INTERNAL_ERROR_4);1838 AssertReturn(idProvider != 0, VERR_INTERNAL_ERROR_4); 1843 1839 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 1844 1840 … … 1847 1843 if (!rc) 1848 1844 { 1849 pCore->TracerData.DTrace.idProvider = UINT32_MAX;1845 pCore->TracerData.DTrace.idProvider = 0; 1850 1846 rc = VINF_SUCCESS; 1851 1847 } … … 1868 1864 { 1869 1865 uintptr_t idProvider = pCore->TracerData.DTrace.idProvider; 1870 AssertReturn(idProvider != UINT32_MAX && idProvider !=0, VERR_INTERNAL_ERROR_4);1866 AssertReturn(idProvider != 0, VERR_INTERNAL_ERROR_4); 1871 1867 Assert(pCore->TracerData.DTrace.fZombie); 1872 1868 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); … … 1875 1871 if (!rc) 1876 1872 { 1877 pCore->TracerData.DTrace.idProvider = UINT32_MAX;1873 pCore->TracerData.DTrace.idProvider = 0; 1878 1874 rc = VINF_SUCCESS; 1879 1875 }
Note:
See TracChangeset
for help on using the changeset viewer.