- Timestamp:
- Mar 6, 2012 3:00:44 PM (13 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r40376 r40377 219 219 220 220 ifdef VBOX_WITH_DTRACE_R3 221 VMMR3_DEFS += VBOX_WITH_DTRACE 221 VMMR3_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R3 222 222 VMMR3_INCS += $(VMMR3_0_OUTDIR) 223 VMMR3_INTERMEDIATES += $(VMMR3_0_OUTDIR)/VBoxVMM R3-dtrace.h224 $$(VMMR3_0_OUTDIR)/VBoxVMM R3-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 $$@) 225 225 dtrace -C -h -o $@ -s $< 226 226 endif -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r40375 r40377 1103 1103 STAM_REL_PROFILE_ADV_SUSPEND(&pVCpu->em.s.StatREMTotal, a); 1104 1104 rc = emR3ForcedActions(pVM, pVCpu, rc); 1105 VBOXVMM R3_EM_FF_ALL_RET(pVCpu, rc);1105 VBOXVMM_EM_FF_ALL_RET(pVCpu, rc); 1106 1106 STAM_REL_PROFILE_ADV_RESUME(&pVCpu->em.s.StatREMTotal, a); 1107 1107 if ( rc != VINF_SUCCESS … … 1331 1331 int emR3HighPriorityPostForcedActions(PVM pVM, PVMCPU pVCpu, int rc) 1332 1332 { 1333 VBOXVMM R3_EM_FF_HIGH(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc);1333 VBOXVMM_EM_FF_HIGH(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc); 1334 1334 1335 1335 if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_PDM_CRITSECT)) … … 1384 1384 rc = rc2; \ 1385 1385 } while (0) 1386 VBOXVMM R3_EM_FF_ALL(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc);1386 VBOXVMM_EM_FF_ALL(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions, rc); 1387 1387 1388 1388 /* … … 1889 1889 { 1890 1890 rc = emR3ForcedActions(pVM, pVCpu, rc); 1891 VBOXVMM R3_EM_FF_ALL_RET(pVCpu, rc);1891 VBOXVMM_EM_FF_ALL_RET(pVCpu, rc); 1892 1892 if ( ( rc == VINF_EM_RESCHEDULE_REM 1893 1893 || rc == VINF_EM_RESCHEDULE_HWACC) … … 2117 2117 if (enmOldState != enmNewState) 2118 2118 { 2119 VBOXVMM R3_EM_STATE_CHANGED(pVCpu, enmOldState, enmNewState, rc);2119 VBOXVMM_EM_STATE_CHANGED(pVCpu, enmOldState, enmNewState, rc); 2120 2120 2121 2121 /* Clear MWait flags. */ … … 2134 2134 } 2135 2135 else 2136 VBOXVMM R3_EM_STATE_UNCHANGED(pVCpu, enmNewState, rc);2136 VBOXVMM_EM_STATE_UNCHANGED(pVCpu, enmNewState, rc); 2137 2137 2138 2138 STAM_PROFILE_ADV_STOP(&pVCpu->em.s.StatTotal, x); /* (skip this in release) */ -
trunk/src/VBox/VMM/VMMR3/EMHwaccm.cpp
r40375 r40377 585 585 { 586 586 rc = emR3ForcedActions(pVM, pVCpu, rc); 587 VBOXVMM R3_EM_FF_ALL_RET(pVCpu, rc);587 VBOXVMM_EM_FF_ALL_RET(pVCpu, rc); 588 588 if ( rc != VINF_SUCCESS 589 589 && rc != VINF_EM_RESCHEDULE_HWACC) -
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r40375 r40377 173 173 { 174 174 rc = emR3RawForcedActions(pVM, pVCpu, pCtx); 175 VBOXVMM R3_EM_FF_RAW_RET(pVCpu, rc);175 VBOXVMM_EM_FF_RAW_RET(pVCpu, rc); 176 176 if (rc != VINF_SUCCESS) 177 177 return rc; … … 1203 1203 { 1204 1204 int rc = emR3RawForcedActions(pVM, pVCpu, pVCpu->em.s.pCtx); 1205 VBOXVMM R3_EM_FF_RAW_RET(pVCpu, rc);1205 VBOXVMM_EM_FF_RAW_RET(pVCpu, rc); 1206 1206 return rc; 1207 1207 } … … 1225 1225 * Also note that SELMR3UpdateFromCPUM may trigger VM_FF_SELM_SYNC_TSS. 1226 1226 */ 1227 VBOXVMM R3_EM_FF_RAW(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);1227 VBOXVMM_EM_FF_RAW(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions); 1228 1228 1229 1229 /* … … 1388 1388 { 1389 1389 rc = emR3RawForcedActions(pVM, pVCpu, pCtx); 1390 VBOXVMM R3_EM_FF_RAW_RET(pVCpu, rc);1390 VBOXVMM_EM_FF_RAW_RET(pVCpu, rc); 1391 1391 if (rc != VINF_SUCCESS) 1392 1392 break; … … 1419 1419 { 1420 1420 rc = emR3RawForcedActions(pVM, pVCpu, pCtx); 1421 VBOXVMM R3_EM_FF_RAW_RET(pVCpu, rc);1421 VBOXVMM_EM_FF_RAW_RET(pVCpu, rc); 1422 1422 if (rc != VINF_SUCCESS) 1423 1423 { … … 1453 1453 { 1454 1454 STAM_PROFILE_START(&pVCpu->em.s.StatRAWExec, c); 1455 VBOXVMM R3_EM_RAW_RUN_PRE(pVCpu, pCtx);1455 VBOXVMM_EM_RAW_RUN_PRE(pVCpu, pCtx); 1456 1456 rc = VMMR3RawRunGC(pVM, pVCpu); 1457 VBOXVMM R3_EM_RAW_RUN_RET(pVCpu, pCtx, rc);1457 VBOXVMM_EM_RAW_RUN_RET(pVCpu, pCtx, rc); 1458 1458 STAM_PROFILE_STOP(&pVCpu->em.s.StatRAWExec, c); 1459 1459 } … … 1553 1553 STAM_REL_PROFILE_ADV_SUSPEND(&pVCpu->em.s.StatRAWTotal, a); 1554 1554 rc = emR3ForcedActions(pVM, pVCpu, rc); 1555 VBOXVMM R3_EM_FF_ALL_RET(pVCpu, rc);1555 VBOXVMM_EM_FF_ALL_RET(pVCpu, rc); 1556 1556 STAM_REL_PROFILE_ADV_RESUME(&pVCpu->em.s.StatRAWTotal, a); 1557 1557 if ( rc != VINF_SUCCESS -
trunk/src/VBox/VMM/VMMR3/VBoxVMM-dtrace.d
r40376 r40377 16 16 */ 17 17 18 provider vboxvmm r318 provider vboxvmm 19 19 { 20 20 probe em__state__changed(void *a_pVCpu, int a_enmOldState, int a_enmNewState, int a_rc); … … 22 22 probe em__raw__run__pre(void *a_pVCpu, void *a_pCtx); 23 23 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); 29 29 }; 30 30 31 #pragma D attributes Evolving/Evolving/Common provider vbox ddprovider32 #pragma D attributes Private/Private/Unknown provider vbox ddmodule33 #pragma D attributes Private/Private/Unknown provider vbox ddfunction34 #pragma D attributes Evolving/Evolving/Common provider vbox ddname35 #pragma D attributes Evolving/Evolving/Common provider vbox ddargs31 #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 36 36 -
trunk/src/VBox/VMM/include/VMMTracing.h
r40375 r40377 49 49 #ifdef IN_RING3 50 50 # ifdef VBOX_WITH_DTRACE_R3 51 # include "VBoxVMM R3-dtrace.h"51 # include "VBoxVMM-dtrace.h" 52 52 53 53 # 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) \ 55 56 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-state-changed %d -> %d (rc=%d)", a_enmOldState, a_enmNewState, a_rc) 56 # define VBOXVMM R3_EM_STATE_UNCHANGED(a_pVCpu, a_enmState, a_rc) \57 # define VBOXVMM_EM_STATE_UNCHANGED(a_pVCpu, a_enmState, a_rc) \ 57 58 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-state-unchanged %d (rc=%d)", a_enmState, a_rc) 58 # define VBOXVMM R3_EM_RAW_RUN_PRE(a_pVCpu, a_pCtx) \59 # define VBOXVMM_EM_RAW_RUN_PRE(a_pVCpu, a_pCtx) \ 59 60 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-raw-pre %04x:%08llx", (a_pCtx)->cs, (a_pCtx)->rip) 60 # define VBOXVMM R3_EM_RAW_RUN_RET(a_pVCpu, a_pCtx, a_rc) \61 # define VBOXVMM_EM_RAW_RUN_RET(a_pVCpu, a_pCtx, a_rc) \ 61 62 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-raw-ret %04x:%08llx rc=%d", (a_pCtx)->cs, (a_pCtx)->rip, (a_rc)) 62 # define VBOXVMM R3_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) \ 63 64 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-high vm=%#x cpu=%#x rc=%d", (a_fGlobal), (a_fLocal), (a_rc)) 64 # define VBOXVMM R3_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) \ 65 66 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-all vm=%#x cpu=%#x rc=%d", (a_fGlobal), (a_fLocal), (a_rc)) 66 # define VBOXVMM R3_EM_FF_ALL_RET(a_pVCpu, a_rc) \67 # define VBOXVMM_EM_FF_ALL_RET(a_pVCpu, a_rc) \ 67 68 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-all-ret %d", (a_rc)) 68 # define VBOXVMM R3_EM_FF_RAW(a_pVCpu, a_fGlobal, a_fLocal) \69 # define VBOXVMM_EM_FF_RAW(a_pVCpu, a_fGlobal, a_fLocal) \ 69 70 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-raw vm=%#x cpu=%#x", (a_fGlobal), (a_fLocal)) 70 # define VBOXVMM R3_EM_FF_RAW_RET(a_pVCpu, a_rc) \71 # define VBOXVMM_EM_FF_RAW_RET(a_pVCpu, a_rc) \ 71 72 RTTraceBufAddMsgF(VMCPU_TO_HTB(a_pVCpu), "em-ff-raw-ret %d", (a_rc)) 72 73 73 74 # else 74 # define VBOXVMM R3_EM_STATE_CHANGED(a_pVCpu, a_enmOldState, a_enmNewState, a_rc) do { } while (0)75 # define VBOXVMM R3_EM_STATE_UNCHANGED(a_pVCpu, a_enmState, a_rc) do { } while (0)76 # define VBOXVMM R3_EM_RAW_RUN_PRE(a_pVCpu, a_pCtx) do { } while (0)77 # define VBOXVMM R3_EM_RAW_RUN_RET(a_pVCpu, a_pCtx, a_rc) do { } while (0)78 # define VBOXVMM R3_EM_FF_HIGH(a_pVCpu, a_fGlobal, a_fLocal, a_rc) do { } while (0)79 # define VBOXVMM R3_EM_FF_ALL(a_pVCpu, a_fGlobal, a_fLocal, a_rc) do { } while (0)80 # define VBOXVMM R3_EM_FF_ALL_RET(a_pVCpu, a_rc) do { } while (0)81 # define VBOXVMM R3_EM_FF_RAW(a_pVCpu, a_fGlobal, a_fLocal) do { } while (0)82 # define VBOXVMM R3_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) 83 84 84 85 # endif
Note:
See TracChangeset
for help on using the changeset viewer.