儲存庫 vbox 的更動 63207
- 時間撮記:
- 2016-8-9 下午02:25:27 (8 年 以前)
- 位置:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- 檔案:
-
- 修改 6 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/dtrace.c
r63129 r63207 356 356 } 357 357 358 #ifndef VBOX 358 359 static char ** 359 360 make_argv(char *s) … … 376 377 return (argv); 377 378 } 379 #endif /* !VBOX */ 378 380 379 381 static void … … 1254 1256 /* Reinstall signal handler. Seems MSVCRT is System V style. */ 1255 1257 signal(signo, intr); 1258 #else 1259 RT_NOREF(signo); 1256 1260 #endif 1257 1261 } … … 1715 1719 * may been affected by any library options set by the second pass. 1716 1720 */ 1717 # ifndef VBOX1721 # ifndef VBOX 1718 1722 for (optind = 1; optind < argc; optind++) { 1719 1723 while ((c = getopt(argc, argv, DTRACE_OPTSTR)) != EOF) { 1720 # else1724 # else 1721 1725 RTGetOptInit(&GetState, argc, argv, g_aOptions, RT_ELEMENTS(g_aOptions), 1, 0); 1722 1726 while ((c = RTGetOpt(&GetState, &ValueUnion))) { 1723 1727 { 1724 1728 char *optarg = (char *)ValueUnion.psz; 1725 # endif1729 # endif 1726 1730 switch (c) { 1727 1731 case 'c': -
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 {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器