Changeset 63207 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace
- Timestamp:
- Aug 9, 2016 2:25:27 PM (8 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_module.c
r62829 r63207 830 830 } 831 831 832 #ifndef VBOX 832 833 /* 833 834 * Update our module cache by adding an entry for the specified module 'name'. … … 837 838 dt_module_update(dtrace_hdl_t *dtp, const char *name) 838 839 { 839 #ifndef VBOX840 840 char fname[MAXPATHLEN]; 841 841 struct stat64 st; … … 929 929 dt_dprintf("opened %d-bit module %s (%s) [%d]\n", 930 930 bits, dmp->dm_name, dmp->dm_file, dmp->dm_modid); 931 #else /* VBOX */ 932 RT_NOREF2(dtp, name); 933 #endif /* VBOX */ 934 } 931 } 932 #endif /* !VBOX */ 935 933 936 934 /* … … 1013 1011 dt_module_t *dmp; 1014 1012 1015 switch (( uintptr_t)object) {1016 case (uintptr_t)DTRACE_OBJ_EXEC:1013 switch ((intptr_t)object) { 1014 case DTRACE_OBJ_INT_EXEC: 1017 1015 dmp = dtp->dt_exec; 1018 1016 break; 1019 case (uintptr_t)DTRACE_OBJ_RTLD:1017 case DTRACE_OBJ_INT_RTLD: 1020 1018 dmp = dtp->dt_rtld; 1021 1019 break; 1022 case (uintptr_t)DTRACE_OBJ_CDEFS:1020 case DTRACE_OBJ_INT_CDEFS: 1023 1021 dmp = dtp->dt_cdefs; 1024 1022 break; 1025 case (uintptr_t)DTRACE_OBJ_DDEFS:1023 case DTRACE_OBJ_INT_DDEFS: 1026 1024 dmp = dtp->dt_ddefs; 1027 1025 break; -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_open.c
r62829 r63207 796 796 } 797 797 798 #ifndef VBOX 798 799 static const char * 799 800 dt_get_sysinfo(int cmd, char *buf, size_t len) 800 801 { 801 #ifndef VBOX802 802 ssize_t rv = sysinfo(cmd, buf, len); 803 803 char *p = buf; … … 808 808 while ((p = strchr(p, '.')) != NULL) 809 809 *p++ = '_'; 810 #else811 RT_NOREF1(cmd);812 snprintf(buf, len, "%s", "Unknown");813 #endif814 810 return (buf); 815 811 } 812 #endif /* !VBOX */ 816 813 817 814 static dtrace_hdl_t * -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c
r62829 r63207 744 744 } 745 745 746 if ( suffix[i].name == NULL && *end != '\0'|| val < 0)746 if ((suffix[i].name == NULL && *end != '\0') || val < 0) 747 747 return (dt_set_errno(dtp, EDT_BADOPTVAL)); 748 748 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_work.c
r62829 r63207 36 36 #else /* VBOX */ 37 37 # include <dt_impl.h> 38 / /# include <stddef.h>39 //# include <time.h> 38 /*# include <stddef.h> 39 # include <time.h> */ 40 40 # include <iprt/semaphore.h> 41 41 #endif /* VBOX */ -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dtrace.h
r62829 r63207 443 443 */ 444 444 445 #define DTRACE_OBJ_EXEC ((const char *)(intptr_t)0L) /* primary executable file */ 446 #define DTRACE_OBJ_RTLD ((const char *)(intptr_t)1L) /* run-time link-editor */ 447 #define DTRACE_OBJ_CDEFS ((const char *)(intptr_t)2L) /* C include definitions */ 448 #define DTRACE_OBJ_DDEFS ((const char *)(intptr_t)3L) /* D program definitions */ 449 #define DTRACE_OBJ_EVERY ((const char *)(intptr_t)-1L) /* all known objects */ 450 #define DTRACE_OBJ_KMODS ((const char *)(intptr_t)-2L) /* all kernel objects */ 451 #define DTRACE_OBJ_UMODS ((const char *)(intptr_t)-3L) /* all user objects */ 445 #define DTRACE_OBJ_INT_EXEC (0L) /* primary executable file */ 446 #define DTRACE_OBJ_INT_RTLD (1L) /* run-time link-editor */ 447 #define DTRACE_OBJ_INT_CDEFS (2L) /* C include definitions */ 448 #define DTRACE_OBJ_INT_DDEFS (3L) /* D program definitions */ 449 #define DTRACE_OBJ_INT_EVERY (-1L) /* all known objects */ 450 #define DTRACE_OBJ_INT_KMODS (-2L) /* all kernel objects */ 451 #define DTRACE_OBJ_INT_UMODS (-3L) /* all user objects */ 452 453 #define DTRACE_OBJ_EXEC ((const char *)(intptr_t)DTRACE_OBJ_INT_EXEC ) /* primary executable file */ 454 #define DTRACE_OBJ_RTLD ((const char *)(intptr_t)DTRACE_OBJ_INT_RTLD ) /* run-time link-editor */ 455 #define DTRACE_OBJ_CDEFS ((const char *)(intptr_t)DTRACE_OBJ_INT_CDEFS) /* C include definitions */ 456 #define DTRACE_OBJ_DDEFS ((const char *)(intptr_t)DTRACE_OBJ_INT_DDEFS) /* D program definitions */ 457 #define DTRACE_OBJ_EVERY ((const char *)(intptr_t)DTRACE_OBJ_INT_EVERY) /* all known objects */ 458 #define DTRACE_OBJ_KMODS ((const char *)(intptr_t)DTRACE_OBJ_INT_KMODS) /* all kernel objects */ 459 #define DTRACE_OBJ_UMODS ((const char *)(intptr_t)DTRACE_OBJ_INT_UMODS) /* all user objects */ 452 460 453 461 typedef struct dtrace_objinfo {
Note:
See TracChangeset
for help on using the changeset viewer.