VirtualBox

Changeset 1932 in vbox for trunk/src/recompiler/new


Ignore:
Timestamp:
Apr 4, 2007 2:36:56 PM (18 years ago)
Author:
vboxsync
Message:

Added cpu_get_tsc stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/new/VBoxRecompiler.c

    r1617 r1932  
    132132static STAMPROFILE    gStatHCVirt2GCPhys;
    133133#endif
     134static STAMCOUNTER    gStatCpuGetTSC;
    134135static STAMCOUNTER    gStatRefuseTFInhibit;
    135136static STAMCOUNTER    gStatRefuseVM86;
     
    370371#endif
    371372
     373    STAM_REG(pVM, &gStatCpuGetTSC,          STAMTYPE_COUNTER, "/REM/CpuGetTSC",         STAMUNIT_OCCURENCES,     "cpu_get_tsc calls");
     374
    372375    STAM_REG(pVM, &gStatRefuseTFInhibit,    STAMTYPE_COUNTER, "/REM/Refuse/TFInibit", STAMUNIT_OCCURENCES,     "Raw mode refused because of TF or irq inhibit");
    373376    STAM_REG(pVM, &gStatRefuseVM86,         STAMTYPE_COUNTER, "/REM/Refuse/VM86",     STAMUNIT_OCCURENCES,     "Raw mode refused because of VM86");
     
    399402    STAM_REG(pVM, &gStatSelOutOfSyncStateBack[4],    STAMTYPE_COUNTER, "/REM/StateBack/SelOutOfSync/FS",        STAMUNIT_OCCURENCES,     "FS out of sync");
    400403    STAM_REG(pVM, &gStatSelOutOfSyncStateBack[5],    STAMTYPE_COUNTER, "/REM/StateBack/SelOutOfSync/GS",        STAMUNIT_OCCURENCES,     "GS out of sync");
     404
    401405
    402406#endif
     
    45074511uint64_t cpu_get_tsc(CPUX86State *env)
    45084512{
     4513    STAM_COUNTER_INC(&gStatCpuGetTSC);
    45094514    return TMCpuTickGet(env->pVM);
    45104515}
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