VirtualBox

Changeset 40595 in vbox


Ignore:
Timestamp:
Mar 23, 2012 2:54:46 PM (13 years ago)
Author:
vboxsync
Message:

Trying VBoxTpG in disabled mode. Updates kBuild from 2567 to 2570.

Location:
trunk
Files:
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Config.kmk

    r40564 r40595  
    14301430endif
    14311431
    1432 ifdef VBOX_WITH_DTRACE_R3
    1433  USES += dtrace
    1434 endif
     1432USES += dtrace
    14351433
    14361434#
     
    16791677ifeq ($(KBUILD_HOST),win)
    16801678# VBOX_XSLTPROC ?= $(PATH_DEVTOOLS)/win.x86/libxslt/10114/xsltproc.exe
    1681  VBOX_XSLTPROC ?= $(PATH_DEVTOOLS)/win.x86/bin/xsltproc.exe
     1679 VBOX_XSLTPROC  ?= $(PATH_DEVTOOLS)/win.x86/bin/xsltproc.exe
    16821680else ifeq ($(KBUILD_HOST),os2)
    1683  VBOX_XSLTPROC ?= BEGINLIBPATH="$(PATH_DEVTOOLS_BLD)/bin;$$BEGINLIBPATH" $(PATH_DEVTOOLS_BLD)/bin/xsltproc.exe
    1684 else
    1685  VBOX_XSLTPROC ?= xsltproc$(HOSTSUFF_EXE)
     1681 VBOX_XSLTPROC  ?= BEGINLIBPATH="$(PATH_DEVTOOLS_BLD)/bin;$$BEGINLIBPATH" $(PATH_DEVTOOLS_BLD)/bin/xsltproc.exe
     1682else
     1683 VBOX_XSLTPROC  ?= xsltproc$(HOSTSUFF_EXE)
    16861684endif
    16871685
    16881686# bin2c (convert binary files into C arrays)
    1689 VBOX_BIN2C     ?= $(PATH_OBJ)/bin2c/bin2c$(HOSTSUFF_EXE)
     1687VBOX_BIN2C      ?= $(PATH_OBJ)/bin2c/bin2c$(HOSTSUFF_EXE)
    16901688
    16911689# biossums (set BIOS checksums)
    1692 VBOX_BIOSSUMS  ?= $(PATH_OBJ)/biossums/biossums$(HOSTSUFF_EXE)
     1690VBOX_BIOSSUMS   ?= $(PATH_OBJ)/biossums/biossums$(HOSTSUFF_EXE)
    16931691
    16941692# RTManifest (extension pack manifest utility)
    16951693VBOX_RTMANIFEST ?= $(PATH_OBJ)/bldRTManifest/bldRTManifest$(HOSTSUFF_EXE)
    16961694
     1695# VBoxTpG (tracepoint generator)
     1696VBOX_VBOXTPG    ?= $(PATH_OBJ)/VBoxTpG/VBoxTpG$(HOSTSUFF_EXE)
     1697
    16971698# filesplitter (splits java files)
    1698 VBOX_FILESPLIT ?= $(PATH_OBJ)/filesplitter/filesplitter$(HOSTSUFF_EXE)
     1699VBOX_FILESPLIT  ?= $(PATH_OBJ)/filesplitter/filesplitter$(HOSTSUFF_EXE)
    16991700
    17001701# GNU tar if present.
     
    21692170ifeq ($(KBUILD_TARGET),solaris)
    21702171        $(APPEND) '$@' 'VBOX_GCC_msave-args            ?= $(call VBOX_GCC_CHECK_CXX,-msave-args,)'
    2171 # Detect the solaris assembler. It is used by the the 4.x gcc compilers, 
    2172 # apparently. It will not be able to handle IEMAll via a -pipe, only when 
     2172# Detect the solaris assembler. It is used by the the 4.x gcc compilers,
     2173# apparently. It will not be able to handle IEMAll via a -pipe, only when
    21732174# passed a file. The solaris assmbler rulez ... not!
    21742175        $(APPEND) '$@' 'VBOX_AS_VERSION                ?= $(shell `gcc -print-prog-name=as` -V -o /dev/null < /dev/null 2>&1 | kmk_sed -e '1!d' -e 's/^as: *//' )'
     
    21762177        $(APPEND) '$@' ' VBOX_GCC_USING_SOLARIS_AS=1'
    21772178        $(APPEND) '$@' 'endif'
    2178         $(APPEND) '$@' 'ifndef VBOX_GCC_USING_SOLARIS_AS' 
     2179        $(APPEND) '$@' 'ifndef VBOX_GCC_USING_SOLARIS_AS'
    21792180        $(APPEND) '$@' ' VBOX_GCC_pipe                 ?= -pipe'
    21802181        $(APPEND) '$@' 'endif'
     
    26232624 endif
    26242625endif
     2626
     2627#
     2628# VBoxTpG tool.
     2629#
     2630TOOL_VBoxTpG = The VirtualBox Tracepoint Generator
     2631TOOL_VBoxTpG_DTRACE_DEPEND         = $(VBOX_VBOXTPG)
     2632TOOL_VBoxTpG_DTRACE_HDR_FLAGS      := -h #-vvv
     2633define TOOL_VBoxTpG_DTRACE_HDR_CMDS
     2634        $(QUIET)$(VBOX_VBOXTPG) $(flags) -o "$(out)" -s "$(source)"
     2635endef
     2636TOOL_VBoxTpG_DTRACE_OBJ_NOT_NEEDED :=
     2637TOOL_VBoxTpG_DTRACE_OBJ_FLAGS      := -G #-vvv
     2638define TOOL_VBoxTpG_DTRACE_OBJ_CMDS
     2639        $(QUIET)$(VBOX_VBOXTPG) \
     2640                $(if-expr $(intersects $(bld_trg_arch),$(KBUILD_ARCHES_64)),-64,-32) \
     2641                $(flags) \
     2642                -o "$(out)" -s "$(source)"
     2643endef
     2644
     2645#
     2646# VBoxTpG tool - Disabled, only generate the header.
     2647#
     2648TOOL_VBoxTpG-Disabled = The VirtualBox Tracepoint Generator, disabled.
     2649TOOL_VBoxTpG-Disabled_DTRACE_DEPEND     = $(VBOX_VBOXTPG)
     2650TOOL_VBoxTpG-Disabled_DTRACE_HDR_FLAGS := -h
     2651define TOOL_VBoxTpG-Disabled_DTRACE_HDR_CMDS
     2652        $(QUIET)$(VBOX_VBOXTPG) $(flags) -o "$(out)" -s "$(source)"
     2653endef
     2654TOOL_VBoxTpG-Disabled_DTRACE_OBJ_NOT_NEEDED := $(KBUILD_OSES)
     2655
    26252656
    26262657ifdef VBOX_WITH_RAW_MODE
     
    27762807TEMPLATE_VBoxR0_SYSSUFF             = .r0
    27772808TEMPLATE_VBoxR0_MODE                = a+r,u+w
     2809
     2810TEMPLATE_VBoxR0_USES               += dtrace
     2811ifdef VBOX_WITH_DTRACE_R0
     2812 TEMPLATE_VBoxR0_DTRACETOOL         = VBoxTpG
     2813 TEMPLATE_VBoxR0_DEFS              += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R0
     2814else
     2815 TEMPLATE_VBoxR0_DTRACETOOL         = VBoxTpG-Disabled
     2816endif
    27782817
    27792818ifeq ($(VBOX_LDR_FMT),pe)
  • trunk/src/VBox/VMM/Makefile.kmk

    r40519 r40595  
    237237 VBoxVMM_USES        += dtrace
    238238 VBoxVMM_DEFS        += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R3
    239  VBoxVMM_SOURCES     += VMMR3/VBoxVMM.d
     239 VBoxVMM_SOURCES     += VBoxVMM.d
    240240endif
    241241
     
    467467 VMMR0_SOURCES   = \
    468468        VMMR0/CPUMR0.cpp \
     469        VBoxVMM.d \
    469470        VMMR0/CPUMR0A.asm \
    470471        VMMR0/GMMR0.cpp \
  • trunk/src/VBox/VMM/VBoxVMM.d

    r40590 r40595  
    2727    probe em__ff__raw(void *a_pVCpu, unsigned int a_fGlobal, unsigned int a_fLocal);
    2828    probe em__ff__raw_ret(void *a_pVCpu, int a_rc);
     29    probe r0__gvmm__vm__created(void *a_pGVM, void *a_pVM, unsigned int a_Pid, void *a_hEMT0, unsigned int a_cCpus);
    2930};
    3031
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r39402 r40595  
    6060#include <VBox/param.h>
    6161#include <VBox/err.h>
     62
    6263#include <iprt/asm.h>
    6364#include <iprt/asm-amd64-x86.h>
     
    7778#include <iprt/spinlock.h>
    7879#include <iprt/timer.h>
     80
     81#include "dtrace/VBoxVMM.h"
    7982
    8083
     
    751754    RTNATIVETHREAD hEMT0 = RTThreadNativeSelf();
    752755    AssertReturn(hEMT0 != NIL_RTNATIVETHREAD, VERR_GVMM_BROKEN_IPRT);
    753     RTNATIVETHREAD ProcId = RTProcSelf();
     756    RTPROCESS      ProcId = RTProcSelf();
    754757    AssertReturn(ProcId != NIL_RTPROCESS, VERR_GVMM_BROKEN_IPRT);
    755758
     
    888891                                        pVM->aCpus[0].hNativeThreadR0 = hEMT0;
    889892                                        pGVMM->cEMTs += cCpus;
     893
     894                                        VBOXVMM_R0_GVMM_VM_CREATED(pGVM, pVM, ProcId, (void *)hEMT0, cCpus);
    890895
    891896                                        gvmmR0UsedUnlock(pGVMM);
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