VirtualBox

Changeset 41247 in vbox for trunk/src


Ignore:
Timestamp:
May 10, 2012 8:07:11 PM (13 years ago)
Author:
vboxsync
Message:

More dtrace library stuff. On 64-bit solaris dtrace can now grok the library files (point it to them using the -L parameter).

Location:
trunk/src/VBox/VMM
Files:
2 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r41221 r41247  
    562562
    563563
    564 ifndef VBOX_ONLY_EXTPACKS
    565  if  defined(VBOX_WITH_DTRACE_R3) \
    566   || defined(VBOX_WITH_DTRACE_R0) \
    567   || defined(VBOX_WITH_DTRACE_RC)
     564if !defined(VBOX_ONLY_EXTPACKS) \
     565 && (   defined(VBOX_WITH_DTRACE_R3) \
     566     || defined(VBOX_WITH_DTRACE_R0) \
     567     || defined(VBOX_WITH_DTRACE_RC))
    568568 #
    569569 # Install the dtrace library files.
    570570 #
    571571 INSTALLS += VMMLibDTrace
    572  VMMLibDTrace_INST    = $(VBOX_INST_DTRACE_LIB)
     572 VMMLibDTrace_INST    = $(VBOX_INST_DTRACE_LIB)$(KBUILD_TARGET_ARCH)/
    573573 VMMLibDTrace_SOURCES = \
    574         dtrace/lib/types.d \
    575         dtrace/lib/$(KBUILD_TARGET_ARCH)/types.d=>$(KBUILD_TARGET_ARCH)/types.d \
    576         $(VMMLibDTrace_0_OUTDIR)/vm.d=>$(KBUILD_TARGET_ARCH)/vm.d \
    577         $(VMMLibDTrace_0_OUTDIR)/cpumctx.d=>$(KBUILD_TARGET_ARCH)/cpumctx.d \
     574        dtrace/lib/vbox-types.d \
     575        dtrace/lib/$(KBUILD_TARGET_ARCH)/vbox-arch-types.d \
     576        $(VMMLibDTrace_0_OUTDIR)/vm.d \
     577        $(VMMLibDTrace_0_OUTDIR)/cpumctx.d \
     578        $(VMMLibDTrace_0_OUTDIR)/x86.d \
    578579
    579580
     
    589590                -D RT_C_DECLS_BEGIN= \
    590591                -D RT_C_DECLS_END= \
     592                -D 'RCPTRTYPE(a_Type)=RTRCPTR' \
     593                -D 'R3PTRTYPE(a_Type)=RTR3PTR' \
     594                -D 'R0PTRTYPE(a_Type)=a_Type' \
     595                -D 'AssertCompile(a_Expr)=' \
     596                -D 'AssertCompileSize(a_Stuct, a_Size)=' \
    591597                $$(addprefix -D ,$$(DEFS) $$(DEFS.$$(KBUILD_TARGET)) $$(DEFS.$(KBUILD_TARGET_ARCH))) $$< $$@
    592598 endef
    593599 $(evalcall2 def_vmm_lib_dtrace_preprocess,vm.d,$(PATH_ROOT)/include/VBox/vmm/vm.h)
    594600 $(evalcall2 def_vmm_lib_dtrace_preprocess,cpumctx.d,$(PATH_ROOT)/include/VBox/vmm/cpumctx.h)
    595 
    596  endif
     601 $(evalcall2 def_vmm_lib_dtrace_preprocess,x86.d,$(PATH_ROOT)/include/iprt/x86.h)
     602
    597603endif
    598604
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r40377 r41247  
    21172117            if (enmOldState != enmNewState)
    21182118            {
    2119                 VBOXVMM_EM_STATE_CHANGED(pVCpu, enmOldState, enmNewState, rc);
     2119                VBOXVMM_EM_STATE_CHANGED((PVMCPU)VM_R0_ADDR(pVM, pVCpu), enmOldState, enmNewState, rc);
    21202120
    21212121                /* Clear MWait flags. */
  • trunk/src/VBox/VMM/dtrace/lib/amd64/vbox-arch-types.d

    r41225 r41247  
    3030typedef uint64_t    RTHCPTR;
    3131
     32
     33
     34typedef union RTFLOAT80U
     35{
     36    uint16_t    au16[5];
     37} RTFLOAT80U;
     38
     39typedef union RTFLOAT80U2
     40{
     41    uint16_t    au16[5];
     42} RTFLOAT80U2;
     43
     44typedef struct uint128_t
     45{
     46    uint64_t    au64[2];
     47} uint128_t;
     48
     49
  • trunk/src/VBox/VMM/dtrace/lib/vbox-types.d

    r41225 r41247  
    3030 * These are taken from a variation of VBox and IPRT headers.
    3131 */
     32#pragma D depends_on library vbox-arch-types.d
    3233
    33 typedef uint32_t        VMCPUID;
    34 typedef uint32_t        RTCPUID;
    35 typedef struct UVMCPU  *PUVMCPU;
    36 typedef uintptr_t       PVMR3;
    37 typedef uint32_t        PVMRC;
    38 typedef struct VM      *PVMR0;
    39 typedef uintptr_t       RTNATIVETHREAD;
     34typedef uint16_t                RTSEL;
     35typedef uint32_t                RTRCPTR;
     36typedef uintptr_t               RTNATIVETHREAD;
     37typedef struct RTTHREADINT     *RTTHREAD;
     38typedef struct RTTRACEBUFINT   *RTTRACEBUF;
     39
     40
     41typedef uint32_t                VMSTATE;
     42typedef uint32_t                VMCPUID;
     43typedef uint32_t                RTCPUID;
     44typedef struct UVMCPU          *PUVMCPU;
     45typedef uintptr_t               PVMR3;
     46typedef uint32_t                PVMRC;
     47typedef struct VM              *PVMR0;
     48typedef struct SUPDRVSESSION   *PSUPDRVSESSION;
     49typedef struct UVM             *PUVM;
     50typedef struct VBOXGDTR
     51{
     52    uint16_t    cb;
     53    uint16_t    au16Addr[4];
     54} VBOXGDTR, VBOXIDTR;
    4055
    4156typedef struct STAMPROFILEADV
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