VirtualBox

Changeset 35125 in vbox


Ignore:
Timestamp:
Dec 15, 2010 12:06:53 PM (14 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvide: logging adjustments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c

    r35102 r35125  
    125125    VBOXPtr pVBox = pScrn->driverPrivate;
    126126
    127     TRACE_ENTRY();
    128127    /* We may want to force the use of a software cursor.  Currently this is
    129128     * needed if the guest uses a large virtual resolution, as in this case
     
    160159            rc = FALSE;
    161160    }
    162     TRACE_LOG("rc=%s\n", BOOL_STR(rc));
    163161    return rc;
    164162}
     
    274272    pvGuestHeapMemory =   ((uint8_t *)pVBox->base) + offVRAMBaseMapping
    275273                        + offGuestHeapMemory;
     274    TRACE_LOG("video RAM: %u KB, guest heap offset: 0x%x, cbGuestHeapMemory: %u\n",
     275              pScrn->videoRam, offVRAMBaseMapping + offGuestHeapMemory,
     276              cbGuestHeapMemory);
    276277    rc = VBoxHGSMISetupGuestContext(&pVBox->guestCtx, pvGuestHeapMemory,
    277278                                    cbGuestHeapMemory,
     
    290291        pVBox->cbFramebuffer -= VBVA_MIN_BUFFER_SIZE;
    291292        pVBox->aoffVBVABuffer[i] = pVBox->cbFramebuffer;
     293        TRACE_LOG("VBVA buffer offset for screen %u: 0x%lx\n", i,
     294                  (unsigned long) pVBox->cbFramebuffer);
    292295        VBoxVBVASetupBufferContext(&pVBox->aVbvaCtx[i],
    293296                                   pVBox->aoffVBVABuffer[i],
    294297                                   VBVA_MIN_BUFFER_SIZE);
    295298    }
     299    TRACE_LOG("Maximum framebuffer size: %lu (0x%lx)\n",
     300              (unsigned long) pVBox->cbFramebuffer,
     301              (unsigned long) pVBox->cbFramebuffer);
    296302    rc = VBoxHGSMISendViewInfo(&pVBox->guestCtx, pVBox->cScreens,
    297303                               vboxFillViewInfo, (void *)pVBox);
    298304
    299     /* Set up the dirty rectangle handler.  Since this seems to be a
    300        delicate operation, and removing it doubly so, this will
    301        remain in place whether it is needed or not, and will simply
    302        return if VBVA is not active.  I assume that it will be active
    303        most of the time. */
     305    /* Set up the dirty rectangle handler.  It will be added into a function
     306     * chain and gets removed when the screen is cleaned up. */
    304307    if (ShadowFBInit2(pScreen, NULL, vboxHandleDirtyRect) != TRUE)
    305308    {
     
    610613    vboxWriteHostModes(pScrn, pScrn->currentMode);
    611614#endif
    612     TRACE_LOG("rc=%s\n", BOOL_STR(rc));
    613615    return rc;
    614616}
     
    632634    int rc;
    633635
    634     TRACE_ENTRY();
    635636    pVBox = pScrn->driverPrivate;
    636637    bitsp = pCurs->bits;
     
    694695    rc = VBoxHGSMIUpdatePointerShape(&pVBox->guestCtx, fFlags, bitsp->xhot,
    695696                                     bitsp->yhot, w, h, p, sizeData);
    696     TRACE_LOG(": leaving, returning %d\n", rc);
    697697    free(p);
    698698}
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