VirtualBox

Changeset 84488 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
May 25, 2020 10:21:02 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138214
Message:

VMM/DBGFTracer: Implement support for guest memory read/write events, bugref:9210

The data from guest memory transfers need to be aggregated from the indivudual event entries
before they can be written out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/DBGFInternal.h

    r84458 r84488  
    378378
    379379/**
     380 * Guest memory read/write data aggregation.
     381 */
     382typedef struct DBGFTRACERGCPHYSRWAGG
     383{
     384    /** The event ID which started the aggregation (used for the group ID when writing out the event). */
     385    uint64_t                                idEvtStart;
     386    /** The previous event ID used to link all the chunks together. */
     387    uint64_t                                idEvtPrev;
     388    /** Number of bytes being transfered. */
     389    size_t                                  cbXfer;
     390    /** Amount of data left to aggregate before it can be written. */
     391    size_t                                  cbLeft;
     392    /** Amount of bytes allocated. */
     393    size_t                                  cbBufMax;
     394    /** Offset into the buffer to write next. */
     395    size_t                                  offBuf;
     396    /** Pointer to the allocated buffer. */
     397    uint8_t                                 *pbBuf;
     398} DBGFTRACERGCPHYSRWAGG;
     399/** Pointer to a guest memory read/write data aggregation structure. */
     400typedef DBGFTRACERGCPHYSRWAGG *PDBGFTRACERGCPHYSRWAGG;
     401
     402
     403/**
    380404 * Tracer instance data, ring-3
    381405 */
     
    407431    /** The trace log writer handle. */
    408432    RTTRACELOGWR                            hTraceLog;
     433    /** Guest memory data aggregation structures to track
     434     * currently pending guest memory reads/writes. */
     435    DBGFTRACERGCPHYSRWAGG                   aGstMemRwData[10];
    409436} DBGFTRACERINSR3;
    410437/** Pointer to a tarcer instance - Ring-3 Ptr. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette