Changeset 21687 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jul 17, 2009 1:49:42 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/counters.h
r20713 r21687 74 74 PROFILE_COUNTER(TCP_reassamble, "TCP::reasamble"); 75 75 PROFILE_COUNTER(TCP_input, "TCP::input"); 76 PROFILE_COUNTER(IP_input, "IP::input"); 77 PROFILE_COUNTER(IP_output, "IP::output"); 78 #ifdef VBOX_WITH_SLIRP_ALIAS 79 PROFILE_COUNTER(ALIAS_input, "ALIAS::input"); 80 PROFILE_COUNTER(ALIAS_output, "ALIAS::output"); 81 #endif 76 82 -
trunk/src/VBox/Devices/Network/slirp/ip_input.c
r20165 r21687 77 77 register struct ip *ip; 78 78 int hlen = 0; 79 STAM_PROFILE_START(&pData->StatIP_input, a); 80 STAM_PROFILE_START(&pData->StatALIAS_input, b); 79 81 80 82 DEBUG_CALL("ip_input"); … … 90 92 rc = LibAliasIn(m->m_la ? m->m_la : pData->proxy_alias, mtod(m, char *), 91 93 m->m_len); 94 STAM_PROFILE_STOP(&pData->StatALIAS_input, b); 92 95 Log2(("NAT: LibAlias return %d\n", rc)); 93 96 } … … 97 100 { 98 101 ipstat.ips_toosmall++; 102 STAM_PROFILE_STOP(&pData->StatIP_input, a); 99 103 return; 100 104 } … … 174 178 m = ip_reass(pData, m); 175 179 if (m == NULL) 176 return; 180 { 181 STAM_PROFILE_STOP(&pData->StatIP_input, a); 182 return; 183 } 177 184 ip = mtod(m, struct ip *); 178 185 hlen = ip->ip_len; … … 200 207 m_free(pData, m); 201 208 } 209 STAM_PROFILE_STOP(&pData->StatIP_input, a); 202 210 return; 203 211 bad: … … 205 213 &ip->ip_dst, ip->ip_len)); 206 214 m_freem(pData, m); 215 STAM_PROFILE_STOP(&pData->StatIP_input, a); 207 216 return; 208 217 } -
trunk/src/VBox/Devices/Network/slirp/ip_output.c
r21385 r21687 89 89 const uint8_t *eth_dst = NULL; 90 90 #endif 91 STAM_PROFILE_START(&pData->StatIP_output, a); 92 STAM_PROFILE_START(&pData->StatALIAS_output, b); 91 93 92 94 DEBUG_CALL("ip_output"); … … 156 158 mtod(m, char *), m->m_len); 157 159 Log2(("NAT: LibAlias return %d\n", rc)); 160 STAM_PROFILE_STOP(&pData->StatALIAS_output, b); 158 161 } 159 162 #endif … … 258 261 mtod(m, char *), m->m_len); 259 262 Log2(("NAT: LibAlias return %d\n", rc)); 263 STAM_PROFILE_STOP(&pData->StatALIAS_output, b); 260 264 } 261 265 #endif … … 289 293 290 294 done: 295 STAM_PROFILE_STOP(&pData->StatIP_output, a); 291 296 return (error); 292 297 293 298 bad: 294 299 m_freem(pData, m0); 300 STAM_PROFILE_STOP(&pData->StatIP_output, a); 295 301 goto done; 296 302 } -
trunk/src/VBox/Devices/Network/slirp/sbuf.c
r20712 r21687 83 83 DEBUG_ARG("m = %lx", (long)m); 84 84 DEBUG_ARG("m->m_len = %d", m->m_len); 85 86 STAM_COUNTER_RESET(&pData->StatIOSBAppend);87 STAM_COUNTER_RESET(&pData->StatIOSBAppend_zm);88 STAM_COUNTER_RESET(&pData->StatIOSBAppend_wa);89 STAM_COUNTER_RESET(&pData->StatIOSBAppend_wf);90 STAM_COUNTER_RESET(&pData->StatIOSBAppend_wp);91 85 92 86 STAM_COUNTER_INC(&pData->StatIOSBAppend); … … 162 156 len = m->m_len; 163 157 164 STAM_COUNTER_RESET(&pData->StatIOSBAppendSB);165 STAM_COUNTER_RESET(&pData->StatIOSBAppendSB_w_l_r);166 STAM_COUNTER_RESET(&pData->StatIOSBAppendSB_w_ge_r);167 STAM_COUNTER_RESET(&pData->StatIOSBAppendSB_w_alter);168 169 158 STAM_COUNTER_INC(&pData->StatIOSBAppendSB); 170 159 if (sb->sb_wptr < sb->sb_rptr)
Note:
See TracChangeset
for help on using the changeset viewer.