VirtualBox

Changeset 12303 in vbox for trunk/src


Ignore:
Timestamp:
Sep 9, 2008 3:32:47 PM (16 years ago)
Author:
vboxsync
Message:

Extra stat counter for TB flushes

File:
1 edited

Legend:

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

    r12299 r12303  
    6969#endif
    7070
     71
     72////#define VBOX_REM_FLUSH_ALL_TBS
    7173
    7274/*******************************************************************************
     
    138140static STAMCOUNTER    gStatSelOutOfSync[6];
    139141static STAMCOUNTER    gStatSelOutOfSyncStateBack[6];
     142static STAMCOUNTER    gStatFlushTBs;
    140143#endif
    141144
     
    370373    STAM_REG(pVM, &gStatRefuseRing1or2,     STAMTYPE_COUNTER, "/REM/Refuse/Ring1or2", STAMUNIT_OCCURENCES,     "Raw mode refused because of ring 1/2 execution");
    371374    STAM_REG(pVM, &gStatRefuseCanExecute,   STAMTYPE_COUNTER, "/REM/Refuse/CanExecuteRaw", STAMUNIT_OCCURENCES,     "Raw mode refused because of cCanExecuteRaw");
     375    STAM_REG(pVM, &gStatFlushTBs,           STAMTYPE_COUNTER, "/REM/FlushTB",         STAMUNIT_OCCURENCES,     "Number of TB flushes");
    372376
    373377    STAM_REG(pVM, &gStatREMGDTChange,       STAMTYPE_COUNTER, "/REM/Change/GDTBase",   STAMUNIT_OCCURENCES,     "GDT base changes");
     
    16101614#ifdef VBOX_REM_FLUSH_ALL_TBS
    16111615    if (fFlushTBs)
     1616    {
     1617        STAM_COUNTER_INC(&gStatFlushTBs);
    16121618        tb_flush(&pVM->rem.s.Env);
     1619    }
    16131620#endif
    16141621
     
    25952602    VM_ASSERT_EMT(pVM);
    25962603
     2604#ifndef VBOX_REM_FLUSH_ALL_TBS
    25972605    /*
    25982606     * Get the physical page address.
     
    26132621        tb_invalidate_phys_page_range(PhysGC, PhysGC + PAGE_SIZE - 1, 0);
    26142622    }
     2623#endif
    26152624    return VINF_SUCCESS;
    26162625}
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