Changeset 53652 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_proc.c
- Timestamp:
- Jan 2, 2015 12:19:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_proc.c
r53634 r53652 77 77 */ 78 78 79 #ifndef VBOX 79 80 #include <sys/wait.h> 80 81 #include <sys/lwp.h> … … 83 84 #include <assert.h> 84 85 #include <errno.h> 86 #endif 85 87 86 88 #include <dt_proc.h> 87 89 #include <dt_pid.h> 88 90 #include <dt_impl.h> 91 92 #ifndef VBOX 89 93 90 94 #define IS_SYS_EXEC(w) (w == SYS_execve) … … 1033 1037 assert(err == 0); /* check for unheld lock */ 1034 1038 } 1039 #endif /* !VBOX */ 1035 1040 1036 1041 void … … 1040 1045 sizeof (dt_proc_t *) * _dtrace_pidbuckets - 1)) != NULL) { 1041 1046 1047 #ifndef VBOX /** @todo This needs more work... */ 1042 1048 (void) pthread_mutex_init(&dtp->dt_procs->dph_lock, NULL); 1043 1049 (void) pthread_cond_init(&dtp->dt_procs->dph_cv, NULL); 1050 #else 1051 1052 #endif 1044 1053 1045 1054 dtp->dt_procs->dph_hashlen = _dtrace_pidbuckets; … … 1052 1061 { 1053 1062 dt_proc_hash_t *dph = dtp->dt_procs; 1063 #ifndef VBOX 1054 1064 dt_proc_t *dpr; 1055 1065 1056 1066 while ((dpr = dt_list_next(&dph->dph_lrulist)) != NULL) 1057 1067 dt_proc_destroy(dtp, dpr->dpr_proc); 1068 #endif 1058 1069 1059 1070 dtp->dt_procs = NULL; … … 1061 1072 } 1062 1073 1074 #ifndef VBOX 1075 1063 1076 struct ps_prochandle * 1064 1077 dtrace_proc_create(dtrace_hdl_t *dtp, const char *file, char *const *argv) … … 1096 1109 dt_proc_continue(dtp, P); 1097 1110 } 1111 #endif /* !VBOX */
Note:
See TracChangeset
for help on using the changeset viewer.