VirtualBox

Changeset 85966 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Aug 31, 2020 11:47:52 PM (4 years ago)
Author:
vboxsync
Message:

DevIoApic: Added some release stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevIoApic.cpp

    r85865 r85966  
    262262    STAMCOUNTER             StatEoiReceived;
    263263#endif
     264    /** Per-vector stats. */
     265    STAMCOUNTER             aStatVectors[256];
    264266} IOAPIC;
    265267AssertCompileMemberAlignment(IOAPIC, au64RedirTable, 8);
     
    917919     * Deliver to the local APIC via the system/3-wire-APIC bus.
    918920     */
     921    PIOAPIC pThis = PDMDEVINS_2_DATA(pDevIns, PIOAPIC);
     922    STAM_REL_COUNTER_INC(&pThis->aStatVectors[ApicIntr.u8Vector]);
     923
    919924    int rc = pThisCC->pIoApicHlp->pfnApicBusDeliver(pDevIns,
    920925                                                    ApicIntr.u8Dest,
     
    14731478    PDMDevHlpSTAMRegister(pDevIns, &pThis->StatEoiReceived,  STAMTYPE_COUNTER, "LevelIntr/Recv", STAMUNIT_OCCURENCES, "Number of EOIs received for level-triggered interrupts from the local APIC(s).");
    14741479# endif
     1480    for (size_t i = 0; i < RT_ELEMENTS(pThis->aStatVectors); i++)
     1481        PDMDevHlpSTAMRegisterF(pDevIns, &pThis->aStatVectors, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES,
     1482                               "Number of ioapicSendMsi/pfnApicBusDeliver calls for the vector.", "Vectors/%02x", i);
    14751483
    14761484    /*
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