VirtualBox

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


Ignore:
Timestamp:
Nov 4, 2016 1:58:05 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111729
Message:

IEM: Added per-instruction statistics (not release).

File:
1 edited

Legend:

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

    r62478 r64545  
    6767//#define IEM_WITH_CODE_TLB// - work in progress
    6868
     69
     70#ifndef IN_TSTVMSTRUCT
     71/** Instruction statistics.   */
     72typedef struct IEMINSTRSTATS
     73{
     74# define IEM_DO_INSTR_STAT(a_Name, a_szDesc) uint32_t a_Name;
     75# include "IEMInstructionStatisticsTmpl.h"
     76# undef IEM_DO_INSTR_STAT
     77} IEMINSTRSTATS;
     78#else
     79struct IEMINSTRSTATS;
     80typedef struct IEMINSTRSTATS IEMINSTRSTATS;
     81#endif
     82/** Pointer to IEM instruction statistics. */
     83typedef IEMINSTRSTATS *PIEMINSTRSTATS;
    6984
    7085/** Finish and move to types.h */
     
    681696    /** Pointer to the CPU context - raw-mode context. */
    682697    RCPTRTYPE(PCPUMCTX)     pCtxRC;
    683     /** Alignment padding. */
    684     RTRCPTR                 uAlignment9;
     698
     699    /** Pointer to instruction statistics for raw-mode context (same as R0). */
     700    RCPTRTYPE(PIEMINSTRSTATS) pStatsRC;
     701    /** Pointer to instruction statistics for ring-0 context (same as RC). */
     702    R0PTRTYPE(PIEMINSTRSTATS) pStatsR0;
     703    /** Pointer to instruction statistics for non-ring-3 code. */
     704    R3PTRTYPE(PIEMINSTRSTATS) pStatsCCR3;
     705    /** Pointer to instruction statistics for ring-3 context. */
     706    R3PTRTYPE(PIEMINSTRSTATS) pStatsR3;
    685707
    686708#ifdef IEM_VERIFICATION_MODE_FULL
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