Changeset 20457 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jun 10, 2009 4:19:12 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r20456 r20457 58 58 extern "C" void slirp_counting_counter_##name##_reset(PNATState pData); \ 59 59 extern "C" void slirp_counting_counter_##name##_inc(PNATState pData); \ 60 extern "C" void slirp_counting_counter_##name##_add(PNATState pData, int val) 60 extern "C" void slirp_counting_counter_##name##_add(PNATState pData, int val); 61 61 /* @todo think abaout it */ 62 62 # define PROFILE_COUNTER(name, dsc) -
trunk/src/VBox/Devices/Network/slirp/counters.h
r20454 r20457 26 26 #endif 27 27 28 PROFILE_COUNTER(Fill, "Profiling slirp fills") ;29 PROFILE_COUNTER(Poll, "Profiling slirp polls") ;30 PROFILE_COUNTER(FastTimer, "Profiling slirp fast timer") ;31 PROFILE_COUNTER(SlowTimer, "Profiling slirp slow timer") ;32 PROFILE_COUNTER(IOwrite, "Profiling IO sowrite") ;33 PROFILE_COUNTER(IOread, "Profiling IO soread") ;28 PROFILE_COUNTER(Fill, "Profiling slirp fills") 29 PROFILE_COUNTER(Poll, "Profiling slirp polls") 30 PROFILE_COUNTER(FastTimer, "Profiling slirp fast timer") 31 PROFILE_COUNTER(SlowTimer, "Profiling slirp slow timer") 32 PROFILE_COUNTER(IOwrite, "Profiling IO sowrite") 33 PROFILE_COUNTER(IOread, "Profiling IO soread") 34 34 35 COUNTING_COUTER(TCP, "TCP sockets") ;36 COUNTING_COUTER(TCPHot, "TCP sockets active") ;37 COUNTING_COUTER(UDP, "UDP sockets") ;38 COUNTING_COUTER(UDPHot, "UDP sockets active") ;35 COUNTING_COUTER(TCP, "TCP sockets") 36 COUNTING_COUTER(TCPHot, "TCP sockets active") 37 COUNTING_COUTER(UDP, "UDP sockets") 38 COUNTING_COUTER(UDPHot, "UDP sockets active") 39 39 40 COUNTING_COUTER(IORead_in_1, "SB IORead_in_1") ;41 COUNTING_COUTER(IORead_in_1_bytes, "SB IORead_in_1_bytes") ;42 COUNTING_COUTER(IORead_in_2, "SB IORead_in_2") ;43 COUNTING_COUTER(IORead_in_2_1st_bytes, "SB IORead_in_2_1st_bytes") ;44 COUNTING_COUTER(IORead_in_2_2nd_bytes, "SB IORead_in_2_2nd_bytes") ;45 COUNTING_COUTER(IOWrite_in_1, "SB IOWrite_in_1") ;46 COUNTING_COUTER(IOWrite_in_1_bytes, "SB IOWrite_in_1_bytes") ;47 COUNTING_COUTER(IOWrite_in_2, "SB IOWrite_in_2") ;48 COUNTING_COUTER(IOWrite_in_2_1st_bytes, "SB IOWrite_in_2_1st_bytes") ;49 COUNTING_COUTER(IOWrite_in_2_2nd_bytes, "SB IOWrite_in_2_2nd_bytes") ;50 COUNTING_COUTER(IOWrite_no_w, "SB IOWrite_no_w") ;51 COUNTING_COUTER(IOWrite_rest, "SB IOWrite_rest") ;52 COUNTING_COUTER(IOWrite_rest_bytes, "SB IOWrite_rest_bytes") ;40 COUNTING_COUTER(IORead_in_1, "SB IORead_in_1") 41 COUNTING_COUTER(IORead_in_1_bytes, "SB IORead_in_1_bytes") 42 COUNTING_COUTER(IORead_in_2, "SB IORead_in_2") 43 COUNTING_COUTER(IORead_in_2_1st_bytes, "SB IORead_in_2_1st_bytes") 44 COUNTING_COUTER(IORead_in_2_2nd_bytes, "SB IORead_in_2_2nd_bytes") 45 COUNTING_COUTER(IOWrite_in_1, "SB IOWrite_in_1") 46 COUNTING_COUTER(IOWrite_in_1_bytes, "SB IOWrite_in_1_bytes") 47 COUNTING_COUTER(IOWrite_in_2, "SB IOWrite_in_2") 48 COUNTING_COUTER(IOWrite_in_2_1st_bytes, "SB IOWrite_in_2_1st_bytes") 49 COUNTING_COUTER(IOWrite_in_2_2nd_bytes, "SB IOWrite_in_2_2nd_bytes") 50 COUNTING_COUTER(IOWrite_no_w, "SB IOWrite_no_w") 51 COUNTING_COUTER(IOWrite_rest, "SB IOWrite_rest") 52 COUNTING_COUTER(IOWrite_rest_bytes, "SB IOWrite_rest_bytes") 53 53 54 PROFILE_COUNTER(IOSBAppend_pf, "Profiling sbuf::append common") ;55 PROFILE_COUNTER(IOSBAppend_pf_wa, "Profiling sbuf::append all writen in network") ;56 PROFILE_COUNTER(IOSBAppend_pf_wf, "Profiling sbuf::append writen fault") ;57 PROFILE_COUNTER(IOSBAppend_pf_wp, "Profiling sbuf::append writen partly") ;58 COUNTING_COUTER(IOSBAppend, "SB: Append total") ;59 COUNTING_COUTER(IOSBAppend_wa, "SB: Append all is written to network ") ;60 COUNTING_COUTER(IOSBAppend_wf, "SB: Append nothing is written") ;61 COUNTING_COUTER(IOSBAppend_wp, "SB: Append is written partly") ;62 COUNTING_COUTER(IOSBAppend_zm, "SB: Append mbuf is zerro or less") ;54 PROFILE_COUNTER(IOSBAppend_pf, "Profiling sbuf::append common") 55 PROFILE_COUNTER(IOSBAppend_pf_wa, "Profiling sbuf::append all writen in network") 56 PROFILE_COUNTER(IOSBAppend_pf_wf, "Profiling sbuf::append writen fault") 57 PROFILE_COUNTER(IOSBAppend_pf_wp, "Profiling sbuf::append writen partly") 58 COUNTING_COUTER(IOSBAppend, "SB: Append total") 59 COUNTING_COUTER(IOSBAppend_wa, "SB: Append all is written to network ") 60 COUNTING_COUTER(IOSBAppend_wf, "SB: Append nothing is written") 61 COUNTING_COUTER(IOSBAppend_wp, "SB: Append is written partly") 62 COUNTING_COUTER(IOSBAppend_zm, "SB: Append mbuf is zerro or less") 63 63 64 COUNTING_COUTER(IOSBAppendSB, "SB: AppendSB total") ;65 COUNTING_COUTER(IOSBAppendSB_w_l_r, "SB: AppendSB (sb_wptr < sb_rptr)") ;66 COUNTING_COUTER(IOSBAppendSB_w_ge_r, "SB: AppendSB (sb_wptr >= sb_rptr)") ;67 COUNTING_COUTER(IOSBAppendSB_w_alter, "SB: AppendSB (altering of sb_wptr)") ;64 COUNTING_COUTER(IOSBAppendSB, "SB: AppendSB total") 65 COUNTING_COUTER(IOSBAppendSB_w_l_r, "SB: AppendSB (sb_wptr < sb_rptr)") 66 COUNTING_COUTER(IOSBAppendSB_w_ge_r, "SB: AppendSB (sb_wptr >= sb_rptr)") 67 COUNTING_COUTER(IOSBAppendSB_w_alter, "SB: AppendSB (altering of sb_wptr)") 68 68 69 PROFILE_COUNTER(TCP_reassamble, "TCP::reasamble") ;70 PROFILE_COUNTER(TCP_input, "TCP::input") ;69 PROFILE_COUNTER(TCP_reassamble, "TCP::reasamble") 70 PROFILE_COUNTER(TCP_input, "TCP::input") 71 71 72 COUNTING_COUTER(DrvNAT_package_sent, "counting package sent via PDM queue"); 73 COUNTING_COUTER(DrvNAT_package_drop, "counting package drops by PDM queue"); 72 COUNTING_COUTER(DrvNAT_package_sent, "counting package sent via PDM queue") 73 COUNTING_COUTER(DrvNAT_package_drop, "counting package drops by PDM queue") 74 75 -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r20454 r20457 729 729 730 730 # define PROFILE_COUNTER(name, dsc) \ 731 COUNTER(name, STAMTYPE_PROFILE, STAMUNIT_TICKS_PER_CALL, dsc) 731 COUNTER(name, STAMTYPE_PROFILE, STAMUNIT_TICKS_PER_CALL, dsc); 732 732 # define COUNTING_COUTER(name, dsc) \ 733 COUNTER(name, STAMTYPE_COUNTER, STAMUNIT_COUNT, dsc) 733 COUNTER(name, STAMTYPE_COUNTER, STAMUNIT_COUNT, dsc); 734 734 735 735 #include "counters.h" … … 1889 1889 } 1890 1890 1891 1891 #ifdef VBOX_WITH_STATISTICS 1892 /*definitions */ 1893 #define COUNTING_COUTER(name, dsc) \ 1894 void slirp_counting_counter_##name##_reset(PNATState); \ 1895 void slirp_counting_counter_##name##_inc(PNATState); \ 1896 void slirp_counting_counter_##name##_add(PNATState,int ); \ 1897 /* @todo think abaout it */ 1898 #define PROFILE_COUNTER(name, dsc) 1899 #include "counters.h" 1900 #undef COUNTING_COUTER 1901 #undef PROFILE_COUNTER 1902 1903 /*declarations*/ 1892 1904 #define COUNTING_COUTER(name, dsc) \ 1893 1905 void slirp_counting_counter_##name##_reset(PNATState pData) \ … … 1908 1920 #undef COUNTING_COUTER 1909 1921 #undef PROFILE_COUNTER 1910 1922 #endif -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r20425 r20457 240 240 #endif 241 241 242 # define PROFILE_COUNTER(name, dsc) STAMPROFILE Stat ## name 243 # define COUNTING_COUTER(name, dsc) STAMCOUNTER Stat ## name 242 # define PROFILE_COUNTER(name, dsc) STAMPROFILE Stat ## name; 243 # define COUNTING_COUTER(name, dsc) STAMCOUNTER Stat ## name; 244 244 245 245 #include "counters.h"
Note:
See TracChangeset
for help on using the changeset viewer.