- Timestamp:
- Jan 2, 2015 12:31:53 PM (10 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTrace/Makefile.kmk
r53660 r53664 36 36 VBoxDTrace_DEFS = RTMEM_WRAP_TO_EF_APIS 37 37 VBoxDTrace_SDKS = VBOX_ZLIB 38 ifn1of ($(KBUILD_TARGET), win) 39 VBoxDTrace_CFLAGS = -Wno-format 40 endif 38 41 VBoxDTrace_INCS = \ 39 42 ../include \ -
trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h
r53663 r53664 37 37 #ifdef IN_RING3 38 38 # include <sys/types.h> 39 # include <limits.h> 39 40 #endif 40 41 … … 50 51 typedef uint64_t u_longlong_t; 51 52 typedef uint64_t hrtime_t; 52 typedef RTCC UINTREGgreg_t;53 typedef RTCCINTREG greg_t; 53 54 typedef uintptr_t pc_t; 54 typedef uint ptr_tid_t;55 typedef uint32_t id_t; 55 56 typedef unsigned int model_t; 56 57 typedef uint32_t zoneid_t; … … 67 68 #define SEC (1) 68 69 #define MAXPATHLEN RTPATH_MAX 70 #undef PATH_MAX 69 71 #define PATH_MAX RTPATH_MAX 70 72 #define NBBY (8) … … 119 121 #define VBDTSTATIC static 120 122 #define VBDTUNASS(a_Value) = a_Value 123 #define VBDTGCC(a_Value) = a_Value 121 124 122 125 /* … … 393 396 */ 394 397 extern int dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd); 398 extern int dtrace_detach(dev_info_t *dip, ddi_detach_cmd_t cmd); 395 399 extern int dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv); 396 400 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_aggregate.c
r53659 r53664 653 653 654 654 for (i = 0; i < agp->dtat_ncpus; i++) { 655 if ( rval = dt_aggregate_snap_cpu(dtp, agp->dtat_cpus[i]))655 if ((rval = dt_aggregate_snap_cpu(dtp, agp->dtat_cpus[i]))) 656 656 return (rval); 657 657 } -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_impl.h
r53659 r53664 635 635 extern int yydebug; /* lex debugging */ 636 636 extern dt_node_t *yypragma; /* lex token list for control lines */ 637 #ifdef VBOX 638 extern int yylex(void); 639 #endif 637 640 638 641 extern const dtrace_attribute_t _dtrace_maxattr; /* maximum attributes */ -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c
r53663 r53664 548 548 } 549 549 550 #ifndef /* VBOX - who needs this? */551 550 int 552 551 dt_status(dtrace_hdl_t *dtp, processorid_t cpu) … … 564 563 return (v->dtv_status(dtp->dt_varg, cpu)); 565 564 } 566 #endif567 565 568 566 #ifndef VBOX -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c
r53663 r53664 10410 10410 buf = &bufs[cp->cpu_id]; 10411 10411 #else 10412 10412 for (iCpu = 0; iCpu < RTCPUSET_MAX_CPUS; iCpu++) { 10413 10413 if ( !RTCpuSetIsMember(&CpuSet, iCpu) 10414 10414 || (cpu != (processorid_t)DTRACE_CPUALL && cpu != iCpu)) 10415 10415 continue; 10416 10416 … … 12658 12658 { 12659 12659 dtrace_optval_t *opt = state->dts_options, size; 12660 processorid_t cpu ;12660 processorid_t cpu VBDTUNASS(DTRACE_CPUALL); 12661 12661 int flags = 0, rval; 12662 12662 … … 13629 13629 */ 13630 13630 for (;;) { 13631 dtrace_helper_provider_t *prov ;13631 dtrace_helper_provider_t *prov VBDTGCC(NULL); 13632 13632 13633 13633 /*
Note:
See TracChangeset
for help on using the changeset viewer.