VirtualBox

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


Ignore:
Timestamp:
Sep 15, 2021 7:35:24 PM (3 years ago)
Author:
vboxsync
Message:

VMM/EM: Copied the two stats we still use from EMSTATS and into the EMCPU structure, avoiding the hyper heap and pointers. bugref:10093

File:
1 edited

Legend:

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

    r89993 r91264  
    7878AssertCompileMemberAlignment(CLISTAT, Counter, 8);
    7979#endif
    80 
    81 
    82 /**
    83  * Excessive (used to be) EM statistics.
    84  */
    85 typedef struct EMSTATS
    86 {
    87 #if 1 /* rawmode only? */
    88     /** @name Privileged Instructions Ending Up In HC.
    89      * @{ */
    90     STAMCOUNTER             StatIoRestarted;
    91     STAMCOUNTER             StatIoIem;
    92     STAMCOUNTER             StatCli;
    93     STAMCOUNTER             StatSti;
    94     STAMCOUNTER             StatInvlpg;
    95     STAMCOUNTER             StatHlt;
    96     STAMCOUNTER             StatMovReadCR[DISCREG_CR4 + 1];
    97     STAMCOUNTER             StatMovWriteCR[DISCREG_CR4 + 1];
    98     STAMCOUNTER             StatMovDRx;
    99     STAMCOUNTER             StatIret;
    100     STAMCOUNTER             StatMovLgdt;
    101     STAMCOUNTER             StatMovLldt;
    102     STAMCOUNTER             StatMovLidt;
    103     STAMCOUNTER             StatMisc;
    104     STAMCOUNTER             StatSysEnter;
    105     STAMCOUNTER             StatSysExit;
    106     STAMCOUNTER             StatSysCall;
    107     STAMCOUNTER             StatSysRet;
    108     /** @} */
    109 #endif
    110 } EMSTATS;
    111 /** Pointer to the excessive EM statistics. */
    112 typedef EMSTATS *PEMSTATS;
    11380
    11481
     
    261228    /** R3: Profiling of emR3RawExecuteIOInstruction. */
    262229    STAMPROFILE             StatIOEmu;
     230    STAMCOUNTER             StatIoRestarted;
     231    STAMCOUNTER             StatIoIem;
    263232    /** R3: Profiling of emR3RawPrivileged. */
    264233    STAMPROFILE             StatPrivEmu;
     
    268237    STAMCOUNTER             StatNEMExecuteCalled;
    269238
    270     /** More statistics (R3). */
    271     R3PTRTYPE(PEMSTATS)     pStatsR3;
    272     /** More statistics (R0). */
    273     R0PTRTYPE(PEMSTATS)     pStatsR0;
    274 
    275     /** Tree for keeping track of cli occurrences (debug only). */
    276     R3PTRTYPE(PAVLGCPTRNODECORE) pCliStatTree;
    277     STAMCOUNTER             StatTotalClis;
    278     /** Align the next member at a 16-byte boundrary. */
    279     uint64_t                au64Padding2[1];
     239    /** Align the next member at a 32-byte boundrary. */
     240    uint64_t                au64Padding2[1+2];
    280241
    281242    /** Exit history table (6KB). */
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