Changeset 62608 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- Timestamp:
- Jul 27, 2016 4:50:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.