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.h

    r53634 r53652  
    2828#define _DT_PROC_H
    2929
     30#ifndef VBOX
    3031#pragma ident   "%Z%%M% %I%     %E% SMI"
    3132
     
    3435#include <pthread.h>
    3536#include <dt_list.h>
     37#else  /* VBOX */
     38# include <dtrace.h>
     39# include <dt_list.h>
     40# include <iprt/critsect.h>
     41#endif /* VBOX */
     42
    3643
    3744#ifdef  __cplusplus
     
    4552        struct ps_prochandle *dpr_proc; /* proc handle for libproc calls */
    4653        char dpr_errmsg[BUFSIZ];        /* error message */
     54#ifndef VBOX
    4755        rd_agent_t *dpr_rtld;           /* rtld handle for librtld_db calls */
    4856        pthread_mutex_t dpr_lock;       /* lock for manipulating dpr_hdl */
    4957        pthread_cond_t dpr_cv;          /* cond for dpr_stop/quit/done */
     58#else
     59        RTCRITSECT dpr_lock;
     60        RTSEMEVENT dpr_cv;
     61#endif
    5062        pid_t dpr_pid;                  /* pid of process */
    5163        uint_t dpr_refs;                /* reference count */
     
    5769        uint8_t dpr_stale;              /* proc flag: been deprecated */
    5870        uint8_t dpr_rdonly;             /* proc flag: opened read-only */
     71#ifndef VBOX
    5972        pthread_t dpr_tid;              /* control thread (or zero if none) */
     73#else
     74        RTTHREAD dpr_tid;
     75#endif
    6076        dt_list_t dpr_bps;              /* list of dt_bkpt_t structures */
    6177} dt_proc_t;
     
    87103
    88104typedef struct dt_proc_hash {
     105#ifndef VBOX
    89106        pthread_mutex_t dph_lock;       /* lock protecting dph_notify list */
    90107        pthread_cond_t dph_cv;          /* cond for waiting for dph_notify */
     108#else
     109        RTSEMEVENT dph_event;
     110#endif
    91111        dt_proc_notify_t *dph_notify;   /* list of pending proc notifications */
    92112        dt_list_t dph_lrulist;          /* list of dt_proc_t's in lru order */
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