Changeset 53647 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- Timestamp:
- Jan 2, 2015 12:17:41 PM (10 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/dtrace.c
r53646 r53647 149 149 static char **g_argv; 150 150 static int g_argc; 151 #ifndef VBOX /* No linking. */ 151 152 static char **g_objv; 152 153 static int g_objc; 154 #endif 153 155 static dtrace_cmd_t *g_cmdv; 154 156 static int g_cmdc; … … 171 173 static int g_grabanon = 0; 172 174 static const char *g_ofile = NULL; 173 #ifndef _MSC_VER /* stdout isn't a constant usablein C code. */175 #ifndef VBOX /* stdout isn't a necessarily constant usable like this in C code. */ 174 176 static FILE *g_ofp = stdout; 175 177 #else … … 707 709 } 708 710 711 #ifndef VBOX 709 712 /* 710 713 * Link the specified D program in DOF form into an ELF file for use in either … … 735 738 dfatal("failed to link %s %s", dcp->dc_desc, dcp->dc_name); 736 739 } 740 #endif /* !VBOX */ 737 741 738 742 /*ARGSUSED*/ … … 1252 1256 int done = 0, mode = 0; 1253 1257 int err, i; 1258 #ifndef VBOX 1254 1259 char c, *p, **v; 1260 #else 1261 int c; 1262 char *p, **v; 1263 #endif 1255 1264 struct ps_prochandle *P; 1256 1265 pid_t pid; … … 1262 1271 if (RT_FAILURE(err)) 1263 1272 return RTMsgInitFailure(err); 1264 #endif 1265 #ifdef _MSC_VER 1273 1266 1274 g_ofp = stdout; 1267 1275 #endif … … 1352 1360 1353 1361 case 'G': 1362 #ifndef VBOX 1354 1363 g_mode = DMODE_LINK; 1355 1364 g_oflags |= DTRACE_O_NODEV; … … 1358 1367 mode++; 1359 1368 break; 1369 #else 1370 fprintf(stderr, "%s: -G is not supported\n", g_pname); 1371 return (E_USAGE); 1372 #endif 1360 1373 1361 1374 case 'l': … … 1479 1492 */ 1480 1493 if (g_mode == DMODE_LINK) { 1494 #ifndef VBOX /* No link mode. */ 1481 1495 (void) dtrace_setopt(g_dtp, "linkmode", "dynamic"); 1482 1496 (void) dtrace_setopt(g_dtp, "unodefs", NULL); … … 1493 1507 */ 1494 1508 g_argc = 1; 1509 #else /* VBOX */ 1510 AssertFailed(); 1511 #endif /* VBOX */ 1495 1512 } else if (g_mode == DMODE_ANON) 1496 1513 (void) dtrace_setopt(g_dtp, "linkmode", "primary"); … … 1812 1829 1813 1830 case DMODE_LINK: 1831 #ifndef VBOX /* No link mode. */ 1814 1832 if (g_cmdc == 0) { 1815 1833 (void) fprintf(stderr, "%s: -G requires one or more " … … 1835 1853 dtrace_close(g_dtp); 1836 1854 return (g_status); 1855 #else /* VBOX */ 1856 AssertFailed(); 1857 dtrace_close(g_dtp); 1858 return (E_USAGE); 1859 #endif /* VBOX */ 1837 1860 1838 1861 case DMODE_LIST: -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c
r53645 r53647 110 110 # include <iprt/asm-amd64-x86.h> 111 111 # define dtrace_casptr(a_ppvDst, a_pvOld, a_pvNew) \ 112 VBoxDtCompareAndSwapPtr( a_ppvDst, a_pvOld, a_pvNew)112 VBoxDtCompareAndSwapPtr((void * volatile *)a_ppvDst, a_pvOld, a_pvNew) 113 113 DECLINLINE(void *) VBoxDtCompareAndSwapPtr(void * volatile *ppvDst, void *pvOld, void *pvNew) 114 114 { … … 9794 9794 dtrace_recdesc_t *rec; 9795 9795 dtrace_state_t *state = ecb->dte_state; 9796 dtrace_optval_t *opt = state->dts_options, nframes , strsize;9796 dtrace_optval_t *opt = state->dts_options, nframes VBDTUNASS(0), strsize; 9797 9797 uint64_t arg = desc->dtad_arg; 9798 9798
Note:
See TracChangeset
for help on using the changeset viewer.