VirtualBox

Changeset 60632 in vbox


Ignore:
Timestamp:
Apr 21, 2016 3:48:52 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106788
Message:

VMM/APIC: Add stat. counter for timer callbacks, fix busted logging.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r60619 r60632  
    22452245    {
    22462246        /* The APIC is disabled, pass it through the CPU. */
    2247         LogFlow(("APIC%u: APICLocalInterrupt: APIC hardware-disabled, passing interrupt to CPU. u8Pin=%u u8Level=%u\n", u8Pin,
    2248               u8Level));
     2247        LogFlow(("APIC%u: APICLocalInterrupt: APIC hardware-disabled, passing interrupt to CPU. u8Pin=%u u8Level=%u\n",
     2248                 pVCpu->idCpu, u8Pin, u8Level));
    22492249        if (u8Level)
    22502250            APICSetInterruptFF(pVCpu, PDMAPICIRQ_EXTINT);
  • trunk/src/VBox/VMM/VMMR3/APIC.cpp

    r60630 r60632  
    869869
    870870    PXAPICPAGE     pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu);
     871    PAPICCPU       pApicCpu   = VMCPU_TO_APICCPU(pVCpu);
    871872    uint32_t const uLvtTimer  = pXApicPage->lvt_timer.all.u32LvtTimer;
     873    STAM_COUNTER_INC(&pApicCpu->StatTimerCallback);
    872874    if (!XAPIC_LVT_IS_MASKED(uLvtTimer))
    873875    {
     
    877879    }
    878880
    879     PAPICCPU       pApicCpu     = VMCPU_TO_APICCPU(pVCpu);
    880881    XAPICTIMERMODE enmTimerMode = XAPIC_LVT_GET_TIMER_MODE(uLvtTimer);
    881882    switch (enmTimerMode)
     
    14431444        APIC_REG_COUNTER(&pApicCpu->StatPostIntrAlreadyPending,  "Number of times an interrupt is already pending.",
    14441445                         "/Devices/APIC/%u/PostInterruptAlreadyPending");
     1446        APIC_REG_COUNTER(&pApicCpu->StatTimerCallback,  "Number of times the timer callback is invoked.",
     1447                         "/Devices/APIC/%u/TimerCallback");
    14451448    }
    14461449# undef APIC_PROF_COUNTER
  • trunk/src/VBox/VMM/include/APICInternal.h

    r60605 r60632  
    595595     *  APICPostInterrupts().*/
    596596    STAMCOUNTER                 StatPostIntrAlreadyPending;
     597    /** Number of times the timer callback is invoked. */
     598    STAMCOUNTER                 StatTimerCallback;
    597599    /** @} */
    598600#endif
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