Changeset 62829 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace
- Timestamp:
- Aug 1, 2016 4:23:00 PM (8 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_as.c
r62827 r62829 223 223 uint_t i; 224 224 225 uint_t kmask , kbits, umask, ubits;225 uint_t kmask VBDTMSC(0), kbits VBDTMSC(0), umask VBDTMSC(0), ubits VBDTMSC(0); 226 226 uint_t krel = 0, urel = 0, xlrefs = 0; 227 227 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cg.c
r53659 r62829 411 411 { 412 412 ctf_encoding_t e; 413 dif_instr_t instr ;413 dif_instr_t instr VBDTMSC(0); 414 414 size_t size; 415 415 int reg; … … 1917 1917 { 1918 1918 dif_instr_t instr; 1919 dt_xlator_t *dxp ;1919 dt_xlator_t *dxp VBDTMSC(NULL); 1920 1920 1921 1921 if (pcb->pcb_regs == NULL && (pcb->pcb_regs = -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_consume.c
r53659 r62829 488 488 489 489 static int 490 dt_nullprobe( )490 dt_nullprobe(void) 491 491 { 492 492 return (DTRACE_CONSUME_THIS); … … 494 494 495 495 static int 496 dt_nullrec( )496 dt_nullrec(void) 497 497 { 498 498 return (DTRACE_CONSUME_NEXT); … … 702 702 /* LINTED - alignment */ 703 703 int64_t *data = (int64_t *)addr; 704 RT_NOREF1(size); 704 705 705 706 return (dt_printf(dtp, fp, " %16lld", data[0] ? … … 714 715 /* LINTED - alignment */ 715 716 uint64_t *data = (uint64_t *)addr; 717 RT_NOREF1(size); 716 718 717 719 return (dt_printf(dtp, fp, " %16llu", data[0] ? … … 1086 1088 } 1087 1089 } 1090 #else 1091 RT_NOREF1(act); 1088 1092 #endif 1089 1093 … … 1141 1145 } 1142 1146 #else /* VBOX */ 1147 RT_NOREF_PV(pid); 1143 1148 snprintf(c, sizeof (c), "0x%llx", (u_longlong_t)pc); 1144 1149 err = dt_printf(dtp, fp, format, c); … … 1852 1857 const dtrace_probedata_t *, 1853 1858 const dtrace_recdesc_t *, uint_t, 1854 const void *buf, size_t) ;1859 const void *buf, size_t) VBDTMSC(NULL); 1855 1860 1856 1861 if ((fmtdata = dt_format_lookup(dtp, … … 2110 2115 dtrace_optval_t size; 2111 2116 2112 dtp->dt_beganon = -1;2117 dtp->dt_beganon = (processorid_t)-1; 2113 2118 2114 2119 if (dt_ioctl(dtp, DTRACEIOC_BUFSNAP, buf) == -1) { … … 2175 2180 nbuf.dtbd_cpu = i; 2176 2181 2177 if ( i == cpu)2182 if ((unsigned)i == cpu) 2178 2183 continue; 2179 2184 … … 2286 2291 * everything else. 2287 2292 */ 2288 if (dtp->dt_stopped && ( i == dtp->dt_endedon))2293 if (dtp->dt_stopped && ((unsigned)i == dtp->dt_endedon)) 2289 2294 continue; 2290 2295 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_decl.c
r53655 r62829 514 514 515 515 dtrace_typeinfo_t dtt; 516 ctf_encoding_t cte ;516 ctf_encoding_t cte VBDTMSC({0}); 517 517 ctf_id_t base; 518 518 uint_t kind; … … 653 653 dt_decl_hasmembers(const char *name, int value, void *private) 654 654 { 655 RT_NOREF3(name, value, private); 655 656 return (1); /* abort search and return true if a member exists */ 656 657 } -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_dis.c
r53655 r62829 39 39 dt_dis_log(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) 40 40 { 41 RT_NOREF1(dp); 41 42 (void) fprintf(fp, "%-4s %%r%u, %%r%u, %%r%u", name, 42 43 DIF_INSTR_R1(in), DIF_INSTR_R2(in), DIF_INSTR_RD(in)); … … 48 49 dif_instr_t in, FILE *fp) 49 50 { 51 RT_NOREF1(dp); 50 52 (void) fprintf(fp, "%-4s %u", name, DIF_INSTR_LABEL(in)); 51 53 } … … 55 57 dt_dis_load(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) 56 58 { 59 RT_NOREF1(dp); 57 60 (void) fprintf(fp, "%-4s [%%r%u], %%r%u", name, 58 61 DIF_INSTR_R1(in), DIF_INSTR_RD(in)); … … 64 67 dif_instr_t in, FILE *fp) 65 68 { 69 RT_NOREF1(dp); 66 70 (void) fprintf(fp, "%-4s %%r%u, [%%r%u]", name, 67 71 DIF_INSTR_R1(in), DIF_INSTR_RD(in)); … … 72 76 dt_dis_str(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) 73 77 { 78 RT_NOREF2(dp, in); 74 79 (void) fprintf(fp, "%s", name); 75 80 } … … 79 84 dt_dis_r1rd(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) 80 85 { 86 RT_NOREF1(dp); 81 87 (void) fprintf(fp, "%-4s %%r%u, %%r%u", name, 82 88 DIF_INSTR_R1(in), DIF_INSTR_RD(in)); … … 87 93 dt_dis_cmp(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) 88 94 { 95 RT_NOREF1(dp); 89 96 (void) fprintf(fp, "%-4s %%r%u, %%r%u", name, 90 97 DIF_INSTR_R1(in), DIF_INSTR_R2(in)); … … 95 102 dt_dis_tst(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) 96 103 { 104 RT_NOREF1(dp); 97 105 (void) fprintf(fp, "%-4s %%r%u", name, DIF_INSTR_R1(in)); 98 106 } … … 195 203 dt_dis_ret(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) 196 204 { 205 RT_NOREF1(dp); 197 206 (void) fprintf(fp, "%-4s %%r%u", name, DIF_INSTR_RD(in)); 198 207 } … … 203 212 { 204 213 uint_t subr = DIF_INSTR_SUBR(in); 214 RT_NOREF1(dp); 205 215 206 216 (void) fprintf(fp, "%-4s DIF_SUBR(%u), %%r%u\t\t! %s", … … 215 225 static const char *const tnames[] = { "D type", "string" }; 216 226 uint_t type = DIF_INSTR_TYPE(in); 227 RT_NOREF1(dp); 217 228 218 229 (void) fprintf(fp, "%-4s DT_TYPE(%u), %%r%u, %%r%u", -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_dof.c
r53655 r62829 407 407 char buf[DT_TYPE_NAMELEN]; 408 408 uint_t i; 409 RT_NOREF1(dhp); 409 410 410 411 dofpr.dofpr_addr = 0; -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_error.c
r53652 r62829 209 209 { 0, NULL } 210 210 }; 211 RT_NOREF1(dtp); 211 212 212 213 for (i = 0; faults[i].str != NULL; i++) { -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_ident.c
r53655 r62829 471 471 dt_idcook_type(dt_node_t *dnp, dt_ident_t *idp, int argc, dt_node_t *args) 472 472 { 473 RT_NOREF2(argc, args); 473 474 if (idp->di_type == CTF_ERR) { 474 475 dtrace_hdl_t *dtp = yypcb->pcb_hdl; … … 493 494 dt_idcook_thaw(dt_node_t *dnp, dt_ident_t *idp, int argc, dt_node_t *args) 494 495 { 496 RT_NOREF2(argc, args); 495 497 if (idp->di_ctfp != NULL && idp->di_type != CTF_ERR) 496 498 dt_node_type_assign(dnp, idp->di_ctfp, idp->di_type); … … 545 547 dt_iddtor_none(dt_ident_t *idp) 546 548 { 549 RT_NOREF1(idp); 547 550 /* do nothing */ 548 551 } … … 565 568 dt_idsize_none(dt_ident_t *idp) 566 569 { 570 RT_NOREF1(idp); 567 571 return (0); 568 572 } -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_module.c
r53659 r62829 485 485 dt_module_lookup_by_ctf(dtrace_hdl_t *dtp, ctf_file_t *ctfp) 486 486 { 487 RT_NOREF1(dtp); 487 488 return (ctfp ? ctf_getspecific(ctfp) : NULL); 488 489 } … … 525 526 dmp->dm_name, ctsp->cts_name, (ulong_t)ctsp->cts_size); 526 527 527 #endif /* !VBOX */ 528 #else /* VBOX */ 529 RT_NOREF3(dtp, dmp, ctsp); 530 #endif /* VBOX */ 528 531 return (0); 529 532 } … … 642 645 * future for combined kernel/user tracing, this can be removed. 643 646 */ 644 if (dtp->dt_conf.dtc_ctfmodel != model) {647 if (dtp->dt_conf.dtc_ctfmodel != (uint_t)model) { 645 648 (void) dt_set_errno(dtp, EDT_DATAMODEL); 646 649 return (NULL); … … 693 696 dt_module_unload(dtrace_hdl_t *dtp, dt_module_t *dmp) 694 697 { 698 RT_NOREF1(dtp); 695 699 ctf_close(dmp->dm_ctfp); 696 700 dmp->dm_ctfp = NULL; … … 925 929 dt_dprintf("opened %d-bit module %s (%s) [%d]\n", 926 930 bits, dmp->dm_name, dmp->dm_file, dmp->dm_modid); 927 #endif /* !VBOX */ 931 #else /* VBOX */ 932 RT_NOREF2(dtp, name); 933 #endif /* VBOX */ 928 934 } 929 935 … … 1122 1128 { 1123 1129 dt_module_t *dmp; 1124 uint_t id ;1130 uint_t id VBDTMSC(0); 1125 1131 const dtrace_vector_t *v = dtp->dt_vector; 1126 1132 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_open.c
r58987 r62829 809 809 *p++ = '_'; 810 810 #else 811 RT_NOREF1(cmd); 811 812 snprintf(buf, len, "%s", "Unknown"); 812 813 #endif … … 1047 1048 1048 1049 for (i = 0; i < DTRACEOPT_MAX; i++) 1049 dtp->dt_options[i] = DTRACEOPT_UNSET;1050 dtp->dt_options[i] = (uint64_t)DTRACEOPT_UNSET; 1050 1051 1051 1052 dtp->dt_cpp_argv[0] = (char *)strbasename(dtp->dt_cpp_path); -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c
r53665 r62829 80 80 char str[DTRACE_ATTR2STR_MAX]; 81 81 dtrace_attribute_t attr; 82 RT_NOREF1(option); 82 83 83 84 if (arg == NULL || dtrace_str2attr(arg, &attr) == -1) … … 130 131 { 131 132 static int enabled = 0; 133 RT_NOREF1(option); 132 134 133 135 if (arg != NULL) … … 144 146 dt_opt_cpp_hdrs(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 145 147 { 148 RT_NOREF1(option); 149 146 150 if (arg != NULL) 147 151 return (dt_set_errno(dtp, EDT_BADOPTVAL)); … … 161 165 { 162 166 char *cpp; 167 RT_NOREF1(option); 163 168 164 169 if (arg == NULL) … … 208 213 { 209 214 int fd; 215 RT_NOREF1(option); 210 216 211 217 if (arg == NULL) … … 224 230 dt_opt_droptags(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 225 231 { 232 RT_NOREF2(option, arg); 233 226 234 dtp->dt_droptags = 1; 227 235 return (0); … … 233 241 { 234 242 int fd; 243 RT_NOREF1(option); 235 244 236 245 if (arg == NULL) … … 249 258 dt_opt_debug(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 250 259 { 260 RT_NOREF1(option); 261 251 262 if (arg != NULL) 252 263 return (dt_set_errno(dtp, EDT_BADOPTVAL)); … … 261 272 { 262 273 int n; 274 RT_NOREF2(arg, option); 263 275 264 276 if (arg == NULL || (n = atoi(arg)) <= 0) … … 273 285 dt_opt_lazyload(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 274 286 { 287 RT_NOREF2(arg, option); 275 288 dtp->dt_lazyload = 1; 276 289 … … 283 296 { 284 297 char *ld; 298 RT_NOREF1(option); 285 299 286 300 if (arg == NULL) … … 304 318 { 305 319 dt_dirpath_t *dp; 320 RT_NOREF1(option); 306 321 307 322 if (arg == NULL) … … 322 337 dt_opt_linkmode(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 323 338 { 339 RT_NOREF1(option); 340 324 341 if (arg == NULL) 325 342 return (dt_set_errno(dtp, EDT_BADOPTVAL)); … … 343 360 dt_opt_linktype(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 344 361 { 362 RT_NOREF1(option); 363 345 364 if (arg == NULL) 346 365 return (dt_set_errno(dtp, EDT_BADOPTVAL)); … … 360 379 dt_opt_evaltime(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 361 380 { 381 RT_NOREF1(option); 382 362 383 if (arg == NULL) 363 384 return (dt_set_errno(dtp, EDT_BADOPTVAL)); … … 382 403 { 383 404 int n; 405 RT_NOREF1(option); 384 406 385 407 if (arg == NULL || (n = atoi(arg)) < 0) … … 394 416 dt_opt_stdc(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 395 417 { 418 RT_NOREF1(option); 419 396 420 if (arg == NULL) 397 421 return (dt_set_errno(dtp, EDT_BADOPTVAL)); … … 420 444 dt_dirpath_t *dp = dt_list_next(&dtp->dt_lib_path); 421 445 char *path; 446 RT_NOREF1(option); 422 447 423 448 if (arg == NULL) … … 439 464 { 440 465 int m; 466 RT_NOREF1(option); 441 467 442 468 if (arg == NULL || (m = atoi(arg)) <= 0) … … 452 478 { 453 479 int n; 480 RT_NOREF1(option); 454 481 455 482 if (arg == NULL || (n = atoi(arg)) <= 0) … … 464 491 dt_opt_xlate(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) 465 492 { 493 RT_NOREF1(option); 494 466 495 if (arg == NULL) 467 496 return (dt_set_errno(dtp, EDT_BADOPTVAL)); … … 521 550 { 522 551 dt_version_t v; 552 RT_NOREF1(option); 523 553 524 554 if (arg == NULL) … … 788 818 dtrace_optval_t policy = DTRACEOPT_UNSET; 789 819 int i; 820 RT_NOREF1(option); 790 821 791 822 if (arg == NULL) … … 822 853 dtrace_optval_t policy = DTRACEOPT_UNSET; 823 854 int i; 855 RT_NOREF1(option); 824 856 825 857 if (arg == NULL) … … 845 877 { 846 878 dof_hdr_t hdr, *dof; 847 dof_sec_t *sec ;879 dof_sec_t *sec VBDTMSC(NULL); 848 880 size_t offs; 849 881 VBDTTYPE(uint32_t,int) i; … … 867 899 868 900 for (i = 0; i < DTRACEOPT_MAX; i++) 869 dtp->dt_options[i] = DTRACEOPT_UNSET;901 dtp->dt_options[i] = (uint64_t)DTRACEOPT_UNSET; 870 902 871 903 if (dt_ioctl(dtp, DTRACEIOC_DOFGET, dof) == -1) … … 904 936 dtrace_optval_t size; 905 937 void *p; 938 RT_NOREF1(option); 906 939 907 940 if (arg == NULL || dt_optval_parse(arg, &size) != 0) -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_parser.c
r53659 r62829 1011 1011 1012 1012 int lp_is_void, rp_is_void, lp_is_int, rp_is_int, compat; 1013 uint_t lkind , rkind;1013 uint_t lkind VBDTMSC(0), rkind VBDTMSC(0); 1014 1014 ctf_encoding_t e; 1015 1015 ctf_arinfo_t r; … … 1240 1240 "in any built-in integral type\n", (u_longlong_t)value); 1241 1241 /*NOTREACHED*/ 1242 #ifndef _MSC_VER 1242 1243 return (NULL); /* keep gcc happy */ 1244 #endif 1243 1245 } 1244 1246 … … 2360 2362 dt_node_member(dt_decl_t *ddp, char *name, dt_node_t *expr) 2361 2363 { 2362 dtrace_typeinfo_t dtt ;2364 dtrace_typeinfo_t dtt VBDTMSC({NULL}); 2363 2365 dt_node_t *dnp; 2364 2366 int err; … … 2842 2844 dt_cook_func(dt_node_t *dnp, uint_t idflags) 2843 2845 { 2846 RT_NOREF1(idflags); 2847 2844 2848 dt_node_attr_assign(dnp, 2845 2849 dt_ident_cook(dnp, dnp->dn_ident, &dnp->dn_args)); … … 3940 3944 ctf_file_t *ctfp; 3941 3945 ctf_id_t type; 3946 RT_NOREF1(idflags); 3942 3947 3943 3948 dnp->dn_expr = dt_node_cook(dnp->dn_expr, DT_IDFLG_REF); … … 4007 4012 { 4008 4013 dtrace_hdl_t *dtp = yypcb->pcb_hdl; 4014 RT_NOREF1(idflags); 4009 4015 4010 4016 if (dnp->dn_aggfun != NULL) { … … 4133 4139 char n1[DT_TYPE_NAMELEN]; 4134 4140 char n2[DT_TYPE_NAMELEN]; 4141 RT_NOREF1(idflags); 4135 4142 4136 4143 assert(dnp->dn_ident->di_flags & DT_IDFLG_INLINE); … … 4197 4204 dtrace_attribute_t attr = _dtrace_maxattr; 4198 4205 ctf_membinfo_t ctm; 4206 RT_NOREF1(idflags); 4199 4207 4200 4208 /* … … 4354 4362 dt_provider_t *pvp = dnp->dn_provider; 4355 4363 dt_node_t *pnp; 4364 RT_NOREF1(idflags); 4356 4365 4357 4366 /* … … 4392 4401 dt_cook_none(dt_node_t *dnp, uint_t idflags) 4393 4402 { 4403 RT_NOREF1(idflags); 4394 4404 return (dnp); 4395 4405 } -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_pragma.c
r53655 r62829 48 48 dt_idhash_t *php; 49 49 dt_ident_t *pdp; 50 RT_NOREF1(dhp); 50 51 51 52 if ((php = yypcb->pcb_pragmas) == NULL) … … 75 76 { 76 77 dtrace_hdl_t *dtp = yypcb->pcb_hdl; 77 dtrace_attribute_t attr, *a ;78 dtrace_attribute_t attr, *a VBDTMSC(NULL); 78 79 dt_provider_t *pvp; 79 80 const char *name, *part; … … 209 210 dtrace_hdl_t *dtp = yypcb->pcb_hdl; 210 211 dt_node_t *nnp = cnp ? cnp->dn_list : NULL; 211 int found ;212 int found VBDTMSC(B_FALSE); 212 213 dt_lib_depend_t *dld; 213 214 char lib[MAXPATHLEN]; … … 319 320 { 320 321 /* ignore any #ident or #pragma ident lines */ 322 RT_NOREF2(prname, dnp); 321 323 } 322 324 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c
r56741 r62829 58 58 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 59 59 { 60 RT_NOREF2(pfv, pfd); 60 61 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); 61 62 } … … 65 66 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 66 67 { 68 RT_NOREF2(pfv, pfd); 67 69 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp) || 68 70 dt_node_is_symaddr(dnp)); … … 75 77 dtrace_hdl_t *dtp = pfv->pfv_dtp; 76 78 dt_ident_t *idp = dt_idhash_lookup(dtp->dt_macros, "target"); 79 RT_NOREF1(pfd); 77 80 78 81 if (dt_node_is_usymaddr(dnp)) … … 89 92 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 90 93 { 94 RT_NOREF2(pfv, pfd); 91 95 return (dt_node_is_stack(dnp)); 92 96 } … … 96 100 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 97 101 { 102 RT_NOREF2(pfv, pfd); 98 103 return (dt_node_is_integer(dnp) && 99 104 dt_node_type_size(dnp) == sizeof (uint64_t)); … … 109 114 ctf_id_t base; 110 115 uint_t kind; 116 RT_NOREF2(pfv, pfd); 111 117 112 118 if (dt_node_is_string(dnp)) … … 132 138 ctf_encoding_t e; 133 139 ctf_arinfo_t r; 140 RT_NOREF2(pfv, pfd); 134 141 135 142 return (kind == CTF_K_ARRAY && ctf_array_info(ctfp, base, &r) == 0 && … … 143 150 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 144 151 { 152 RT_NOREF2(pfv, pfd); 145 153 return (dt_node_is_integer(dnp) && 146 154 dt_node_type_size(dnp) <= sizeof (int)); … … 151 159 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 152 160 { 161 RT_NOREF2(pfv, pfd); 153 162 return (dt_node_is_float(dnp)); 154 163 } … … 158 167 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 159 168 { 169 RT_NOREF2(pfv, pfd); 160 170 return (dt_node_is_integer(dnp)); 161 171 } … … 165 175 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 166 176 { 177 RT_NOREF2(pfv, pfd); 167 178 if (dnp->dn_flags & DT_NF_SIGNED) 168 179 pfd->pfd_flags |= DT_PFCONV_SIGNED; … … 180 191 ctf_id_t type = ctf_type_resolve(ctfp, dnp->dn_type); 181 192 char n[DT_TYPE_NAMELEN]; 193 RT_NOREF2(pfv, pfd); 182 194 183 195 return (ctf_type_name(ctfp, type, n, sizeof (n)) != NULL && ( … … 193 205 ctf_id_t type = ctf_type_resolve(ctfp, dnp->dn_type); 194 206 char n[DT_TYPE_NAMELEN]; 207 RT_NOREF2(pfv, pfd); 195 208 196 209 return (ctf_type_name(ctfp, type, n, sizeof (n)) != NULL && ( … … 206 219 ctf_id_t type = dnp->dn_type; 207 220 char n[DT_TYPE_NAMELEN]; 221 RT_NOREF2(pfv, pfd); 208 222 209 223 if (ctf_type_name(ctfp, ctf_type_resolve(ctfp, type), n, … … 234 248 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) 235 249 { 250 RT_NOREF1(pfv); 236 251 return (ctf_type_compat(dnp->dn_ctfp, ctf_type_resolve(dnp->dn_ctfp, 237 252 dnp->dn_type), pfd->pfd_conv->pfc_dctfp, pfd->pfd_conv->pfc_dtype)); … … 245 260 int64_t normal = (int64_t)unormal; 246 261 int32_t n = (int32_t)normal; 262 RT_NOREF1(pfd); 247 263 248 264 switch (size) { … … 270 286 { 271 287 uint32_t n = (uint32_t)normal; 288 RT_NOREF1(pfd); 272 289 273 290 switch (size) { … … 305 322 { 306 323 double n = (double)normal; 324 #ifndef _MSC_VER 307 325 long double ldn = (long double)normal; 326 #endif 327 RT_NOREF1(pfd); 308 328 309 329 switch (size) { … … 332 352 int n, len = 256; 333 353 uint64_t val; 354 RT_NOREF2(pfd, normal); 334 355 335 356 switch (size) { … … 357 378 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) 358 379 { 380 RT_NOREF3(pfd, size, normal); 359 381 return (dt_print_mod(dtp, fp, format, (caddr_t)addr)); 360 382 } … … 365 387 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) 366 388 { 389 RT_NOREF3(pfd, size, normal); 367 390 return (dt_print_umod(dtp, fp, format, (caddr_t)addr)); 368 391 } … … 378 401 379 402 dt_ident_t *idp = dt_idhash_lookup(dtp->dt_macros, "target"); 403 RT_NOREF2(pfd, normal); 380 404 381 405 switch (size) { … … 415 439 caddr_t addr = (caddr_t)vaddr; 416 440 int err = 0; 441 RT_NOREF2(size, normal); 417 442 418 443 /* … … 491 516 RTTIME Time; 492 517 char buf[32]; 518 RT_NOREF3(pfd, size, normal); 493 519 494 520 RTTimeLocalExplode(&Time, RTTimeSpecSetNano(&TimeSpec, *(uint64_t *)addr)); … … 522 548 RTTIME Time; 523 549 char buf[64]; 550 RT_NOREF3(pfd, size, normal); 524 551 525 552 RTTimeLocalExplode(&Time, RTTimeSpecSetNano(&TimeSpec, *(uint64_t *)addr)); … … 550 577 uint16_t uPortNet = *(uint16_t *)addr; 551 578 char buf[32]; 579 RT_NOREF3(pfd, size, normal); 552 580 553 581 RTStrPrintf(buf, sizeof(buf), "%d", RT_N2H_U16(uPortNet)); … … 568 596 int e; 569 597 #endif 598 RT_NOREF2(pfd, normal); 570 599 571 600 bcopy(addr, s, size); … … 593 622 { 594 623 char *s = alloca(size + 1); 624 RT_NOREF2(pfd, normal); 595 625 596 626 bcopy(addr, s, size); … … 605 635 { 606 636 wchar_t *ws = alloca(size + sizeof (wchar_t)); 637 RT_NOREF2(pfd, normal); 607 638 608 639 bcopy(addr, ws, size); … … 618 649 char *s; 619 650 int n; 651 RT_NOREF2(pfd, normal); 620 652 621 653 if ((s = strchr2esc(addr, size)) == NULL) … … 655 687 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) 656 688 { 689 RT_NOREF5(format, pfd, addr, size, normal); 657 690 return (dt_printf(dtp, fp, "%%")); 658 691 } … … 1104 1137 1105 1138 char vname[64]; 1106 dt_node_t *vnp ;1139 dt_node_t *vnp VBDTMSC(NULL); 1107 1140 1108 1141 if (pfc == NULL) … … 1312 1345 { 1313 1346 const uint64_t *data = addr; 1347 RT_NOREF1(pfd); 1314 1348 1315 1349 if (size != sizeof (uint64_t) * 2) … … 1326 1360 { 1327 1361 const uint64_t *data = addr; 1362 RT_NOREF1(pfd); 1328 1363 1329 1364 if (size != sizeof (uint64_t) * 4) … … 1339 1374 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) 1340 1375 { 1376 RT_NOREF2(pfd, format); 1341 1377 return (dt_print_quantize(dtp, fp, addr, size, normal)); 1342 1378 } … … 1347 1383 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) 1348 1384 { 1385 RT_NOREF2(pfd, format); 1349 1386 return (dt_print_lquantize(dtp, fp, addr, size, normal)); 1350 1387 } … … 1357 1394 dt_pfargd_t *pfd = pfv->pfv_argv; 1358 1395 const dtrace_recdesc_t *recp = recs; 1359 const dtrace_aggdata_t *aggdata ;1396 const dtrace_aggdata_t *aggdata VBDTMSC(NULL); 1360 1397 dtrace_aggdesc_t *agg; 1361 1398 caddr_t lim = (caddr_t)buf + len, limit; 1362 1399 char format[64] = "%"; 1363 int i, aggrec , curagg = -1;1400 int i, aggrec VBDTMSC(0), curagg = -1; 1364 1401 uint64_t normal; 1365 1402 … … 1416 1453 flags = DTRACE_BUFDATA_AGGFORMAT; 1417 1454 1418 if (pfc == NULL && i == pfv->pfv_argc - 1)1455 if (pfc == NULL && VBDTCAST(uint_t)i == pfv->pfv_argc - 1) 1419 1456 flags |= DTRACE_BUFDATA_AGGLAST; 1420 1457 … … 1586 1623 * as appropriate. 1587 1624 */ 1588 if ( i == pfv->pfv_argc - 1)1625 if (VBDTCAST(uint_t)i == pfv->pfv_argc - 1) 1589 1626 flags |= DTRACE_BUFDATA_AGGLAST; 1590 1627 … … 1634 1671 { 1635 1672 int rval = dtrace_sprintf(dtp, fp, fmtdata, recp, nrecs, buf, len); 1673 RT_NOREF1(data); 1636 1674 1637 1675 if (rval == -1) … … 1767 1805 uint_t nrecs, const void *buf, size_t len) 1768 1806 { 1807 RT_NOREF1(data); 1769 1808 return (dt_printf_format(dtp, fp, fmtdata, 1770 1809 recp, nrecs, buf, len, NULL, 0)); … … 1841 1880 size_t j; 1842 1881 #endif 1882 RT_NOREF1(dtp); 1843 1883 1844 1884 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) { … … 1920 1960 1921 1961 if (dt_printf_getint(dtp, recp++, nrecs--, 1922 adp->dtada_data, adp->dtada_size, &id) != 0 || pfw->pfw_aid != id)1962 adp->dtada_data, adp->dtada_size, &id) != 0 || pfw->pfw_aid != VBDTCAST(uint_t)id) 1923 1963 return (0); /* no aggregation id or id does not match */ 1924 1964 … … 1972 2012 int i, naggvars = 0; 1973 2013 dtrace_aggvarid_t *aggvars; 2014 RT_NOREF2(data, len); 1974 2015 1975 2016 aggvars = alloca(nrecs * sizeof (dtrace_aggvarid_t)); -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_program.c
r53655 r62829 91 91 dtrace_actdesc_t *ap; 92 92 dtrace_ecbdesc_t *last = NULL; 93 RT_NOREF1(dtp); 93 94 94 95 if (pip == NULL) … … 409 410 const char *p; 410 411 int i; 412 RT_NOREF1(dhp); 411 413 412 414 p = prp->pr_name; … … 427 429 return (dt_set_errno(dtp, errno)); 428 430 429 if ( i + 1 != prp->pr_nargc &&431 if ((uint_t)i + 1 != prp->pr_nargc && 430 432 fprintf(infop->dthi_out, ", ") < 0) 431 433 return (dt_set_errno(dtp, errno)); … … 460 462 const char *p; 461 463 VBDTTYPE(uint_t,int) i; 464 RT_NOREF1(dhp); 462 465 463 466 p = prp->pr_name; … … 585 588 { 586 589 dt_provider_t *pvp; 587 char *mfname , *p;590 char *mfname VBDTMSC(NULL), *p; 588 591 589 592 if (fname != NULL) { -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_provider.c
r53655 r62829 649 649 dt_probe_desc(dtrace_hdl_t *dtp, const dtrace_probedesc_t *pdp, void *arg) 650 650 { 651 RT_NOREF1(dtp); 652 651 653 if (((dtrace_probedesc_t *)arg)->dtpd_id == DTRACE_IDNONE) { 652 654 bcopy(pdp, arg, sizeof (dtrace_probedesc_t)); … … 807 809 { 808 810 const dt_probe_t *prp = idp->di_data; 811 RT_NOREF1(ihp); 809 812 810 813 if (!dt_gmatch(prp->pr_name, pit->pit_pat)) -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c
r53688 r62829 496 496 if (dtp->dt_fd >= 0) 497 497 return (ioctl(dtp->dt_fd, val, arg)); 498 499 errno = EBADF; 500 return (-1); 498 501 #else 499 502 # if 1 … … 549 552 550 553 } 554 555 errno = EBADF; 556 return (-1); 551 557 # endif 552 558 #endif 553 554 errno = EBADF;555 return (-1);556 559 } 557 560 … … 605 608 } 606 609 607 if ( resid == n && n != 0)610 if ((size_t)resid == n && n != 0) 608 611 return (dt_set_errno(dtp, errno)); 609 612 … … 797 800 dt_free(dtrace_hdl_t *dtp, void *data) 798 801 { 802 RT_NOREF1(dtp); 799 803 assert(dtp != NULL); /* ensure sane use of this interface */ 800 804 free(data); … … 996 1000 #else 997 1001 char c[32]; 1002 RT_NOREF2(dtp, pid); 998 1003 RTStrPrintf(c, sizeof (c), "0x%llx", addr); 999 1004 #endif -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_work.c
r53690 r62829 276 276 int status = dtrace_status(dtp); 277 277 dtrace_optval_t policy = dtp->dt_options[DTRACEOPT_BUFPOLICY]; 278 dtrace_workstatus_t rval ;278 dtrace_workstatus_t rval VBDTMSC(DTRACE_WORKSTATUS_ERROR); 279 279 280 280 switch (status) { -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_xlator.c
r53655 r62829 51 51 dtrace_hdl_t *dtp = dxp->dx_hdl; 52 52 dt_node_t *enp, *mnp; 53 RT_NOREF1(off); 53 54 54 55 if ((enp = dt_node_xalloc(dtp, DT_NODE_XLATOR)) == NULL) -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dtrace.h
r62827 r62829 443 443 */ 444 444 445 #define DTRACE_OBJ_EXEC ((const char *) 0L) /* primary executable file */446 #define DTRACE_OBJ_RTLD ((const char *) 1L) /* run-time link-editor */447 #define DTRACE_OBJ_CDEFS ((const char *) 2L) /* C include definitions */448 #define DTRACE_OBJ_DDEFS ((const char *) 3L) /* D program definitions */449 #define DTRACE_OBJ_EVERY ((const char *) -1L) /* all known objects */450 #define DTRACE_OBJ_KMODS ((const char *) -2L) /* all kernel objects */451 #define DTRACE_OBJ_UMODS ((const char *) -3L) /* all user objects */445 #define DTRACE_OBJ_EXEC ((const char *)(intptr_t)0L) /* primary executable file */ 446 #define DTRACE_OBJ_RTLD ((const char *)(intptr_t)1L) /* run-time link-editor */ 447 #define DTRACE_OBJ_CDEFS ((const char *)(intptr_t)2L) /* C include definitions */ 448 #define DTRACE_OBJ_DDEFS ((const char *)(intptr_t)3L) /* D program definitions */ 449 #define DTRACE_OBJ_EVERY ((const char *)(intptr_t)-1L) /* all known objects */ 450 #define DTRACE_OBJ_KMODS ((const char *)(intptr_t)-2L) /* all kernel objects */ 451 #define DTRACE_OBJ_UMODS ((const char *)(intptr_t)-3L) /* all user objects */ 452 452 453 453 typedef struct dtrace_objinfo {
Note:
See TracChangeset
for help on using the changeset viewer.