counters.h revision 8872a043919e5dda55b40134d4a521e91b930755
0N/A * available from http://www.virtualbox.org. This file is free software;
0N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
0N/A * COUNTERS_INIT is used before using counters.h to declare helping macro
0N/A#ifndef COUNTERS_H
0N/A# define COUNTERS_H
0N/A# if defined(VBOX_WITH_STATISTICS)
0N/A# define DEREGISTER_COUNTER(name, storage) PDMDrvHlpSTAMDeregister(pDrvIns, &(storage)->Stat ## name)
#ifndef COUNTERS_INIT
/*DrvNAT.cpp*/
# ifdef SLIRP_SPLIT_CAN_OUTPUT
DRV_COUNTING_COUNTER(QueuePktSent, "counting packet sent via PDM Queue"); /**< counting packet sent via PDM queue */
DRV_COUNTING_COUNTER(QueuePktDropped, "counting packet drops by PDM Queue"); /**< counting packet drops by PDM queue */
DRV_COUNTING_COUNTER(ConsumerFalse, "counting consumer's reject number to process the queue's item"); /**< how often to wait for guest RX buffers */
#ifdef DRV_COUNTING_COUNTER
#ifdef DRV_PROFILE_COUNTER
#ifdef COUNTING_COUNTER
#ifdef PROFILE_COUNTER