VirtualBox

Changeset 72565 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jun 15, 2018 1:30:01 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123059
Message:

EM,TRPM: Record TSC with exit history in raw-mode. Added the exit history counter to the statistic (/PROF/CPUx/EM/RecordedExits). bugref:9044

File:
1 edited

Legend:

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

    r72564 r72565  
    450450 * @param   uCs             The CS.
    451451 * @param   uEip            The EIP.
     452 * @param   uTimestamp      The TSC value for the exit, 0 if not available.
    452453 * @thread  EMT(0)
    453454 */
    454 VMMRC_INT_DECL(void) EMRCHistoryAddExitNoTs(PVMCPU pVCpu, uint32_t uFlagsAndType, uint16_t uCs, uint32_t uEip)
     455VMMRC_INT_DECL(void) EMRCHistoryAddExitCsEip(PVMCPU pVCpu, uint32_t uFlagsAndType, uint16_t uCs, uint32_t uEip, uint64_t uTimestamp)
    455456{
    456457    AssertCompile(RT_ELEMENTS(pVCpu->em.s.aExitHistory) == 256);
    457458    PEMEXITENTRY pHistEntry = &pVCpu->em.s.aExitHistory[(uintptr_t)(pVCpu->em.s.iNextExit++) & 0xff];
    458459    pHistEntry->uFlatPC       = ((uint64_t)uCs << 32) |  uEip;
    459     pHistEntry->uTimestamp    = 0;
     460    pHistEntry->uTimestamp    = uTimestamp;
    460461    pHistEntry->uFlagsAndType = uFlagsAndType | EMEXIT_F_CS_EIP;
    461462    pHistEntry->idxSlot       = UINT32_MAX;
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