VirtualBox

Changeset 97092 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Oct 11, 2022 3:29:59 PM (2 years ago)
Author:
vboxsync
Message:

Devices/Virtio: Fix release statistics registration in the 1.0 virtio-net implementation. bugref:8651

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp

    r96407 r97092  
    36243624     * The /Public/ bits are official and used by session info in the GUI.
    36253625     */
    3626 # ifdef VBOX_WITH_STATISTICS
    36273626    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatReceiveBytes,  STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES,
    36283627                           "Amount of data received",    "/Public/NetAdapter/%u/BytesReceived", uStatNo);
     
    36383637    PDMDevHlpSTAMRegister(pDevIns, &pThis->StatTransmitGSO,         STAMTYPE_COUNTER, "Packets/Transmit-Gso",   STAMUNIT_COUNT,          "Number of sent GSO packets");
    36393638    PDMDevHlpSTAMRegister(pDevIns, &pThis->StatTransmitCSum,        STAMTYPE_COUNTER, "Packets/Transmit-Csum",  STAMUNIT_COUNT,          "Number of completed TX checksums");
     3639# ifdef VBOX_WITH_STATISTICS
    36403640    PDMDevHlpSTAMRegister(pDevIns, &pThis->StatReceive,             STAMTYPE_PROFILE, "Receive/Total",          STAMUNIT_TICKS_PER_CALL, "Profiling receive");
    36413641    PDMDevHlpSTAMRegister(pDevIns, &pThis->StatReceiveStore,        STAMTYPE_PROFILE, "Receive/Store",          STAMUNIT_TICKS_PER_CALL, "Profiling receive storing");
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