Changeset 20574 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jun 15, 2009 1:51:43 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r20556 r20574 58 58 #define VBOX_NAT_DELAY_HACK 59 59 #ifdef VBOX_WITH_STATISTICS 60 # define COUNTING_COU TER(name, dsc) \60 # define COUNTING_COUNTER(name, dsc) \ 61 61 extern "C" void slirp_counting_counter_##name##_reset(PNATState pData); \ 62 62 extern "C" void slirp_counting_counter_##name##_inc(PNATState pData); \ … … 68 68 # define PROFILE_COUNTER(name, dsc) 69 69 # include "Network/slirp/counters.h" 70 # undef COUNTING_COU TER70 # undef COUNTING_COUNTER 71 71 # undef PROFILE_COUNTER 72 72 # define DRVNAT_COUNTER_RESET(pData, name) \ -
trunk/src/VBox/Devices/Network/slirp/counters.h
r20457 r20574 20 20 */ 21 21 #ifndef PROFILE_COUNTER 22 # error PROFILE_COUNTER not defied22 # error PROFILE_COUNTER is not defied 23 23 #endif 24 #ifndef COUNTING_COU TER25 #error COUNTING_COU TER24 #ifndef COUNTING_COUNTER 25 #error COUNTING_COUNTER is not defined 26 26 #endif 27 27 … … 33 33 PROFILE_COUNTER(IOread, "Profiling IO soread") 34 34 35 COUNTING_COU TER(TCP, "TCP sockets")36 COUNTING_COU TER(TCPHot, "TCP sockets active")37 COUNTING_COU TER(UDP, "UDP sockets")38 COUNTING_COU TER(UDPHot, "UDP sockets active")35 COUNTING_COUNTER(TCP, "TCP sockets") 36 COUNTING_COUNTER(TCPHot, "TCP sockets active") 37 COUNTING_COUNTER(UDP, "UDP sockets") 38 COUNTING_COUNTER(UDPHot, "UDP sockets active") 39 39 40 COUNTING_COU TER(IORead_in_1, "SB IORead_in_1")41 COUNTING_COU TER(IORead_in_1_bytes, "SB IORead_in_1_bytes")42 COUNTING_COU TER(IORead_in_2, "SB IORead_in_2")43 COUNTING_COU TER(IORead_in_2_1st_bytes, "SB IORead_in_2_1st_bytes")44 COUNTING_COU TER(IORead_in_2_2nd_bytes, "SB IORead_in_2_2nd_bytes")45 COUNTING_COU TER(IOWrite_in_1, "SB IOWrite_in_1")46 COUNTING_COU TER(IOWrite_in_1_bytes, "SB IOWrite_in_1_bytes")47 COUNTING_COU TER(IOWrite_in_2, "SB IOWrite_in_2")48 COUNTING_COU TER(IOWrite_in_2_1st_bytes, "SB IOWrite_in_2_1st_bytes")49 COUNTING_COU TER(IOWrite_in_2_2nd_bytes, "SB IOWrite_in_2_2nd_bytes")50 COUNTING_COU TER(IOWrite_no_w, "SB IOWrite_no_w")51 COUNTING_COU TER(IOWrite_rest, "SB IOWrite_rest")52 COUNTING_COU TER(IOWrite_rest_bytes, "SB IOWrite_rest_bytes")40 COUNTING_COUNTER(IORead_in_1, "SB IORead_in_1") 41 COUNTING_COUNTER(IORead_in_1_bytes, "SB IORead_in_1_bytes") 42 COUNTING_COUNTER(IORead_in_2, "SB IORead_in_2") 43 COUNTING_COUNTER(IORead_in_2_1st_bytes, "SB IORead_in_2_1st_bytes") 44 COUNTING_COUNTER(IORead_in_2_2nd_bytes, "SB IORead_in_2_2nd_bytes") 45 COUNTING_COUNTER(IOWrite_in_1, "SB IOWrite_in_1") 46 COUNTING_COUNTER(IOWrite_in_1_bytes, "SB IOWrite_in_1_bytes") 47 COUNTING_COUNTER(IOWrite_in_2, "SB IOWrite_in_2") 48 COUNTING_COUNTER(IOWrite_in_2_1st_bytes, "SB IOWrite_in_2_1st_bytes") 49 COUNTING_COUNTER(IOWrite_in_2_2nd_bytes, "SB IOWrite_in_2_2nd_bytes") 50 COUNTING_COUNTER(IOWrite_no_w, "SB IOWrite_no_w") 51 COUNTING_COUNTER(IOWrite_rest, "SB IOWrite_rest") 52 COUNTING_COUNTER(IOWrite_rest_bytes, "SB IOWrite_rest_bytes") 53 53 54 54 PROFILE_COUNTER(IOSBAppend_pf, "Profiling sbuf::append common") … … 56 56 PROFILE_COUNTER(IOSBAppend_pf_wf, "Profiling sbuf::append writen fault") 57 57 PROFILE_COUNTER(IOSBAppend_pf_wp, "Profiling sbuf::append writen partly") 58 COUNTING_COU TER(IOSBAppend, "SB: Append total")59 COUNTING_COU TER(IOSBAppend_wa, "SB: Append all is written to network ")60 COUNTING_COU TER(IOSBAppend_wf, "SB: Append nothing is written")61 COUNTING_COU TER(IOSBAppend_wp, "SB: Append is written partly")62 COUNTING_COU TER(IOSBAppend_zm, "SB: Append mbuf is zerro or less")58 COUNTING_COUNTER(IOSBAppend, "SB: Append total") 59 COUNTING_COUNTER(IOSBAppend_wa, "SB: Append all is written to network ") 60 COUNTING_COUNTER(IOSBAppend_wf, "SB: Append nothing is written") 61 COUNTING_COUNTER(IOSBAppend_wp, "SB: Append is written partly") 62 COUNTING_COUNTER(IOSBAppend_zm, "SB: Append mbuf is zerro or less") 63 63 64 COUNTING_COU TER(IOSBAppendSB, "SB: AppendSB total")65 COUNTING_COU TER(IOSBAppendSB_w_l_r, "SB: AppendSB (sb_wptr < sb_rptr)")66 COUNTING_COU TER(IOSBAppendSB_w_ge_r, "SB: AppendSB (sb_wptr >= sb_rptr)")67 COUNTING_COU TER(IOSBAppendSB_w_alter, "SB: AppendSB (altering of sb_wptr)")64 COUNTING_COUNTER(IOSBAppendSB, "SB: AppendSB total") 65 COUNTING_COUNTER(IOSBAppendSB_w_l_r, "SB: AppendSB (sb_wptr < sb_rptr)") 66 COUNTING_COUNTER(IOSBAppendSB_w_ge_r, "SB: AppendSB (sb_wptr >= sb_rptr)") 67 COUNTING_COUNTER(IOSBAppendSB_w_alter, "SB: AppendSB (altering of sb_wptr)") 68 68 69 69 PROFILE_COUNTER(TCP_reassamble, "TCP::reasamble") 70 70 PROFILE_COUNTER(TCP_input, "TCP::input") 71 71 72 COUNTING_COU TER(DrvNAT_package_sent, "counting package sent via PDM queue")73 COUNTING_COU TER(DrvNAT_package_drop, "counting package drops by PDM queue")72 COUNTING_COUNTER(DrvNAT_package_sent, "counting package sent via PDM queue") 73 COUNTING_COUNTER(DrvNAT_package_drop, "counting package drops by PDM queue") 74 74 75 75 -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r20457 r20574 730 730 # define PROFILE_COUNTER(name, dsc) \ 731 731 COUNTER(name, STAMTYPE_PROFILE, STAMUNIT_TICKS_PER_CALL, dsc); 732 # define COUNTING_COU TER(name, dsc) \732 # define COUNTING_COUNTER(name, dsc) \ 733 733 COUNTER(name, STAMTYPE_COUNTER, STAMUNIT_COUNT, dsc); 734 734 … … 737 737 #undef COUNTER 738 738 #undef PROFILE_COUNTER 739 #undef COUNTING_COU TER739 #undef COUNTING_COUNTER 740 740 741 741 #endif /* VBOX_WITH_STATISTICS */ … … 1891 1891 #ifdef VBOX_WITH_STATISTICS 1892 1892 /*definitions */ 1893 #define COUNTING_COU TER(name, dsc) \1893 #define COUNTING_COUNTER(name, dsc) \ 1894 1894 void slirp_counting_counter_##name##_reset(PNATState); \ 1895 1895 void slirp_counting_counter_##name##_inc(PNATState); \ … … 1898 1898 #define PROFILE_COUNTER(name, dsc) 1899 1899 #include "counters.h" 1900 #undef COUNTING_COU TER1900 #undef COUNTING_COUNTER 1901 1901 #undef PROFILE_COUNTER 1902 1902 1903 1903 /*declarations*/ 1904 #define COUNTING_COU TER(name, dsc) \1904 #define COUNTING_COUNTER(name, dsc) \ 1905 1905 void slirp_counting_counter_##name##_reset(PNATState pData) \ 1906 1906 { \ … … 1918 1918 #define PROFILE_COUNTER(name, dsc) 1919 1919 #include "counters.h" 1920 #undef COUNTING_COU TER1920 #undef COUNTING_COUNTER 1921 1921 #undef PROFILE_COUNTER 1922 1922 #endif -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r20457 r20574 241 241 242 242 # define PROFILE_COUNTER(name, dsc) STAMPROFILE Stat ## name; 243 # define COUNTING_COU TER(name, dsc) STAMCOUNTER Stat ## name;243 # define COUNTING_COUNTER(name, dsc) STAMCOUNTER Stat ## name; 244 244 245 245 #include "counters.h" 246 246 247 247 #undef PROFILE_COUNTER 248 #undef COUNTING_COU TER248 #undef COUNTING_COUNTER 249 249 250 250 } NATState;
Note:
See TracChangeset
for help on using the changeset viewer.