儲存庫 vbox 的更動 62827
- 時間撮記:
- 2016-8-1 下午03:44:42 (8 年 以前)
- 位置:
- trunk/src/VBox/ExtPacks/VBoxDTrace
- 檔案:
-
- 修改 6 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h
r62496 r62827 144 144 #define VBDTUNASS(a_Value) = a_Value 145 145 #define VBDTGCC(a_Value) = a_Value 146 #define VBDTMSC(a_Value) = a_Value 146 147 147 148 /* -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/dtrace.c
r58991 r62827 618 618 dtrace_probedesc_t *pdp = &edp->dted_probe; 619 619 dtrace_probeinfo_t p; 620 RT_NOREF1(pgp); 620 621 621 622 if (edp == *last) … … 744 745 { 745 746 dtrace_probeinfo_t p; 747 RT_NOREF1(arg); 746 748 747 749 oprintf("%5d %10s %17s %33s %s\n", pdp->dtpd_id, … … 760 762 { 761 763 dtrace_ecbdesc_t *edp = stp->dtsd_ecbdesc; 764 RT_NOREF1(pgp); 762 765 763 766 if (edp == *last) … … 869 872 break; 870 873 } 871 #endif /* !VBOX */ 874 #else 875 RT_NOREF3(P, msg, arg); 876 #endif /* VBOX */ 872 877 } 873 878 … … 876 881 errhandler(const dtrace_errdata_t *data, void *arg) 877 882 { 883 RT_NOREF1(arg); 878 884 error(data->dteda_msg); 879 885 return (DTRACE_HANDLE_OK); … … 884 890 drophandler(const dtrace_dropdata_t *data, void *arg) 885 891 { 892 RT_NOREF1(arg); 886 893 error(data->dtdda_msg); 887 894 return (DTRACE_HANDLE_OK); … … 892 899 setopthandler(const dtrace_setoptdata_t *data, void *arg) 893 900 { 901 RT_NOREF1(arg); 894 902 if (strcmp(data->dtsda_option, "quiet") == 0) 895 903 g_quiet = data->dtsda_newval != DTRACEOPT_UNSET; … … 955 963 { NULL } 956 964 }; 965 RT_NOREF1(arg); 957 966 958 967 if (bufdata->dtbda_probe != NULL) { … … 1054 1063 dtrace_actkind_t act; 1055 1064 uintptr_t addr; 1065 RT_NOREF1(arg); 1056 1066 1057 1067 if (rec == NULL) { … … 1084 1094 processorid_t cpu = data->dtpda_cpu; 1085 1095 static int heading; 1096 RT_NOREF1(arg); 1086 1097 1087 1098 if (g_impatient) { … … 1311 1322 while ((c = RTGetOpt(&GetState, &ValueUnion))) { 1312 1323 { 1313 const char *optarg = ValueUnion.psz;1324 /* const char *optarg = ValueUnion.psz; - unused */ 1314 1325 #endif 1315 1326 switch (c) { -
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 */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器