Changeset 62827 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace
- Timestamp:
- Aug 1, 2016 3:44:42 PM (8 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_aggregate.c
r53664 r62827 92 92 dt_aggregate_min(int64_t *existing, int64_t *new, size_t size) 93 93 { 94 RT_NOREF1(size); 94 95 if (*new < *existing) 95 96 *existing = *new; … … 100 101 dt_aggregate_max(int64_t *existing, int64_t *new, size_t size) 101 102 { 103 RT_NOREF1(size); 102 104 if (*new > *existing) 103 105 *existing = *new; … … 141 143 uint16_t levels = DTRACE_LQUANTIZE_LEVELS(arg); 142 144 int i; 145 RT_NOREF1(size); 143 146 144 147 for (i = 0; i <= levels + 1; i++) … … 222 225 int nbuckets = DTRACE_QUANTIZE_NBUCKETS, i; 223 226 long double ltotal = 0, rtotal = 0; 224 int64_t lzero , rzero;227 int64_t lzero VBDTMSC(0), rzero VBDTMSC(0); 225 228 226 229 for (i = 0; i < nbuckets; i++) { … … 278 281 dt_proc_unlock(dtp, P); 279 282 dt_proc_release(dtp, P); 283 #else 284 RT_NOREF2(dtp, data); 280 285 #endif 281 286 } … … 303 308 dt_proc_unlock(dtp, P); 304 309 dt_proc_release(dtp, P); 310 #else 311 RT_NOREF2(dtp, data); 305 312 #endif 306 313 } … … 575 582 } 576 583 577 if ( j == cpu) {584 if ((unsigned)j == cpu) { 578 585 bcopy(&addr[rec->dtrd_offset], 579 586 percpu[j], rec->dtrd_size); … … 816 823 caddr_t ldata = lh->dtahe_data.dtada_data; 817 824 caddr_t rdata = rh->dtahe_data.dtada_data; 818 dtrace_recdesc_t *lrec , *rrec;825 dtrace_recdesc_t *lrec VBDTMSC(NULL), *rrec VBDTMSC(NULL); 819 826 int64_t *laddr, *raddr; 820 827 int rval, i; … … 1377 1384 { 1378 1385 dt_aggregate_t *agp = &dtp->dt_aggregate; 1379 dt_ahashent_t *h, **sorted = NULL, ***bundle , **nbundle;1386 dt_ahashent_t *h, **sorted = NULL, ***bundle VBDTMSC(NULL), **nbundle; 1380 1387 const dtrace_aggdata_t **data; 1381 1388 dt_ahashent_t *zaggdata = NULL; -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_as.c
r53653 r62827 83 83 { 84 84 size_t *np = data; 85 RT_NOREF1(dhp); 85 86 86 87 if (idp->di_flags & (DT_IDFLG_DIFR | DT_IDFLG_DIFW)) … … 98 99 ssize_t stroff; 99 100 dt_node_t dn; 101 RT_NOREF1(dhp); 100 102 101 103 if (!(idp->di_flags & (DT_IDFLG_DIFR | DT_IDFLG_DIFW))) -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c
r53701 r62827 139 139 dt_idreset(dt_idhash_t *dhp, dt_ident_t *idp, void *ignored) 140 140 { 141 RT_NOREF2(dhp, ignored); 141 142 idp->di_flags &= ~(DT_IDFLG_REF | DT_IDFLG_MOD | 142 143 DT_IDFLG_DIFR | DT_IDFLG_DIFW); … … 148 149 dt_idpragma(dt_idhash_t *dhp, dt_ident_t *idp, void *ignored) 149 150 { 151 RT_NOREF2(dhp, ignored); 150 152 yylineno = idp->di_lineno; 151 153 xyerror(D_PRAGMA_UNUSED, "unused #pragma %s\n", (char *)idp->di_iarg); … … 858 860 dt_node_t *dnp, dtrace_actkind_t kind) 859 861 { 862 RT_NOREF1(dtp); 860 863 assert(kind == DTRACEACT_SYM || kind == DTRACEACT_MOD || 861 864 kind == DTRACEACT_USYM || kind == DTRACEACT_UMOD || … … 881 884 { 882 885 dtrace_actdesc_t *ap = dt_stmt_action(dtp, sdp); 886 RT_NOREF1(dnp); 883 887 884 888 /* … … 897 901 { 898 902 dtrace_actdesc_t *ap = dt_stmt_action(dtp, sdp); 903 RT_NOREF1(dnp); 899 904 900 905 ap->dtad_kind = DTRACEACT_STOP; … … 907 912 { 908 913 dtrace_actdesc_t *ap = dt_stmt_action(dtp, sdp); 914 RT_NOREF1(dnp); 909 915 910 916 ap->dtad_kind = DTRACEACT_BREAKPOINT; … … 917 923 { 918 924 dtrace_actdesc_t *ap = dt_stmt_action(dtp, sdp); 925 RT_NOREF1(dnp); 919 926 920 927 ap->dtad_kind = DTRACEACT_PANIC; … … 1095 1102 dt_node_t *anp, *incr = NULL; 1096 1103 dtrace_actdesc_t *ap; 1097 uint_t n = 1, argmax ;1104 uint_t n = 1, argmax VBDTMSC(0); 1098 1105 uint64_t arg = 0; 1099 1106 … … 1730 1737 (void) fclose(ofp); 1731 1738 return (NULL); 1739 1732 1740 #else /* VBOX */ 1741 RT_NOREF1(ifp); 1733 1742 (void) dt_set_errno(dtp, EDT_CPPERR); 1734 1743 return (NULL); … … 1991 2000 struct FakeDirEntry { 1992 2001 const char *d_name; 1993 } FakeDirEntry = { DirEntry.szName }, *dp = &FakeDirEntry; 2002 } FakeDirEntry, *dp = &FakeDirEntry; 2003 FakeDirEntry.d_name = DirEntry.szName; 1994 2004 #endif 1995 2005 if ((p = strrchr(dp->d_name, '.')) == NULL || strcmp(p, ".d")) -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dtrace.h
r53694 r62827 154 154 void *dtsd_aggdata; /* aggregation data */ 155 155 void *dtsd_fmtdata; /* type-specific output data */ 156 void (*dtsd_callback)( ); /* callback function for EPID */156 void (*dtsd_callback)(void); /* callback function for EPID */ 157 157 void *dtsd_data; /* callback data pointer */ 158 158 dtrace_attribute_t dtsd_descattr; /* probedesc attributes */
Note:
See TracChangeset
for help on using the changeset viewer.