VirtualBox

Ignore:
Timestamp:
Aug 24, 2009 12:26:36 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51387
Message:

NAT: some counters

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/counters.h

    r22406 r22410  
    4747#  define DEREGISTER_COUNTER(name, storage) do {} while (0)
    4848# endif
     49#else
    4950# undef COUNTERS_INIT
    5051#endif
     
    118119#  ifdef SLIRP_SPLIT_CAN_OUTPUT
    119120DRV_COUNTING_COUNTER(NATRecvWakeups, "counting wakeups of NAT RX thread");
     121DRV_PROFILE_COUNTER(NATRecv,"Time spent in NATRecv worker");
     122DRV_PROFILE_COUNTER(NATRecvWait,"Time spent in NATRecv worker in waiting of free RX buffers");
    120123#  endif
    121124DRV_COUNTING_COUNTER(QueuePktSent, "counting packet sent via PDM Queue");       /**< counting packet sent via PDM queue */
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r22406 r22410  
    1 #include "slirp.h"
    21#ifdef RT_OS_OS2
    32# include <paths.h>
     
    1615#endif
    1716#include <alias.h>
    18 #define COUNTERS_INIT
    19 #include "counters.h"
    2017
    2118#if !defined(RT_OS_WINDOWS)
     
    570567# define PROFILE_COUNTER(name, dsc)     REGISTER_COUNTER(name, pData, STAMTYPE_PROFILE, STAMUNIT_TICKS_PER_CALL, dsc)
    571568# define COUNTING_COUNTER(name, dsc)    REGISTER_COUNTER(name, pData, STAMTYPE_COUNTER, STAMUNIT_COUNT,          dsc)
    572 
    573569# include "counters.h"
    574 
    575570# undef COUNTER
    576571/** @todo register statistics for the variables dumped by:
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r22404 r22410  
    2323
    2424#include <iprt/req.h>
     25
     26#define COUNTERS_INIT
     27#include "counters.h"
     28
    2529#include "ip_icmp.h"
    2630#include "dnsproxy/dnsproxy.h"
    27 
    2831/** Number of DHCP clients supported by NAT. */
    2932#define NB_ADDR     16
     
    248251#define PROFILE_COUNTER(name, dsc)     STAMPROFILE Stat ## name
    249252#define COUNTING_COUNTER(name, dsc)    STAMCOUNTER Stat ## name
    250 
    251253#include "counters.h"
    252254
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