VirtualBox

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

VBoxDTrace: working on the interfaces between the two modules... (r40)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c

    r53662 r53663  
    4747#  include <unistd.h>
    4848# endif
     49# include <VBox/sup.h>
    4950#endif /* VBOX */
    5051
     
    483484{
    484485        const dtrace_vector_t *v = dtp->dt_vector;
     486#ifdef VBOX
     487        int rc;
     488#endif
    485489
    486490        if (v != NULL)
     
    491495                return (ioctl(dtp->dt_fd, val, arg));
    492496#else
     497# if 1
     498        rc = SUPR3CallR0Service(RT_STR_TUPLE("VBoxDTrace"), val, (uintptr_t)arg, NULL);
     499        if (RT_SUCCESS(rc)) {
     500
     501        }
     502# else
    493503        /* Fake ioctl */
    494504        switch (val) {
     
    531541
    532542        }
    533         AssertFailed(); /** @todo FIXME */
     543# endif
    534544#endif
    535545
     
    538548}
    539549
     550#ifndef /* VBOX - who needs this? */
    540551int
    541552dt_status(dtrace_hdl_t *dtp, processorid_t cpu)
     
    553564        return (v->dtv_status(dtp->dt_varg, cpu));
    554565}
     566#endif
    555567
    556568#ifndef VBOX
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