VirtualBox

Ignore:
Timestamp:
Nov 4, 2016 1:58:05 AM (8 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r62639 r64545  
    1139011390 * @{
    1139111391 */
     11392#ifdef VBOX_WITH_STATISTICS
     11393# define IEMOP_INC_STATS(a_Stats) do { pVCpu->iem.s.CTX_SUFF(pStats)->a_Stats += 1; } while (0)
     11394#else
     11395# define IEMOP_INC_STATS(a_Stats) do { } while (0)
     11396#endif
     11397
    1139211398#ifdef DEBUG
    11393 # define IEMOP_MNEMONIC(a_szMnemonic) \
    11394     Log4(("decode - %04x:%RGv %s%s [#%u]\n", IEM_GET_CTX(pVCpu)->cs.Sel, IEM_GET_CTX(pVCpu)->rip, \
    11395           pVCpu->iem.s.fPrefixes & IEM_OP_PRF_LOCK ? "lock " : "", a_szMnemonic, pVCpu->iem.s.cInstructions))
    11396 # define IEMOP_MNEMONIC2(a_szMnemonic, a_szOps) \
    11397     Log4(("decode - %04x:%RGv %s%s %s [#%u]\n", IEM_GET_CTX(pVCpu)->cs.Sel, IEM_GET_CTX(pVCpu)->rip, \
    11398           pVCpu->iem.s.fPrefixes & IEM_OP_PRF_LOCK ? "lock " : "", a_szMnemonic, a_szOps, pVCpu->iem.s.cInstructions))
     11399# define IEMOP_MNEMONIC(a_Stats, a_szMnemonic) \
     11400    do { \
     11401        IEMOP_INC_STATS(a_Stats); \
     11402        Log4(("decode - %04x:%RGv %s%s [#%u]\n", IEM_GET_CTX(pVCpu)->cs.Sel, IEM_GET_CTX(pVCpu)->rip, \
     11403              pVCpu->iem.s.fPrefixes & IEM_OP_PRF_LOCK ? "lock " : "", a_szMnemonic, pVCpu->iem.s.cInstructions)); \
     11404    } while (0)
    1139911405#else
    11400 # define IEMOP_MNEMONIC(a_szMnemonic) do { } while (0)
    11401 # define IEMOP_MNEMONIC2(a_szMnemonic, a_szOps) do { } while (0)
     11406# define IEMOP_MNEMONIC(a_Stats, a_szMnemonic) IEMOP_INC_STATS(a_Stats)
    1140211407#endif
    1140311408
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