Changeset 62608 in vbox for trunk/src/VBox
- Timestamp:
- Jul 27, 2016 4:50:39 PM (8 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0.cpp
r62496 r62608 206 206 { 207 207 /** @todo ? */ 208 RT_NOREF_PV(pfnAddOne); 208 209 } 209 210 … … 436 437 if (pData->enmCaller == kVBoxDtCaller_ProbeFireKernel) 437 438 return pData->u.ProbeFireKernel.uCaller; 439 RT_NOREF_PV(cCallFrames); 438 440 return ~(uintptr_t)0; 439 441 } … … 454 456 if (pData->enmCaller == kVBoxDtCaller_ProbeFireKernel) 455 457 return pData->u.ProbeFireKernel.pauStackArgs[iArg - 5]; 458 RT_NOREF_PV(cCallFrames); 456 459 return UINT64_MAX; 457 460 } … … 475 478 iFrame++; 476 479 } 480 RT_NOREF_PV(pIntr); 481 RT_NOREF_PV(cSkipFrames); 477 482 } 478 483 … … 487 492 int dtrace_getstackdepth(int cSkipFrames) 488 493 { 494 RT_NOREF_PV(cSkipFrames); 489 495 return 1; 490 496 } … … 624 630 SUPR0Printf("%N", pszFormat, va); 625 631 va_end(va); 632 RT_NOREF_PV(iLevel); 626 633 } 627 634 … … 929 936 AssertReturn(fFlags & VM_SLEEP, NULL); 930 937 AssertReturn(fFlags & VMC_IDENTIFIER, NULL); 938 RT_NOREF_PV(pszName); 931 939 932 940 /* … … 1140 1148 #else 1141 1149 uint32_t fMemAllocFlags = 0; 1150 RT_NOREF_PV(fFlags); 1142 1151 #endif 1143 1152 int rc = RTMemAllocEx(cbMem, 0, fMemAllocFlags, &pvMem); … … 1156 1165 #else 1157 1166 uint32_t fMemAllocFlags = RTMEMALLOCEX_FLAGS_ZEROED; 1167 RT_NOREF_PV(fFlags); 1158 1168 #endif 1159 1169 int rc = RTMemAllocEx(cbMem, 0, fMemAllocFlags, &pvMem); … … 1199 1209 AssertReturn(!pvVM, NULL); 1200 1210 AssertReturn(!fFlags, NULL); 1211 RT_NOREF_PV(pszName); 1201 1212 1202 1213 /* … … 1229 1240 #else 1230 1241 uint32_t fMemAllocFlags = RTMEMALLOCEX_FLAGS_ZEROED; 1242 RT_NOREF_PV(fFlags); 1231 1243 #endif 1232 1244 int rc = RTMemAllocEx(pThis->cbBuf, /*pThis->cbAlign*/0, fMemAllocFlags, &pvMem); … … 1497 1509 LOG_DTRACE(("%s: %p / %p - %#x / %p\n", __FUNCTION__, pProv, pProv->TracerData.DTrace.idProvider, idProbe, pvProbe)); 1498 1510 AssertPtrReturn(pProv->TracerData.DTrace.idProvider, EINVAL); 1511 RT_NOREF_PV(idProbe); 1499 1512 1500 1513 if (!pProv->TracerData.DTrace.fZombie) … … 1546 1559 LOG_DTRACE(("%s: %p / %p - %#x / %p\n", __FUNCTION__, pProv, pProv->TracerData.DTrace.idProvider, idProbe, pvProbe)); 1547 1560 AssertPtrReturnVoid(pProv->TracerData.DTrace.idProvider); 1561 RT_NOREF_PV(idProbe); 1548 1562 1549 1563 if (!pProv->TracerData.DTrace.fZombie) … … 1592 1606 PSUPDRVVDTPROVIDERCORE pProv = (PSUPDRVVDTPROVIDERCORE)pvProv; 1593 1607 unsigned uArg = pArgDesc->dtargd_ndx; 1608 RT_NOREF_PV(idProbe); 1594 1609 1595 1610 pArgDesc->dtargd_ndx = DTRACE_ARGNONE; … … 1635 1650 LOG_DTRACE(("%s: %p / %p - %#x / %p iArg=%d cFrames=%u\n", __FUNCTION__, pProv, pProv->TracerData.DTrace.idProvider, idProbe, pvProbe, iArg, cFrames)); 1636 1651 AssertReturn(iArg >= 5, UINT64_MAX); 1652 RT_NOREF_PV(idProbe); RT_NOREF_PV(cFrames); 1653 1637 1654 if (pProv->TracerData.DTrace.fZombie) 1638 1655 return UINT64_MAX; … … 1856 1873 AssertPtrReturnVoid(pProbeLocRO); 1857 1874 AssertPtrReturnVoid(pVtgHdr); 1858 1875 RT_NOREF_PV(pThis); 1876 RT_NOREF_PV(pSession); 1859 1877 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_ProbeFireUser); 1860 1878 … … 1940 1958 if (uArg) 1941 1959 return VERR_INVALID_PARAMETER; 1942 1960 RT_NOREF_PV(pThis); RT_NOREF_PV(pSession); 1943 1961 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 1944 1962 … … 1957 1975 { 1958 1976 AssertPtrReturn(uSessionData, VERR_INVALID_POINTER); 1977 RT_NOREF_PV(pThis); RT_NOREF_PV(pSession); 1959 1978 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 1960 1979 … … 1972 1991 { 1973 1992 AssertPtrReturnVoid(uSessionData); 1993 RT_NOREF_PV(pThis); RT_NOREF_PV(pSession); 1974 1994 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 1975 1995 … … 1987 2007 LOG_DTRACE(("%s: %p %s/%s\n", __FUNCTION__, pThis, pCore->pszModName, pCore->pszName)); 1988 2008 AssertReturn(pCore->TracerData.DTrace.idProvider == 0, VERR_INTERNAL_ERROR_3); 2009 RT_NOREF_PV(pThis); 1989 2010 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 1990 2011 … … 2033 2054 LOG_DTRACE(("%s: %p / %p\n", __FUNCTION__, pThis, idProvider)); 2034 2055 AssertPtrReturn(idProvider, VERR_INTERNAL_ERROR_3); 2056 RT_NOREF_PV(pThis); 2035 2057 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 2036 2058 … … 2064 2086 AssertPtrReturn(idProvider, VERR_INTERNAL_ERROR_3); 2065 2087 Assert(pCore->TracerData.DTrace.fZombie); 2088 RT_NOREF_PV(pThis); 2066 2089 VBDT_SETUP_STACK_DATA(kVBoxDtCaller_Generic); 2067 2090 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c
r62438 r62608 1917 1917 dtrace_aggregate_min(uint64_t *oval, uint64_t nval, uint64_t arg) 1918 1918 { 1919 RT_NOREF_PV(arg); 1919 1920 if ((int64_t)nval < (int64_t)*oval) 1920 1921 *oval = nval; … … 1925 1926 dtrace_aggregate_max(uint64_t *oval, uint64_t nval, uint64_t arg) 1926 1927 { 1928 RT_NOREF_PV(arg); 1927 1929 if ((int64_t)nval > (int64_t)*oval) 1928 1930 *oval = nval; … … 1998 2000 dtrace_aggregate_avg(uint64_t *data, uint64_t nval, uint64_t arg) 1999 2001 { 2002 RT_NOREF_PV(arg); 2000 2003 data[0]++; 2001 2004 data[1] += nval; … … 2008 2011 int64_t snval = (int64_t)nval; 2009 2012 uint64_t tmp[2]; 2013 RT_NOREF_PV(arg); 2010 2014 2011 2015 data[0]++; … … 2031 2035 dtrace_aggregate_count(uint64_t *oval, uint64_t nval, uint64_t arg) 2032 2036 { 2037 RT_NOREF_PV(arg); RT_NOREF_PV(nval); 2038 2033 2039 *oval = *oval + 1; 2034 2040 } … … 2038 2044 dtrace_aggregate_sum(uint64_t *oval, uint64_t nval, uint64_t arg) 2039 2045 { 2046 RT_NOREF_PV(arg); 2040 2047 *oval += nval; 2041 2048 } … … 7036 7043 dtrace_match_string(const char *s, const char *p, int depth) 7037 7044 { 7045 RT_NOREF_PV(depth); 7038 7046 return (s != NULL && strcmp(s, p) == 0); 7039 7047 } … … 7043 7051 dtrace_match_nul(const char *s, const char *p, int depth) 7044 7052 { 7053 RT_NOREF_PV(s); RT_NOREF_PV(p); RT_NOREF_PV(depth); 7045 7054 return (1); /* always match the empty pattern */ 7046 7055 } … … 7050 7059 dtrace_match_nonzero(const char *s, const char *p, int depth) 7051 7060 { 7061 RT_NOREF_PV(p); RT_NOREF_PV(depth); 7052 7062 return (s != NULL && s[0] != '\0'); 7053 7063 } … … 11404 11414 dtrace_dof_error(dof_hdr_t *dof, const char *str) 11405 11415 { 11416 RT_NOREF_PV(dof); 11417 11406 11418 if (dtrace_err_verbose) 11407 11419 cmn_err(CE_WARN, "failed to process DOF: %s", str); … … 11564 11576 return (dof); 11565 11577 #else /* VBOX */ 11578 RT_NOREF_PV(name); 11566 11579 return (NULL); 11567 11580 #endif /* VBOX */
Note:
See TracChangeset
for help on using the changeset viewer.