- Timestamp:
- Jan 2, 2015 12:42:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp
r53695 r53696 1375 1375 { 1376 1376 PSUPDRVVDTPROVIDERCORE pProv = (PSUPDRVVDTPROVIDERCORE)pvProv; 1377 dtrace_provider_id_t idProvider = pProv->TracerData.DTrace.idProvider;1378 size_t const cbFnNmBuf = _4K + _1K;1379 char *pszFnNmBuf;1380 uint16_t idxProv;1381 PVTGPROBELOC pProbeLoc;1382 PVTGPROBELOC pProbeLocEnd;1383 1377 1384 1378 if (pDtProbeDesc) … … 1387 1381 if (pProv->TracerData.DTrace.fZombie) 1388 1382 return; 1383 1384 dtrace_provider_id_t const idProvider = pProv->TracerData.DTrace.idProvider; 1385 AssertPtrReturnVoid(idProvider); 1389 1386 1390 1387 AssertPtrReturnVoid(pProv->pHdr); 1391 pProbeLoc = pProv->pHdr->paProbLocs;1392 pProbeLocEnd = pProv->pHdr->paProbLocsEnd;1388 PVTGPROBELOC pProbeLoc = pProv->pHdr->paProbLocs; 1389 PVTGPROBELOC pProbeLocEnd = pProv->pHdr->paProbLocsEnd; 1393 1390 if (pProv->TracerData.DTrace.cProvidedProbes >= (uintptr_t)(pProbeLocEnd - pProbeLoc)) 1394 1391 return; 1395 1392 1396 /* Need a buffer for extracting the function names and mangling them in 1397 case of collision. */ 1398 pszFnNmBuf = (char *)RTMemAlloc(cbFnNmBuf); 1399 if (!pszFnNmBuf) 1393 /* Need a buffer for extracting the function names and mangling them in 1394 case of collision. */ 1395 size_t const cbFnNmBuf = _4K + _1K; 1396 char *pszFnNmBuf = (char *)RTMemAlloc(cbFnNmBuf); 1397 if (!pszFnNmBuf) 1400 1398 return; 1401 1399 1402 1403 1404 1405 1406 idxProv= (uint16_t)(&pProv->pHdr->paProviders[0] - pProv->pDesc);1407 1408 1400 /* 1401 * Itereate the probe location list and register all probes related to 1402 * this provider. 1403 */ 1404 uint16_t idxProv = (uint16_t)(&pProv->pHdr->paProviders[0] - pProv->pDesc); 1405 while ((uintptr_t)pProbeLoc < (uintptr_t)pProbeLocEnd) 1406 { 1409 1407 PVTGDESCPROBE pProbeDesc = (PVTGDESCPROBE)pProbeLoc->pbProbe; 1410 1408 if ( pProbeDesc->idxProvider == idxProv
Note:
See TracChangeset
for help on using the changeset viewer.