VirtualBox

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

VBoxDTrace: porting libdtrace... (r22)

File:
1 edited

Legend:

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

    r53634 r53652  
    7777 */
    7878
     79#ifndef VBOX
    7980#include <sys/wait.h>
    8081#include <sys/lwp.h>
     
    8384#include <assert.h>
    8485#include <errno.h>
     86#endif
    8587
    8688#include <dt_proc.h>
    8789#include <dt_pid.h>
    8890#include <dt_impl.h>
     91
     92#ifndef VBOX
    8993
    9094#define IS_SYS_EXEC(w)  (w == SYS_execve)
     
    10331037        assert(err == 0); /* check for unheld lock */
    10341038}
     1039#endif /* !VBOX */
    10351040
    10361041void
     
    10401045            sizeof (dt_proc_t *) * _dtrace_pidbuckets - 1)) != NULL) {
    10411046
     1047#ifndef VBOX /** @todo This needs more work... */
    10421048                (void) pthread_mutex_init(&dtp->dt_procs->dph_lock, NULL);
    10431049                (void) pthread_cond_init(&dtp->dt_procs->dph_cv, NULL);
     1050#else
     1051
     1052#endif
    10441053
    10451054                dtp->dt_procs->dph_hashlen = _dtrace_pidbuckets;
     
    10521061{
    10531062        dt_proc_hash_t *dph = dtp->dt_procs;
     1063#ifndef VBOX
    10541064        dt_proc_t *dpr;
    10551065
    10561066        while ((dpr = dt_list_next(&dph->dph_lrulist)) != NULL)
    10571067                dt_proc_destroy(dtp, dpr->dpr_proc);
     1068#endif
    10581069
    10591070        dtp->dt_procs = NULL;
     
    10611072}
    10621073
     1074#ifndef VBOX
     1075
    10631076struct ps_prochandle *
    10641077dtrace_proc_create(dtrace_hdl_t *dtp, const char *file, char *const *argv)
     
    10961109        dt_proc_continue(dtp, P);
    10971110}
     1111#endif /* !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