VirtualBox

Changeset 53664 in vbox for trunk


Ignore:
Timestamp:
Jan 2, 2015 12:31:53 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: build on linux. (r41)

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTrace/Makefile.kmk

    r53660 r53664  
    3636VBoxDTrace_DEFS = RTMEM_WRAP_TO_EF_APIS
    3737VBoxDTrace_SDKS = VBOX_ZLIB
     38ifn1of ($(KBUILD_TARGET), win)
     39 VBoxDTrace_CFLAGS = -Wno-format
     40endif
    3841VBoxDTrace_INCS = \
    3942        ../include \
  • trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h

    r53663 r53664  
    3737#ifdef IN_RING3
    3838# include <sys/types.h>
     39# include <limits.h>
    3940#endif
    4041
     
    5051typedef uint64_t                    u_longlong_t;
    5152typedef uint64_t                    hrtime_t;
    52 typedef RTCCUINTREG                 greg_t;
     53typedef RTCCINTREG                  greg_t;
    5354typedef uintptr_t                   pc_t;
    54 typedef uintptr_t                   id_t;
     55typedef uint32_t                    id_t;
    5556typedef unsigned int                model_t;
    5657typedef uint32_t                    zoneid_t;
     
    6768#define SEC                         (1)
    6869#define MAXPATHLEN                  RTPATH_MAX
     70#undef PATH_MAX
    6971#define PATH_MAX                    RTPATH_MAX
    7072#define NBBY                        (8)
     
    119121#define VBDTSTATIC              static
    120122#define VBDTUNASS(a_Value)      = a_Value
     123#define VBDTGCC(a_Value)        = a_Value
    121124
    122125/*
     
    393396 */
    394397extern int dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd);
     398extern int dtrace_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
    395399extern int dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv);
    396400
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_aggregate.c

    r53659 r53664  
    653653
    654654        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])))
    656656                        return (rval);
    657657        }
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_impl.h

    r53659 r53664  
    635635extern int yydebug;             /* lex debugging */
    636636extern dt_node_t *yypragma;     /* lex token list for control lines */
     637#ifdef VBOX
     638extern int yylex(void);
     639#endif
    637640
    638641extern const dtrace_attribute_t _dtrace_maxattr; /* maximum attributes */
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c

    r53663 r53664  
    548548}
    549549
    550 #ifndef /* VBOX - who needs this? */
    551550int
    552551dt_status(dtrace_hdl_t *dtp, processorid_t cpu)
     
    564563        return (v->dtv_status(dtp->dt_varg, cpu));
    565564}
    566 #endif
    567565
    568566#ifndef VBOX
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c

    r53663 r53664  
    1041010410                buf = &bufs[cp->cpu_id];
    1041110411#else
    10412     for (iCpu = 0; iCpu < RTCPUSET_MAX_CPUS; iCpu++) {
     10412        for (iCpu = 0; iCpu < RTCPUSET_MAX_CPUS; iCpu++) {
    1041310413                if (   !RTCpuSetIsMember(&CpuSet, iCpu)
    10414                         || (cpu != (processorid_t)DTRACE_CPUALL && cpu != iCpu))
     10414                    || (cpu != (processorid_t)DTRACE_CPUALL && cpu != iCpu))
    1041510415                        continue;
    1041610416
     
    1265812658{
    1265912659        dtrace_optval_t *opt = state->dts_options, size;
    12660         processorid_t cpu;
     12660        processorid_t cpu VBDTUNASS(DTRACE_CPUALL);
    1266112661        int flags = 0, rval;
    1266212662
     
    1362913629         */
    1363013630        for (;;) {
    13631                 dtrace_helper_provider_t *prov;
     13631                dtrace_helper_provider_t *prov VBDTGCC(NULL);
    1363213632
    1363313633                /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette