VirtualBox

Changeset 38966 in vbox


Ignore:
Timestamp:
Oct 7, 2011 9:11:35 AM (13 years ago)
Author:
vboxsync
Message:

Main/Display: made a lot of logging into conditional release logging. Perhaps we should start splitting up Main logging sometime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r38838 r38966  
    168168    }
    169169
    170     LogFlowFunc(("%dx%d -> %dx%d\n", cx, cy, cxThumbnail, cyThumbnail));
     170    LogRelFlowFunc(("%dx%d -> %dx%d\n", cx, cy, cxThumbnail, cyThumbnail));
    171171
    172172    cbThumbnail = cxThumbnail * 4 * cyThumbnail;
     
    319319        AssertRCBreak(rc);
    320320
    321         LogFlowFunc(("[%d] type %d, size %d bytes\n", i, typeOfBlock, cbBlock));
     321        LogRelFlowFunc(("[%d] type %d, size %d bytes\n", i, typeOfBlock, cbBlock));
    322322
    323323        /* Note: displaySSMSaveScreenshot writes size of a block = 8 and
     
    414414HRESULT Display::init (Console *aParent)
    415415{
    416     LogFlowThisFunc(("aParent=%p\n", aParent));
     416    LogRelFlowFunc(("this=%p: aParent=%p\n", this, aParent));
    417417
    418418    ComAssertRet(aParent, E_INVALIDARG);
     
    490490void Display::uninit()
    491491{
    492     LogFlowThisFunc(("\n"));
     492    LogRelFlowFunc(("this=%p\n", this));
    493493
    494494    /* Enclose the state transition Ready->InUninit->NotReady */
     
    580580                   )
    581581            {
    582                 LogFlowFunc(("Machine is running.\n"));
     582                LogRelFlowFunc(("Machine is running.\n"));
    583583
    584584                mfMachineRunning = true;
     
    616616    if (!finished)
    617617    {
    618         LogFlowFunc (("External framebuffer wants us to wait!\n"));
     618        LogRelFlowFunc (("External framebuffer wants us to wait!\n"));
    619619        return VINF_VGA_RESIZE_IN_PROGRESS;
    620620    }
     
    733733void Display::handleResizeCompletedEMT (void)
    734734{
    735     LogFlowFunc(("\n"));
     735    LogRelFlowFunc(("\n"));
    736736
    737737    unsigned uScreenId;
     
    806806                pFBInfo->pFramebuffer->NotifyUpdate(0, 0, pFBInfo->w, pFBInfo->h);
    807807        }
    808         LogFlow(("[%d]: default format %d\n", uScreenId, pFBInfo->fDefaultFormat));
     808        LogRelFlow(("[%d]: default format %d\n", uScreenId, pFBInfo->fDefaultFormat));
    809809
    810810#ifdef DEBUG_sunlover
     
    821821
    822822        /* Inform VRDP server about the change of display parameters. */
    823         LogFlowFunc (("Calling VRDP\n"));
     823        LogRelFlowFunc (("Calling VRDP\n"));
    824824        mParent->consoleVRDPServer()->SendResize();
    825825
     
    989989    AssertPtrReturnVoid(px2);
    990990    AssertPtrReturnVoid(py2);
    991     LogFlowFunc(("\n"));
     991    LogRelFlowFunc(("\n"));
    992992
    993993    if (!mpDrv)
     
    12981298                                     DISPLAYFBINFO *pFBInfo)
    12991299{
    1300     LogFlowFunc(("HGSMI[%d]: %p\n", uScreenId, pFBInfo->pVBVAHostFlags));
     1300    LogRelFlowFunc(("HGSMI[%d]: %p\n", uScreenId, pFBInfo->pVBVAHostFlags));
    13011301
    13021302    if (pFBInfo->pVBVAHostFlags)
     
    13171317        ASMAtomicWriteU32(&pFBInfo->pVBVAHostFlags->u32SupportedOrders, fu32SupportedOrders);
    13181318
    1319         LogFlowFunc(("    fu32HostEvents = 0x%08X, fu32SupportedOrders = 0x%08X\n", fu32HostEvents, fu32SupportedOrders));
     1319        LogRelFlowFunc(("    fu32HostEvents = 0x%08X, fu32SupportedOrders = 0x%08X\n", fu32HostEvents, fu32SupportedOrders));
    13201320    }
    13211321}
     
    13761376     * acceleration after a mode change.
    13771377     */
    1378     LogFlowFunc (("mfVideoAccelEnabled = %d, fEnable = %d, pVbvaMemory = %p\n",
     1378    LogRelFlowFunc (("mfVideoAccelEnabled = %d, fEnable = %d, pVbvaMemory = %p\n",
    13791379                  mfVideoAccelEnabled, fEnable, pVbvaMemory));
    13801380
     
    13931393        Assert (!mfVideoAccelEnabled);
    13941394
    1395         LogFlowFunc (("Machine is not yet running.\n"));
     1395        LogRelFlowFunc (("Machine is not yet running.\n"));
    13961396
    13971397        if (fEnable)
     
    14611461    }
    14621462
    1463     LogFlowFunc (("VideoAccelEnable: rc = %Rrc.\n", rc));
     1463    LogRelFlowFunc (("VideoAccelEnable: rc = %Rrc.\n", rc));
    14641464
    14651465    return rc;
     
    14701470void Display::VideoAccelVRDP (bool fEnable)
    14711471{
    1472     LogFlowFunc(("fEnable = %d\n", fEnable));
     1472    LogRelFlowFunc(("fEnable = %d\n", fEnable));
    14731473
    14741474    vbvaLock();
     
    17251725            if (!dst)
    17261726            {
    1727                 LogFlowFunc (("could not allocate %d bytes from heap!!!\n", cbRecord));
     1727                LogRelFlowFunc (("could not allocate %d bytes from heap!!!\n", cbRecord));
    17281728                mpVbvaMemory->off32Data = (mpVbvaMemory->off32Data + cbRecord) % VBVA_RING_BUFFER_SIZE;
    17291729                return false;
     
    19801980    ULONG *aWidth, ULONG *aHeight, ULONG *aBitsPerPixel)
    19811981{
    1982     LogFlowFunc (("aScreenId = %d\n", aScreenId));
     1982    LogRelFlowFunc (("aScreenId = %d\n", aScreenId));
    19831983
    19841984    AutoCaller autoCaller(this);
     
    20252025    IFramebuffer *aFramebuffer)
    20262026{
    2027     LogFlowFunc (("\n"));
     2027    LogRelFlowFunc (("\n"));
    20282028
    20292029    if (aFramebuffer != NULL)
     
    20882088    IFramebuffer **aFramebuffer, LONG *aXOrigin, LONG *aYOrigin)
    20892089{
    2090     LogFlowFunc (("aScreenId = %d\n", aScreenId));
     2090    LogRelFlowFunc (("aScreenId = %d\n", aScreenId));
    20912091
    20922092    CheckComArgOutPointerValid(aFramebuffer);
     
    23112311        {
    23122312            /* Scale. */
    2313             LogFlowFunc(("SCALE: %dx%d -> %dx%d\n", cx, cy, width, height));
     2313            LogRelFlowFunc(("SCALE: %dx%d -> %dx%d\n", cx, cy, width, height));
    23142314
    23152315            uint8_t *dst = address;
     
    23502350    //  within the Console lock to make it atomic).
    23512351
    2352     LogFlowFuncEnter();
    2353     LogFlowFunc (("address=%p, width=%d, height=%d\n",
     2352    LogRelFlowFunc (("address=%p, width=%d, height=%d\n",
    23542353                  address, width, height));
    23552354
     
    23762375    HRESULT rc = S_OK;
    23772376
    2378     LogFlowFunc (("Sending SCREENSHOT request\n"));
     2377    LogRelFlowFunc (("Sending SCREENSHOT request\n"));
    23792378
    23802379    /* Leave lock because other thread (EMT) is called and it may initiate a resize
     
    23972396                      tr("Could not take a screenshot (%Rrc)"), vrc);
    23982397
    2399     LogFlowFunc (("rc=%08X\n", rc));
    2400     LogFlowFuncLeave();
     2398    LogRelFlowFunc (("rc=%08X\n", rc));
    24012399    return rc;
    24022400}
     
    24052403                                             ComSafeArrayOut(BYTE, aScreenData))
    24062404{
    2407     LogFlowFuncEnter();
    2408     LogFlowFunc (("width=%d, height=%d\n",
     2405    LogRelFlowFunc (("width=%d, height=%d\n",
    24092406                  width, height));
    24102407
     
    24312428    HRESULT rc = S_OK;
    24322429
    2433     LogFlowFunc (("Sending SCREENSHOT request\n"));
     2430    LogRelFlowFunc (("Sending SCREENSHOT request\n"));
    24342431
    24352432    /* Leave lock because other thread (EMT) is called and it may initiate a resize
     
    24762473    RTMemFree(pu8Data);
    24772474
    2478     LogFlowFunc (("rc=%08X\n", rc));
    2479     LogFlowFuncLeave();
     2475    LogRelFlowFunc (("rc=%08X\n", rc));
    24802476    return rc;
    24812477}
     
    24842480                                             ComSafeArrayOut(BYTE, aScreenData))
    24852481{
    2486     LogFlowFuncEnter();
    2487     LogFlowFunc (("width=%d, height=%d\n",
     2482    LogRelFlowFunc (("width=%d, height=%d\n",
    24882483                  width, height));
    24892484
     
    25102505    HRESULT rc = S_OK;
    25112506
    2512     LogFlowFunc (("Sending SCREENSHOT request\n"));
     2507    LogRelFlowFunc (("Sending SCREENSHOT request\n"));
    25132508
    25142509    /* Leave lock because other thread (EMT) is called and it may initiate a resize
     
    25512546    RTMemFree(pu8Data);
    25522547
    2553     LogFlowFunc (("rc=%08X\n", rc));
    2554     LogFlowFuncLeave();
     2548    LogRelFlowFunc (("rc=%08X\n", rc));
    25552549    return rc;
    25562550}
     
    26652659    //  within the Console lock to make it atomic).
    26662660
    2667     LogFlowFuncEnter();
    2668     LogFlowFunc (("address=%p, x=%d, y=%d, width=%d, height=%d\n",
     2661    LogRelFlowFunc (("address=%p, x=%d, y=%d, width=%d, height=%d\n",
    26692662                  (void *)address, x, y, width, height));
    26702663
     
    27132706//    }
    27142707
    2715     LogFlowFunc (("rc=%08X\n", rc));
    2716     LogFlowFuncLeave();
     2708    LogRelFlowFunc (("rc=%08X\n", rc));
    27172709    return rc;
    27182710}
     
    27922784STDMETHODIMP Display::InvalidateAndUpdate()
    27932785{
    2794     LogFlowFuncEnter();
     2786    LogRelFlowFunc(("\n"));
    27952787
    27962788    AutoCaller autoCaller(this);
     
    28062798    HRESULT rc = S_OK;
    28072799
    2808     LogFlowFunc (("Sending DPYUPDATE request\n"));
     2800    LogRelFlowFunc (("Sending DPYUPDATE request\n"));
    28092801
    28102802    /* Have to leave the lock when calling EMT.  */
     
    28202812                      tr("Could not invalidate and update the screen (%Rrc)"), rcVBox);
    28212813
    2822     LogFlowFunc (("rc=%08X\n", rc));
    2823     LogFlowFuncLeave();
     2814    LogRelFlowFunc (("rc=%08X\n", rc));
    28242815    return rc;
    28252816}
     
    28332824STDMETHODIMP Display::ResizeCompleted(ULONG aScreenId)
    28342825{
    2835     LogFlowFunc (("\n"));
     2826    LogRelFlowFunc (("\n"));
    28362827
    28372828    /// @todo (dmik) can we AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); here?
     
    28792870void Display::updateDisplayData(void)
    28802871{
    2881     LogFlowFunc (("\n"));
     2872    LogRelFlowFunc (("\n"));
    28822873
    28832874    /* the driver might not have been constructed yet */
     
    29362927        mpDrv->IConnector.cy = 0;
    29372928    }
    2938     LogFlowFunc (("leave\n"));
     2929    LogRelFlowFunc (("leave\n"));
    29392930}
    29402931
     
    29752966                                              unsigned uScreenId)
    29762967{
    2977     LogFlowFunc (("uScreenId = %d\n", uScreenId));
     2968    LogRelFlowFunc (("uScreenId = %d\n", uScreenId));
    29782969
    29792970    AssertReturn(that, VERR_INVALID_PARAMETER);
     
    30333024    }
    30343025
    3035     LogFlowFunc (("leave\n"));
     3026    LogRelFlowFunc (("leave\n"));
    30363027    return VINF_SUCCESS;
    30373028}
     
    30473038    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
    30483039
    3049     LogFlowFunc (("bpp %d, pvVRAM %p, cbLine %d, cx %d, cy %d\n",
     3040    LogRelFlowFunc (("bpp %d, pvVRAM %p, cbLine %d, cx %d, cy %d\n",
    30503041                  bpp, pvVRAM, cbLine, cx, cy));
    30513042
     
    31093100        if (u32ResizeStatus == ResizeStatus_UpdateDisplayData)
    31103101        {
    3111             LogFlowFunc (("ResizeStatus_UpdateDisplayData %d\n", uScreenId));
     3102            LogRelFlowFunc (("ResizeStatus_UpdateDisplayData %d\n", uScreenId));
    31123103            fNoUpdate = true; /* Always set it here, because pfnUpdateDisplayAll can cause a new resize. */
    31133104            /* The framebuffer was resized and display data need to be updated. */
     
    31263117        {
    31273118            /* The framebuffer is being resized. Do not call the VGA device back. Immediately return. */
    3128             LogFlowFunc (("ResizeStatus_InProcess\n"));
     3119            LogRelFlowFunc (("ResizeStatus_InProcess\n"));
    31293120            fNoUpdate = true;
    31303121            continue;
     
    31873178    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
    31883179
    3189     LogFlowFunc (("\n"));
     3180    LogRelFlowFunc (("\n"));
    31903181
    31913182    /* Disable VBVA mode. */
     
    32023193    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
    32033194
    3204     LogFlowFunc (("fEnabled=%d\n", fEnabled));
     3195    LogRelFlowFunc (("fEnabled=%d\n", fEnabled));
    32053196
    32063197    NOREF(fEnabled);
     
    32763267                 pFBInfo->u32InformationSize = pDisplay->u32InformationSize;
    32773268
    3278                  LogFlow(("VBOX_VIDEO_INFO_TYPE_DISPLAY: %d: at 0x%08X, size 0x%08X, info 0x%08X\n", pDisplay->u32Index, pDisplay->u32Offset, pDisplay->u32FramebufferSize, pDisplay->u32InformationSize));
     3269                 LogRelFlow(("VBOX_VIDEO_INFO_TYPE_DISPLAY: %d: at 0x%08X, size 0x%08X, info 0x%08X\n", pDisplay->u32Index, pDisplay->u32Offset, pDisplay->u32FramebufferSize, pDisplay->u32InformationSize));
    32793270             }
    32803271             else if (pHdr->u8Type == VBOX_VIDEO_INFO_TYPE_QUERY_CONF32)
     
    33793370            pFBInfo->h = pScreen->u16Height;
    33803371
    3381             LogFlow(("VBOX_VIDEO_INFO_TYPE_SCREEN: (%p) %d: at %d,%d, linesize 0x%X, size %dx%d, bpp %d, flags 0x%02X\n",
     3372            LogRelFlow(("VBOX_VIDEO_INFO_TYPE_SCREEN: (%p) %d: at %d,%d, linesize 0x%X, size %dx%d, bpp %d, flags 0x%02X\n",
    33823373                     pHdr, uScreenId, pScreen->xOrigin, pScreen->yOrigin, pScreen->u32LineSize, pScreen->u16Width, pScreen->u16Height, pScreen->bitsPerPixel, pScreen->u8Flags));
    33833374
     
    35743565DECLCALLBACK(int) Display::displayVBVAEnable(PPDMIDISPLAYCONNECTOR pInterface, unsigned uScreenId, PVBVAHOSTFLAGS pHostFlags)
    35753566{
    3576     LogFlowFunc(("uScreenId %d\n", uScreenId));
     3567    LogRelFlowFunc(("uScreenId %d\n", uScreenId));
    35773568
    35783569    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
     
    35893580DECLCALLBACK(void) Display::displayVBVADisable(PPDMIDISPLAYCONNECTOR pInterface, unsigned uScreenId)
    35903581{
    3591     LogFlowFunc(("uScreenId %d\n", uScreenId));
     3582    LogRelFlowFunc(("uScreenId %d\n", uScreenId));
    35923583
    35933584    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
     
    37803771DECLCALLBACK(int) Display::displayVBVAResize(PPDMIDISPLAYCONNECTOR pInterface, const PVBVAINFOVIEW pView, const PVBVAINFOSCREEN pScreen, void *pvVRAM)
    37813772{
    3782     LogFlowFunc(("pScreen %p, pvVRAM %p\n", pScreen, pvVRAM));
     3773    LogRelFlowFunc(("pScreen %p, pvVRAM %p\n", pScreen, pvVRAM));
    37833774
    37843775    PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface);
     
    38883879        {
    38893880            /* VRDP server still need this notification. */
    3890             LogFlowFunc (("Calling VRDP\n"));
     3881            LogRelFlowFunc (("Calling VRDP\n"));
    38913882            pThis->mParent->consoleVRDPServer()->SendResize();
    38923883        }
     
    39513942{
    39523943    PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY);
    3953     LogFlowFunc (("iInstance=%d\n", pDrvIns->iInstance));
     3944    LogRelFlowFunc (("iInstance=%d\n", pDrvIns->iInstance));
    39543945    PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
    39553946
     
    39793970{
    39803971    PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY);
    3981     LogFlowFunc (("iInstance=%d\n", pDrvIns->iInstance));
     3972    LogRelFlowFunc (("iInstance=%d\n", pDrvIns->iInstance));
    39823973    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    39833974
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