VirtualBox

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/onnv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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