VirtualBox

Changeset 37415 in vbox for trunk


Ignore:
Timestamp:
Jun 10, 2011 4:04:47 PM (14 years ago)
Author:
vboxsync
Message:

TM.cpp: Backed out previous revision (r72213) - the file was not intened to be committed yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TM.cpp

    r37414 r37415  
    130130#include <VBox/vmm/pdmapi.h>
    131131#include <VBox/vmm/iom.h>
    132 #include <VBox/vmm/dbgftrace.h>
    133132#include "TMInternal.h"
    134133#include <VBox/vmm/vm.h>
     
    20772076        STAM_COUNTER_INC(&pVM->tm.s.StatVirtualSyncRunStoppedAlready);
    20782077        u64Now = pVM->tm.s.u64VirtualSync;
    2079 #if 0 //def DEBUG_bird
     2078#ifdef DEBUG_bird
    20802079        Assert(u64Now <= pNext->u64Expire);
    20812080#endif
    2082         if (u64Now > pNext->u64Expire)
    2083             DBGFTRACE_U64_TAG2(pVM, u64Now - pNext->u64Expire, "stopped after timer expired", pNext->pszDesc);
    20842081    }
    20852082    else
     
    21822179
    21832180            /* advance the clock - don't permit timers to be out of order or armed in the 'past'. */
    2184             if (pTimer->u64Expire < u64Prev)
    2185                 DBGFTRACE_U64_TAG2(pVM, u64Prev - pTimer->u64Expire, "timer expires in the past", pNext->pszDesc);
    21862181#ifdef DEBUG_bird
    21872182#ifdef VBOX_STRICT
    2188             //AssertMsg(pTimer->u64Expire >= u64Prev, ("%'RU64 < %'RU64 %s\n", pTimer->u64Expire, u64Prev, pTimer->pszDesc));
     2183            AssertMsg(pTimer->u64Expire >= u64Prev, ("%'RU64 < %'RU64 %s\n", pTimer->u64Expire, u64Prev, pTimer->pszDesc));
    21892184            u64Prev = pTimer->u64Expire;
    21902185#endif
     
    21952190            /* fire */
    21962191            TM_SET_STATE(pTimer, TMTIMERSTATE_EXPIRED_DELIVER);
    2197             DBGFTRACE_U64_TAG(pVM, pVM->tm.s.u64VirtualSync, pTimer->pszDesc);
    21982192            switch (pTimer->enmType)
    21992193            {
     
    22362230        Assert(u64VirtualNow2 >= u64VirtualNow);
    22372231#ifdef DEBUG_bird
    2238         //AssertMsg(pVM->tm.s.u64VirtualSync >= u64Now, ("%'RU64 < %'RU64\n", pVM->tm.s.u64VirtualSync, u64Now));
     2232        AssertMsg(pVM->tm.s.u64VirtualSync >= u64Now, ("%'RU64 < %'RU64\n", pVM->tm.s.u64VirtualSync, u64Now));
    22392233#endif
    2240         if (pVM->tm.s.u64VirtualSync < u64Now)
    2241             DBGFTRACE_U64_TAG(pVM, u64Now - pVM->tm.s.u64VirtualSync, "u64VirtualSync < u64Now");
    2242 
    22432234        const uint64_t offSlack = pVM->tm.s.u64VirtualSync - u64Now;
    22442235        STAM_STATS({
     
    22842275                ASMAtomicWriteBool(&pVM->tm.s.fVirtualSyncCatchUp, false);
    22852276                Log4(("TM: %'RU64/-%'8RU64: caught up [pt]\n", u64VirtualNow2 - offNew, offLag));
    2286                 DBGFTRACE_U64_TAG(pVM, u64VirtualNow2 - offNew, "vs caught up [pt]");
    22872277            }
    22882278            else if (offLag <= pVM->tm.s.u64VirtualSyncCatchUpGiveUpThreshold)
     
    22982288                    ASMAtomicWriteU32(&pVM->tm.s.u32VirtualSyncCatchUpPercentage, pVM->tm.s.aVirtualSyncCatchUpPeriods[i].u32Percentage);
    22992289                    Log4(("TM: %'RU64/%'8RU64: adj %u%%\n", u64VirtualNow2 - offNew, offLag, pVM->tm.s.u32VirtualSyncCatchUpPercentage));
    2300                     DBGFTRACE_U64_TAG(pVM, pVM->tm.s.u32VirtualSyncCatchUpPercentage, "vs adj");
    23012290                }
    2302                 else
    2303                     DBGFTRACE_U64_TAG(pVM, u64VirtualNow2 - offNew, "vs resuming catch up");
    23042291                pVM->tm.s.u64VirtualSyncCatchUpPrev = u64VirtualNow2;
    23052292            }
     
    23132300                Log4(("TM: %'RU64/%'8RU64: give up %u%%\n", u64VirtualNow2 - offNew, offLag, pVM->tm.s.u32VirtualSyncCatchUpPercentage));
    23142301                LogRel(("TM: Giving up catch-up attempt at a %'RU64 ns lag; new total: %'RU64 ns\n", offLag, offNew));
    2315                 DBGFTRACE_U64_TAG(pVM, u64VirtualNow2 - offNew, "vs gave up");
    23162302            }
    23172303        }
     
    23302316                ASMAtomicWriteBool(&pVM->tm.s.fVirtualSyncCatchUp, true);
    23312317                Log4(("TM: %'RU64/%'8RU64: catch-up %u%%\n", u64VirtualNow2 - offNew, offLag, pVM->tm.s.u32VirtualSyncCatchUpPercentage));
    2332                 DBGFTRACE_U64_TAG(pVM, pVM->tm.s.u32VirtualSyncCatchUpPercentage, "vs start");
    23332318            }
    23342319            else
     
    23392324                Log4(("TM: %'RU64/%'8RU64: give up\n", u64VirtualNow2 - offNew, offLag));
    23402325                LogRel(("TM: Not bothering to attempt catching up a %'RU64 ns lag; new total: %'RU64\n", offLag, offNew));
    2341                 DBGFTRACE_U64_TAG(pVM, u64VirtualNow2 - offNew, "vs don't bother");
    23422326            }
    23432327        }
    2344         else
    2345             DBGFTRACE_U64_TAG(pVM, u64VirtualNow2 - offNew, "vs resuming");
    23462328
    23472329        /*
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