Changeset 22410 in vbox for trunk/src/VBox
- Timestamp:
- Aug 24, 2009 12:26:36 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r22406 r22410 52 52 #include <iprt/req.h> 53 53 54 #define COUNTERS_INIT 55 #include "counters.h" 54 56 55 57 /******************************************************************************* … … 235 237 static DECLCALLBACK(void) drvNATRecvWorker(PDRVNAT pThis, uint8_t *pu8Buf, int cb) 236 238 { 239 STAM_PROFILE_START(&pThis->StatNATRecv, a); 237 240 if (RT_FAILURE(pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, RT_INDEFINITE_WAIT))) 238 241 { 239 242 AssertMsgFailed(("NAT: No RX available even on indefinite wait")); 240 243 } 244 STAM_PROFILE_STOP(&pThis->StatNATRecvWait, a); 241 245 int rc = pThis->pPort->pfnReceive(pThis->pPort, pu8Buf, cb); 242 246 RTMemFree(pu8Buf); 247 STAM_PROFILE_STOP(&pThis->StatNATRecv, a); 243 248 AssertRC(rc); 244 249 } -
trunk/src/VBox/Devices/Network/slirp/counters.h
r22406 r22410 47 47 # define DEREGISTER_COUNTER(name, storage) do {} while (0) 48 48 # endif 49 #else 49 50 # undef COUNTERS_INIT 50 51 #endif … … 118 119 # ifdef SLIRP_SPLIT_CAN_OUTPUT 119 120 DRV_COUNTING_COUNTER(NATRecvWakeups, "counting wakeups of NAT RX thread"); 121 DRV_PROFILE_COUNTER(NATRecv,"Time spent in NATRecv worker"); 122 DRV_PROFILE_COUNTER(NATRecvWait,"Time spent in NATRecv worker in waiting of free RX buffers"); 120 123 # endif 121 124 DRV_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"2 1 #ifdef RT_OS_OS2 3 2 # include <paths.h> … … 16 15 #endif 17 16 #include <alias.h> 18 #define COUNTERS_INIT19 #include "counters.h"20 17 21 18 #if !defined(RT_OS_WINDOWS) … … 570 567 # define PROFILE_COUNTER(name, dsc) REGISTER_COUNTER(name, pData, STAMTYPE_PROFILE, STAMUNIT_TICKS_PER_CALL, dsc) 571 568 # define COUNTING_COUNTER(name, dsc) REGISTER_COUNTER(name, pData, STAMTYPE_COUNTER, STAMUNIT_COUNT, dsc) 572 573 569 # include "counters.h" 574 575 570 # undef COUNTER 576 571 /** @todo register statistics for the variables dumped by: -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r22404 r22410 23 23 24 24 #include <iprt/req.h> 25 26 #define COUNTERS_INIT 27 #include "counters.h" 28 25 29 #include "ip_icmp.h" 26 30 #include "dnsproxy/dnsproxy.h" 27 28 31 /** Number of DHCP clients supported by NAT. */ 29 32 #define NB_ADDR 16 … … 248 251 #define PROFILE_COUNTER(name, dsc) STAMPROFILE Stat ## name 249 252 #define COUNTING_COUNTER(name, dsc) STAMCOUNTER Stat ## name 250 251 253 #include "counters.h" 252 254
Note:
See TracChangeset
for help on using the changeset viewer.