Changeset 53974 in vbox
- Timestamp:
- Jan 27, 2015 5:50:17 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97876
- Location:
- trunk
- Files:
-
- 2 added
- 1 deleted
- 4 edited
- 2 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r53952 r53974 8 8 9 9 # 10 # Copyright (C) 2006-201 4Oracle Corporation10 # Copyright (C) 2006-2015 Oracle Corporation 11 11 # 12 12 # This file is part of VirtualBox Open Source Edition (OSE), as … … 61 61 PROPS_MISCBINS_ACCUMULATE_L += INTERMEDIATES 62 62 63 # Misc names used by ethe install paths below.63 # Misc names used by the install paths below. 64 64 VBOX_PUEL_MANGLED_NAME := Oracle_VM_VirtualBox_Extension_Pack 65 VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME := Oracle_VBoxDTrace_Extension_Pack 65 66 66 67 # Install paths … … 145 146 INST_EXTPACK_CERTS = $(INST_BIN)ExtPackCertificates/ 146 147 INST_EXTPACK_PUEL = $(INST_EXTPACK)$(VBOX_PUEL_MANGLED_NAME)/ 148 INST_EXTPACK_VBOXDTRACE = $(INST_EXTPACK)$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)/ 147 149 INST_PACKAGES = packages/ 148 150 … … 694 696 # Enable the VNC server extension pack (GPL only). 695 697 #VBOX_WITH_EXTPACK_VNC = 1 698 # Enables the VBoxDTrace extension pack. 699 VBOX_WITH_EXTPACK_VBOXDTRACE = 1 696 700 ## @} 697 701 … … 4880 4884 TEMPLATE_VBoxInsExtPackPuel_EXTENDS = VBoxR0ExtPack 4881 4885 TEMPLATE_VBoxInsExtPackPuel_INST = $(INST_EXTPACK_PUEL) 4882 endif 4886 endif 4887 4888 # For each individual extension pack 4889 ifdef VBOX_WITH_EXTPACK_VBOXDTRACE 4890 TEMPLATE_VBoxR3ExtPackDTrace = For the ring-3 context modules in the VBoxDTrace extension pack. 4891 TEMPLATE_VBoxR3ExtPackDTrace_EXTENDS = VBoxR3ExtPack 4892 TEMPLATE_VBoxR3ExtPackDTrace_INST = $(INST_EXTPACK_VBOXDTRACE)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/ 4893 4894 TEMPLATE_VBoxR0ExtPackDTrace = For the ring-0 context modules in the VBoxDTrace extension pack. 4895 TEMPLATE_VBoxR0ExtPackDTrace_EXTENDS = VBoxR0ExtPack 4896 TEMPLATE_VBoxR0ExtPackDTrace_INST = $(INST_EXTPACK_VBOXDTRACE)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/ 4897 4898 TEMPLATE_VBoxInsExtPackDTrace = For the install targets for the VBoxDTrace extension pack. 4899 TEMPLATE_VBoxInsExtPackDTrace_EXTENDS = VBoxR0ExtPack 4900 TEMPLATE_VBoxInsExtPackDTrace_INST = $(INST_EXTPACK_VBOXDTRACE) 4901 endif 4902 4883 4903 endif # VBOX_WITH_EXTPACK 4884 4904 -
trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk
r53972 r53974 1 1 # $Id$ 2 2 ## @file 3 # Sub-makefile for VBoxDTrace R0.3 # Sub-makefile for VBoxDTrace. 4 4 # 5 5 # Contributed by: bird … … 18 18 # 19 19 20 SUB_DEPTH = ../../../../ ../20 SUB_DEPTH = ../../../../ 21 21 include $(KBUILD_PATH)/subheader.kmk 22 22 23 24 # 25 # The generic wrapper that selects native or extpack dtrace cmd and adds our 26 # library path to the command line. 27 # 28 # Note! This is not installed as part of the extension pack, but always shipped 29 # with the base VBox installation. 30 # 23 31 PROGRAMS += VBoxDTrace 24 VBoxDTrace_TEMPLATE = VBOXR3NPEXE 25 VBoxDTrace_DEFS = RTMEM_WRAP_TO_EF_APIS 26 #VBoxDTrace_DEFS += YYDEBUG 27 VBoxDTrace_SDKS = VBOX_ZLIB 32 VBoxDTrace_TEMPLATE := VBOXR3EXE 33 VBoxDTrace_SOURCES := VBoxDTraceWrapper.cpp 34 VBoxDTrace_LIBS = $(LIB_RUNTIME) 35 36 37 # 38 # Install the description. 39 # 40 INSTALLS += VBoxDTraceIns 41 VBoxDTraceIns_TEMPLATE = VBoxInsExtPackDTrace 42 VBoxDTraceIns_SOURCES = \ 43 $(VBoxDTraceIns_0_OUTDIR)/ExtPack.xml \ 44 COPYING=>ExtPack-SourceCodeLicense.txt 45 $(call VBOX_EDIT_VERSION_RULE_FN,VBoxDTraceIns,ExtPack.xml) 46 47 48 # 49 # The ring-3 VBoxDTrace command implementation (library). 50 # 51 DLLS += VBoxDTraceCmd 52 VBoxDTraceCmd_TEMPLATE = VBoxR3ExtPackDTrace 53 VBoxDTraceCmd_DEFS = RTMEM_WRAP_TO_EF_APIS 54 #VBoxDTraceCmd_DEFS += YYDEBUG 55 VBoxDTraceCmd_SDKS = VBOX_ZLIB 28 56 ifn1of ($(KBUILD_TARGET), win) 29 VBoxDTrace _CFLAGS = -Wno-format57 VBoxDTraceCmd_CFLAGS = -Wno-format -Wno-overlength-strings -Wno-sign-compare -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow 30 58 endif 31 VBoxDTrace _INCS = \32 ../include \59 VBoxDTraceCmd_INCS = \ 60 include \ 33 61 $(VBOXDT_PATH_UTS)/common \ 34 62 $(VBOXDT_PATH_LIBCTF)/common \ 35 63 $(VBOXDT_PATH_LIBDTRACE)/common \ 36 64 $(VBOXDT_PATH_CMN_CTF) 37 VBoxDTrace _SOURCES = \65 VBoxDTraceCmd_SOURCES = \ 38 66 $(VBOXDT_PATH_CMD)/dtrace/dtrace.c \ 39 67 \ … … 70 98 $(VBOXDT_PATH_LIBDTRACE)/common/dt_xlator.c \ 71 99 \ 72 $(VBoxDTrace _0_OUTDIR)/dt_errtags.c \73 $(VBoxDTrace _0_OUTDIR)/dt_names.c \100 $(VBoxDTraceCmd_0_OUTDIR)/dt_errtags.c \ 101 $(VBoxDTraceCmd_0_OUTDIR)/dt_names.c \ 74 102 \ 75 103 $(VBOXDT_PATH_CMN_CTF)/ctf_create.c \ … … 87 115 88 116 if 1 89 USES += yacc90 VBoxDTrace _USES += yacc91 VBoxDTrace _YACCTOOL = BISON92 VBoxDTrace _YACCFLAGS = -d -y93 VBoxDTrace _SOURCES += \117 USES += yacc 118 VBoxDTraceCmd_USES += yacc 119 VBoxDTraceCmd_YACCTOOL = BISON 120 VBoxDTraceCmd_YACCFLAGS = -d -y 121 VBoxDTraceCmd_SOURCES += \ 94 122 $(VBOXDT_PATH_LIBDTRACE)/common/dt_grammar.y 95 VBoxDTrace _INCS += $(VBoxDTrace_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common123 VBoxDTraceCmd_INCS += $(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common 96 124 else 97 125 # TODO: generate these. … … 99 127 100 128 if 1 101 USES += lex102 VBoxDTrace _USES += lex103 VBoxDTrace _LEXTOOL = FLEX104 VBoxDTrace _LEXFLAGS = -l -B #-d -T105 VBoxDTrace _DEFS += USING_FLEX106 VBoxDTrace _SOURCES += \129 USES += lex 130 VBoxDTraceCmd_USES += lex 131 VBoxDTraceCmd_LEXTOOL = FLEX 132 VBoxDTraceCmd_LEXFLAGS = -l -B #-d -T 133 VBoxDTraceCmd_DEFS += USING_FLEX 134 VBoxDTraceCmd_SOURCES += \ 107 135 $(VBOXDT_PATH_LIBDTRACE)/common/dt_lex.l 108 136 else … … 110 138 endif 111 139 112 VBoxDTrace _LIBS = \140 VBoxDTraceCmd_LIBS = \ 113 141 $(LIB_RUNTIME) 114 142 115 143 116 144 # Generate sources 117 $$(VBoxDTrace _0_OUTDIR)/dt_errtags.c: \145 $$(VBoxDTraceCmd_0_OUTDIR)/dt_errtags.c: \ 118 146 $(VBOXDT_PATH_LIBDTRACE)/common/dt_errtags.h \ 119 147 $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed \ 120 148 | $$(dir $$@) 121 $(MSG_GENERATE,VBoxDTrace ,$@,$<)149 $(MSG_GENERATE,VBoxDTraceCmd,$@,$<) 122 150 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed --output $@ $< 123 151 124 $$(VBoxDTrace _0_OUTDIR)/dt_names.c: \152 $$(VBoxDTraceCmd_0_OUTDIR)/dt_names.c: \ 125 153 $(VBOXDT_PATH_UTS)/common/sys/dtrace.h \ 126 154 $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed \ 127 155 | $$(dir $$@) 128 $(MSG_GENERATE,VBoxDTrace ,$@,$<)156 $(MSG_GENERATE,VBoxDTraceCmd,$@,$<) 129 157 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed --output $@ $< 130 158 131 159 132 160 # 133 # Sour nce not used or wanted: \161 # Source not used or wanted: \ 134 162 # $(VBOXDT_PATH_LIBDTRACE)/common/dt_link.c 135 163 # $(VBOXDT_PATH_LIBDTRACE)/common/dt_pid.c 136 164 # 137 165 166 167 # 168 # The ring-0 part of VBoxDTrace. 169 # 170 SYSMODS += VBoxDTraceR0 171 VBoxDTraceR0_TEMPLATE = VBoxR0ExtPackDTrace 172 VBoxDTraceR0_DEFS = IN_VBOXDTRACE_R0 IN_RT_R0 173 ifeq ($(VBOX_LDR_FMT),elf) 174 VBoxDTraceR0_LDFLAGS = -e ModuleInit 175 endif 176 VBoxDTraceR0_INCS = \ 177 include \ 178 $(VBOXDT_PATH_UTS)/common 179 VBoxDTraceR0_SOURCES = \ 180 VBoxDTraceR0.cpp \ 181 VBoxDTraceR0A.asm \ 182 $(VBOXDT_PATH_UTS)/common/dtrace/dtrace.c 183 VBoxDTraceR0_LIBS = \ 184 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 185 ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),) 186 VBoxDTraceR0_LIBS += \ 187 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) 188 endif 189 190 138 191 include $(FILE_KBUILD_SUB_FOOTER) 139 192 -
trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceLibCWrappers.h
r53716 r53974 29 29 #else 30 30 # include <sys/types.h> 31 # include <limits.h> /* Workaround for syslimit.h bug in gcc 4.8.3 on gentoo. */ 31 32 # include <syslimits.h> /* PATH_MAX */ 32 33 # include <libgen.h> /* basename */ -
trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h
r53716 r53974 24 24 #include <iprt/types.h> 25 25 #include <iprt/stdarg.h> 26 #include <iprt/assert.h> 26 27 #include <iprt/param.h> 27 28 #include <iprt/errno.h> … … 32 33 # include <sys/types.h> 33 34 # include <limits.h> 35 # ifdef RT_OS_LINUX 36 # include <sys/ucontext.h> /* avoid greg_t trouble */ 37 # endif 34 38 # if defined(_MSC_VER) 35 39 # include <stdio.h> … … 48 52 typedef uint64_t u_longlong_t; 49 53 typedef uint64_t hrtime_t; 54 #if !defined(NGREG) || !defined(RT_OS_LINUX) 50 55 typedef RTCCINTREG greg_t; 56 #else 57 AssertCompileSize(greg_t, sizeof(RTCCINTREG)); 58 #endif 51 59 typedef uintptr_t pc_t; 52 60 typedef uint32_t id_t; -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/dtrace.c
r53716 r53974 1236 1236 } 1237 1237 1238 #ifdef VBOX 1239 DECLEXPORT(int) RTCALL VBoxDTraceMain(int argc, char **argv) 1240 #else 1238 1241 int 1239 1242 main(int argc, char *argv[]) 1243 #endif 1240 1244 { 1241 1245 dtrace_bufdesc_t buf; … … 1253 1257 struct ps_prochandle *P; 1254 1258 pid_t pid; 1259 1260 g_pname = basename(argv[0]); 1255 1261 #else 1256 1262 int c; … … 1259 1265 RTGETOPTSTATE GetState; 1260 1266 1261 err = RTR3Init Exe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);1267 err = RTR3InitDll(0); 1262 1268 if (RT_FAILURE(err)) 1263 1269 return RTMsgInitFailure(err); … … 1265 1271 1266 1272 g_ofp = stdout; 1267 #endif 1268 g_pname = basename(argv[0]); 1273 g_pname = RTProcShortName(); 1274 #endif 1269 1275 1270 1276 if (argc == 1)
Note:
See TracChangeset
for help on using the changeset viewer.