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)

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
Files:
2 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
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c

    r53647 r53663  
    1469514695 * DTrace Driver Cookbook Functions
    1469614696 */
     14697#ifndef VBOX
    1469714698/*ARGSUSED*/
    1469814699static int
    1469914700dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
     14701#else
     14702int dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
     14703#endif
    1470014704{
    1470114705        dtrace_provider_id_t id;
     
    1503715041
    1503815042/*ARGSUSED*/
     15043#ifndef VBOX
    1503915044static int
    1504015045dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv)
     15046#else
     15047int dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv)
     15048#endif
    1504115049{
    1504215050        minor_t minor = getminor(dev);
     
    1579315801}
    1579415802
     15803#ifndef VBOX
    1579515804/*ARGSUSED*/
    1579615805static int
    1579715806dtrace_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
     15807#else
     15808int dtrace_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
     15809#endif
    1579815810{
    1579915811        dtrace_state_t *state;
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