1 | /** $Id: counters.h 20457 2009-06-10 04:19:12Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * Counters definitions and declarations
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2007 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | * additional information or have any questions.
|
---|
20 | */
|
---|
21 | #ifndef PROFILE_COUNTER
|
---|
22 | # error PROFILE_COUNTER not defied
|
---|
23 | #endif
|
---|
24 | #ifndef COUNTING_COUTER
|
---|
25 | #error COUNTING_COUTER
|
---|
26 | #endif
|
---|
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")
|
---|
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")
|
---|
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")
|
---|
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")
|
---|
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)")
|
---|
68 |
|
---|
69 | PROFILE_COUNTER(TCP_reassamble, "TCP::reasamble")
|
---|
70 | PROFILE_COUNTER(TCP_input, "TCP::input")
|
---|
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")
|
---|
74 |
|
---|
75 |
|
---|