diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-02-13 19:25:12 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-02-13 19:25:12 +0000 |
commit | f428c8d118b9959eb629f006eec22b05d7ca1507 (patch) | |
tree | aa6baaa360ea2edf1a96cdf94ee5eb0769148939 /src/VBox/Devices/Graphics/DevVGA_VDMA.cpp | |
parent | 713b94f5803a0d3380ad1d5af73ecd9d5488d231 (diff) | |
download | VirtualBox-svn-f428c8d118b9959eb629f006eec22b05d7ca1507.tar.gz |
DevVGA: Amended logging to profile host-side rendering, bugref:8773
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@65785 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Devices/Graphics/DevVGA_VDMA.cpp')
-rw-r--r-- | src/VBox/Devices/Graphics/DevVGA_VDMA.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp b/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp index fbe74ed688e..11d820cf878 100644 --- a/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp +++ b/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp @@ -19,6 +19,7 @@ /********************************************************************************************************************************* * Header Files * *********************************************************************************************************************************/ +#define LOG_GROUP LOG_GROUP_DEV_VGA #include <VBox/VMMDev.h> #include <VBox/vmm/pdmdev.h> #include <VBox/vmm/pgm.h> @@ -1918,6 +1919,9 @@ AssertCompile(!(PAGE_SIZE % sizeof (VBOXCMDVBVAPAGEIDX))); static int8_t vboxVDMACrCmdVbvaProcess(struct VBOXVDMAHOST *pVdma, const VBOXCMDVBVA_HDR *pCmd, uint32_t cbCmd) { + LogRelFlow(("VDMA: vboxVDMACrCmdVbvaProcess: ENTER, opCode(%i)\n", pCmd->u8OpCode)); + int8_t i8Result = 0; + switch (pCmd->u8OpCode) { case VBOXCMDVBVA_OPTYPE_SYSMEMCMD: @@ -1957,7 +1961,7 @@ static int8_t vboxVDMACrCmdVbvaProcess(struct VBOXVDMAHOST *pVdma, const VBOXCMD if (cbRealCmd <= cbCmdPart) { pRealCmdHdr = (const VBOXCMDVBVA_HDR *)pvCmd; - uint8_t i8Result = vboxVDMACrCmdVbvaProcessCmdData(pVdma, pRealCmdHdr, cbRealCmd); + i8Result = vboxVDMACrCmdVbvaProcessCmdData(pVdma, pRealCmdHdr, cbRealCmd); PDMDevHlpPhysReleasePageMappingLock(pDevIns, &Lock); return i8Result; } @@ -1994,8 +1998,6 @@ static int8_t vboxVDMACrCmdVbvaProcess(struct VBOXVDMAHOST *pVdma, const VBOXCMD if (cbCurCmdTail > cbRealCmd - sizeof (*pRealCmdHdr)) cbCurCmdTail = cbRealCmd - sizeof (*pRealCmdHdr); - int8_t i8Result = 0; - switch (pRealCmdHdr->u8OpCode) { case VBOXCMDVBVA_OPTYPE_PAGING_TRANSFER: @@ -2093,7 +2095,7 @@ static int8_t vboxVDMACrCmdVbvaProcess(struct VBOXVDMAHOST *pVdma, const VBOXCMD return -1; } - int8_t i8Result = vboxVDMACrCmdVbvaProcess(pVdma, pCmd, cbCurCmd); + i8Result = vboxVDMACrCmdVbvaProcess(pVdma, pCmd, cbCurCmd); if (i8Result < 0) { WARN(("vboxVDMACrCmdVbvaProcess failed")); @@ -2103,7 +2105,9 @@ static int8_t vboxVDMACrCmdVbvaProcess(struct VBOXVDMAHOST *pVdma, const VBOXCMD return 0; } default: - return vboxVDMACrCmdVbvaProcessCmdData(pVdma, pCmd, cbCmd); + i8Result = vboxVDMACrCmdVbvaProcessCmdData(pVdma, pCmd, cbCmd); + LogRelFlow(("VDMA: vboxVDMACrCmdVbvaProcess: LEAVE, opCode(%i)\n", pCmd->u8OpCode)); + return i8Result; } } |