VirtualBox

Changeset 40377 in vbox for trunk


Ignore:
Timestamp:
Mar 6, 2012 3:00:44 PM (13 years ago)
Author:
vboxsync
Message:

Fixes for real dtrace (trailing digits are not allowed in provider names).

Location:
trunk/src/VBox/VMM
Files:
5 edited
1 moved

Legend:

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

    r40376 r40377  
    219219
    220220ifdef VBOX_WITH_DTRACE_R3
    221  VMMR3_DEFS += VBOX_WITH_DTRACE
     221 VMMR3_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R3
    222222 VMMR3_INCS          += $(VMMR3_0_OUTDIR)
    223  VMMR3_INTERMEDIATES += $(VMMR3_0_OUTDIR)/VBoxVMMR3-dtrace.h
    224  $$(VMMR3_0_OUTDIR)/VBoxVMMR3-dtrace.h: $(PATH_SUB_CURRENT)/VBoxVMMR3-dtrace.d | $$(dir $$@)
     223 VMMR3_INTERMEDIATES += $(VMMR3_0_OUTDIR)/VBoxVMM-dtrace.h
     224 $$(VMMR3_0_OUTDIR)/VBoxVMM-dtrace.h: $(PATH_SUB_CURRENT)/VMMR3/VBoxVMM-dtrace.d | $$(dir $$@)
    225225        dtrace -C -h -o $@ -s $<
    226226endif
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r40375 r40377  
    11031103            STAM_REL_PROFILE_ADV_SUSPEND(&pVCpu->em.s.StatREMTotal, a);
    11041104            rc = emR3ForcedActions(pVM, pVCpu, rc);
    1105             VBOXVMMR3_EM_FF_ALL_RET(pVCpu, rc);
     1105            VBOXVMM_EM_FF_ALL_RET(pVCpu, rc);
    11061106            STAM_REL_PROFILE_ADV_RESUME(&pVCpu->em.s.StatREMTotal, a);
    11071107            if (    rc != VINF_SUCCESS
     
    13311331int emR3HighPriorityPostForcedActions(PVM pVM, PVMCPU pVCpu, int rc)
    13321332{
    1333     VBOXVMMR3_EM_FF_HIGH(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc);
     1333    VBOXVMM_EM_FF_HIGH(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc);
    13341334
    13351335    if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_PDM_CRITSECT))
     
    13841384                rc = rc2; \
    13851385        } while (0)
    1386     VBOXVMMR3_EM_FF_ALL(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc);
     1386    VBOXVMM_EM_FF_ALL(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc);
    13871387
    13881388    /*
     
    18891889            {
    18901890                rc = emR3ForcedActions(pVM, pVCpu, rc);
    1891                 VBOXVMMR3_EM_FF_ALL_RET(pVCpu, rc);
     1891                VBOXVMM_EM_FF_ALL_RET(pVCpu, rc);
    18921892                if (   (   rc == VINF_EM_RESCHEDULE_REM
    18931893                        || rc == VINF_EM_RESCHEDULE_HWACC)
     
    21172117            if (enmOldState != enmNewState)
    21182118            {
    2119                 VBOXVMMR3_EM_STATE_CHANGED(pVCpu, enmOldState, enmNewState, rc);
     2119                VBOXVMM_EM_STATE_CHANGED(pVCpu, enmOldState, enmNewState, rc);
    21202120
    21212121                /* Clear MWait flags. */
     
    21342134            }
    21352135            else
    2136                 VBOXVMMR3_EM_STATE_UNCHANGED(pVCpu, enmNewState, rc);
     2136                VBOXVMM_EM_STATE_UNCHANGED(pVCpu, enmNewState, rc);
    21372137
    21382138            STAM_PROFILE_ADV_STOP(&pVCpu->em.s.StatTotal, x); /* (skip this in release) */
  • trunk/src/VBox/VMM/VMMR3/EMHwaccm.cpp

    r40375 r40377  
    585585        {
    586586            rc = emR3ForcedActions(pVM, pVCpu, rc);
    587             VBOXVMMR3_EM_FF_ALL_RET(pVCpu, rc);
     587            VBOXVMM_EM_FF_ALL_RET(pVCpu, rc);
    588588            if (    rc != VINF_SUCCESS
    589589                &&  rc != VINF_EM_RESCHEDULE_HWACC)
  • trunk/src/VBox/VMM/VMMR3/EMRaw.cpp

    r40375 r40377  
    173173        {
    174174            rc = emR3RawForcedActions(pVM, pVCpu, pCtx);
    175             VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
     175            VBOXVMM_EM_FF_RAW_RET(pVCpu, rc);
    176176            if (rc != VINF_SUCCESS)
    177177                return rc;
     
    12031203{
    12041204    int rc = emR3RawForcedActions(pVM, pVCpu, pVCpu->em.s.pCtx);
    1205     VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
     1205    VBOXVMM_EM_FF_RAW_RET(pVCpu, rc);
    12061206    return rc;
    12071207}
     
    12251225     * Also note that SELMR3UpdateFromCPUM may trigger VM_FF_SELM_SYNC_TSS.
    12261226     */
    1227     VBOXVMMR3_EM_FF_RAW(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);
     1227    VBOXVMM_EM_FF_RAW(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);
    12281228
    12291229    /*
     
    13881388        {
    13891389            rc = emR3RawForcedActions(pVM, pVCpu, pCtx);
    1390             VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
     1390            VBOXVMM_EM_FF_RAW_RET(pVCpu, rc);
    13911391            if (rc != VINF_SUCCESS)
    13921392                break;
     
    14191419            {
    14201420                rc = emR3RawForcedActions(pVM, pVCpu, pCtx);
    1421                 VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
     1421                VBOXVMM_EM_FF_RAW_RET(pVCpu, rc);
    14221422                if (rc != VINF_SUCCESS)
    14231423                {
     
    14531453        {
    14541454            STAM_PROFILE_START(&pVCpu->em.s.StatRAWExec, c);
    1455             VBOXVMMR3_EM_RAW_RUN_PRE(pVCpu, pCtx);
     1455            VBOXVMM_EM_RAW_RUN_PRE(pVCpu, pCtx);
    14561456            rc = VMMR3RawRunGC(pVM, pVCpu);
    1457             VBOXVMMR3_EM_RAW_RUN_RET(pVCpu, pCtx, rc);
     1457            VBOXVMM_EM_RAW_RUN_RET(pVCpu, pCtx, rc);
    14581458            STAM_PROFILE_STOP(&pVCpu->em.s.StatRAWExec, c);
    14591459        }
     
    15531553            STAM_REL_PROFILE_ADV_SUSPEND(&pVCpu->em.s.StatRAWTotal, a);
    15541554            rc = emR3ForcedActions(pVM, pVCpu, rc);
    1555             VBOXVMMR3_EM_FF_ALL_RET(pVCpu, rc);
     1555            VBOXVMM_EM_FF_ALL_RET(pVCpu, rc);
    15561556            STAM_REL_PROFILE_ADV_RESUME(&pVCpu->em.s.StatRAWTotal, a);
    15571557            if (    rc != VINF_SUCCESS
  • trunk/src/VBox/VMM/VMMR3/VBoxVMM-dtrace.d

    r40376 r40377  
    1616 */
    1717
    18 provider vboxvmmr3
     18provider vboxvmm
    1919{
    2020    probe em__state__changed(void *a_pVCpu, int a_enmOldState, int a_enmNewState, int a_rc);
     
    2222    probe em__raw__run__pre(void *a_pVCpu, void *a_pCtx);
    2323    probe em__raw__run__ret(void *a_pVCpu, void *a_pCtx, int a_rc);
    24     probe em__raw__ff__high(void *a_pVCpu, unsigned int a_fGlobal, unsigned int a_fLocal, int a_rc);
    25     probe em__raw__ff__all(void *a_pVCpu, unsigned int a_fGlobal, unsigned int a_fLocal, int a_rc);
    26     probe em__raw__ff__all_ret(void *a_pVCpu, int a_rc);
    27     probe em__raw__ff__raw(void *a_pVCpu, unsigned int a_fGlobal, unsigned int a_fLocal);
    28     probe em__raw__ff__raw_ret(void *a_pVCpu, int a_rc);
     24    probe em__ff__high(void *a_pVCpu, unsigned int a_fGlobal, unsigned int a_fLocal, int a_rc);
     25    probe em__ff__all(void *a_pVCpu, unsigned int a_fGlobal, unsigned int a_fLocal, int a_rc);
     26    probe em__ff__all_ret(void *a_pVCpu, int a_rc);
     27    probe em__ff__raw(void *a_pVCpu, unsigned int a_fGlobal, unsigned int a_fLocal);
     28    probe em__ff__raw_ret(void *a_pVCpu, int a_rc);
    2929};
    3030
    31 #pragma D attributes Evolving/Evolving/Common provider vboxdd provider
    32 #pragma D attributes Private/Private/Unknown  provider vboxdd module
    33 #pragma D attributes Private/Private/Unknown  provider vboxdd function
    34 #pragma D attributes Evolving/Evolving/Common provider vboxdd name
    35 #pragma D attributes Evolving/Evolving/Common provider vboxdd args
     31#pragma D attributes Evolving/Evolving/Common provider vboxvmm provider
     32#pragma D attributes Private/Private/Unknown  provider vboxvmm module
     33#pragma D attributes Private/Private/Unknown  provider vboxvmm function
     34#pragma D attributes Evolving/Evolving/Common provider vboxvmm name
     35#pragma D attributes Evolving/Evolving/Common provider vboxvmm args
    3636
  • trunk/src/VBox/VMM/include/VMMTracing.h

    r40375 r40377  
    4949#ifdef IN_RING3
    5050# ifdef VBOX_WITH_DTRACE_R3
    51 #  include "VBoxVMMR3-dtrace.h"
     51#  include "VBoxVMM-dtrace.h"
    5252
    5353# elif defined(DBGFTRACE_ENABLED)
    54 #  define VBOXVMMR3_EM_STATE_CHANGED(a_pVCpu, a_enmOldState, a_enmNewState, a_rc) \
     54# error
     55#  define VBOXVMM_EM_STATE_CHANGED(a_pVCpu, a_enmOldState, a_enmNewState, a_rc) \
    5556        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-state-changed %d -> %d (rc=%d)", a_enmOldState, a_enmNewState, a_rc)
    56 #  define VBOXVMMR3_EM_STATE_UNCHANGED(a_pVCpu, a_enmState, a_rc) \
     57#  define VBOXVMM_EM_STATE_UNCHANGED(a_pVCpu, a_enmState, a_rc) \
    5758        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-state-unchanged %d (rc=%d)", a_enmState, a_rc)
    58 #   define VBOXVMMR3_EM_RAW_RUN_PRE(a_pVCpu, a_pCtx) \
     59#   define VBOXVMM_EM_RAW_RUN_PRE(a_pVCpu, a_pCtx) \
    5960        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-raw-pre %04x:%08llx", (a_pCtx)->cs, (a_pCtx)->rip)
    60 #   define VBOXVMMR3_EM_RAW_RUN_RET(a_pVCpu, a_pCtx, a_rc) \
     61#   define VBOXVMM_EM_RAW_RUN_RET(a_pVCpu, a_pCtx, a_rc) \
    6162        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-raw-ret %04x:%08llx rc=%d", (a_pCtx)->cs, (a_pCtx)->rip, (a_rc))
    62 #   define VBOXVMMR3_EM_FF_HIGH(a_pVCpu, a_fGlobal, a_fLocal, a_rc) \
     63#   define VBOXVMM_EM_FF_HIGH(a_pVCpu, a_fGlobal, a_fLocal, a_rc) \
    6364        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-high vm=%#x cpu=%#x rc=%d", (a_fGlobal), (a_fLocal), (a_rc))
    64 #   define VBOXVMMR3_EM_FF_ALL(a_pVCpu, a_fGlobal, a_fLocal, a_rc) \
     65#   define VBOXVMM_EM_FF_ALL(a_pVCpu, a_fGlobal, a_fLocal, a_rc) \
    6566        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-all vm=%#x cpu=%#x rc=%d", (a_fGlobal), (a_fLocal), (a_rc))
    66 #   define VBOXVMMR3_EM_FF_ALL_RET(a_pVCpu, a_rc) \
     67#   define VBOXVMM_EM_FF_ALL_RET(a_pVCpu, a_rc) \
    6768        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-all-ret %d", (a_rc))
    68 #   define VBOXVMMR3_EM_FF_RAW(a_pVCpu, a_fGlobal, a_fLocal) \
     69#   define VBOXVMM_EM_FF_RAW(a_pVCpu, a_fGlobal, a_fLocal) \
    6970        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-raw vm=%#x cpu=%#x", (a_fGlobal), (a_fLocal))
    70 #   define VBOXVMMR3_EM_FF_RAW_RET(a_pVCpu, a_rc) \
     71#   define VBOXVMM_EM_FF_RAW_RET(a_pVCpu, a_rc) \
    7172        RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-raw-ret %d", (a_rc))
    7273
    7374# else
    74 #   define VBOXVMMR3_EM_STATE_CHANGED(a_pVCpu, a_enmOldState, a_enmNewState, a_rc) do { } while (0)
    75 #   define VBOXVMMR3_EM_STATE_UNCHANGED(a_pVCpu, a_enmState, a_rc) do { } while (0)
    76 #   define VBOXVMMR3_EM_RAW_RUN_PRE(a_pVCpu, a_pCtx) do { } while (0)
    77 #   define VBOXVMMR3_EM_RAW_RUN_RET(a_pVCpu, a_pCtx, a_rc) do { } while (0)
    78 #   define VBOXVMMR3_EM_FF_HIGH(a_pVCpu, a_fGlobal, a_fLocal, a_rc) do { } while (0)
    79 #   define VBOXVMMR3_EM_FF_ALL(a_pVCpu, a_fGlobal, a_fLocal, a_rc) do { } while (0)
    80 #   define VBOXVMMR3_EM_FF_ALL_RET(a_pVCpu, a_rc) do { } while (0)
    81 #   define VBOXVMMR3_EM_FF_RAW(a_pVCpu, a_fGlobal, a_fLocal) do { } while (0)
    82 #   define VBOXVMMR3_EM_FF_RAW_RET(a_pVCpu, a_rc) do { } while (0)
     75#   define VBOXVMM_EM_STATE_CHANGED(a_pVCpu, a_enmOldState, a_enmNewState, a_rc) do { } while (0)
     76#   define VBOXVMM_EM_STATE_UNCHANGED(a_pVCpu, a_enmState, a_rc) do { } while (0)
     77#   define VBOXVMM_EM_RAW_RUN_PRE(a_pVCpu, a_pCtx) do { } while (0)
     78#   define VBOXVMM_EM_RAW_RUN_RET(a_pVCpu, a_pCtx, a_rc) do { } while (0)
     79#   define VBOXVMM_EM_FF_HIGH(a_pVCpu, a_fGlobal, a_fLocal, a_rc) do { } while (0)
     80#   define VBOXVMM_EM_FF_ALL(a_pVCpu, a_fGlobal, a_fLocal, a_rc) do { } while (0)
     81#   define VBOXVMM_EM_FF_ALL_RET(a_pVCpu, a_rc) do { } while (0)
     82#   define VBOXVMM_EM_FF_RAW(a_pVCpu, a_fGlobal, a_fLocal) do { } while (0)
     83#   define VBOXVMM_EM_FF_RAW_RET(a_pVCpu, a_rc) do { } while (0)
    8384
    8485# endif
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