counters.h revision 73998d8c011a8daa516284396927355bef407656
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsync * Counters macro invocation template.
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsync * This is included with different PROFILE_COUNTER and COUNTING_COUNTER
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsync * implementations to instantiate data members, create function prototypes and
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsync * implement these prototypes.
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsync * Copyright (C) 2007-2009 Sun Microsystems, Inc.
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * available from http://www.virtualbox.org. This file is free software;
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * you can redistribute it and/or modify it under the terms of the GNU
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * General Public License (GPL) as published by the Free Software
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
d981a844e64c196b4c96be1a52ddc42e23337138vboxsync * additional information or have any questions.
73998d8c011a8daa516284396927355bef407656vboxsync#if !defined(PROFILE_COUNTER) && !(DRV_PROFILE_COUNTER)
73998d8c011a8daa516284396927355bef407656vboxsync#if !defined(COUNTING_COUNTER) && !(DRV_COUNTING_COUNTER)
73998d8c011a8daa516284396927355bef407656vboxsync * DRV_ prefixed are counters used in DrvNAT the rest are used in Slirp
73998d8c011a8daa516284396927355bef407656vboxsync# define COUNTING_COUNTER(name, dsc) do {} while (0)
73998d8c011a8daa516284396927355bef407656vboxsync# define DRV_PROFILE_COUNTER(name, dsc) do {} while (0)
73998d8c011a8daa516284396927355bef407656vboxsync# define DRV_COUNTING_COUNTER(name, dsc) do {} while (0)
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncPROFILE_COUNTER(FastTimer, "Profiling slirp fast timer");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncPROFILE_COUNTER(SlowTimer, "Profiling slirp slow timer");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IORead_in_1_bytes, "SB IORead_in_1_bytes");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IORead_in_2_1st_bytes, "SB IORead_in_2_1st_bytes");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IORead_in_2_2nd_bytes, "SB IORead_in_2_2nd_bytes");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOWrite_in_1_bytes, "SB IOWrite_in_1_bytes");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOWrite_in_2_1st_bytes, "SB IOWrite_in_2_1st_bytes");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOWrite_in_2_2nd_bytes, "SB IOWrite_in_2_2nd_bytes");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOWrite_rest_bytes, "SB IOWrite_rest_bytes");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncPROFILE_COUNTER(IOSBAppend_pf, "Profiling sbuf::append common");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncPROFILE_COUNTER(IOSBAppend_pf_wa, "Profiling sbuf::append all writen in network");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncPROFILE_COUNTER(IOSBAppend_pf_wf, "Profiling sbuf::append writen fault");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncPROFILE_COUNTER(IOSBAppend_pf_wp, "Profiling sbuf::append writen partly");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppend_wa, "SB: Append all is written to network ");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppend_wf, "SB: Append nothing is written");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppend_wp, "SB: Append is written partly");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppend_zm, "SB: Append mbuf is zerro or less");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppendSB, "SB: AppendSB total");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppendSB_w_l_r, "SB: AppendSB (sb_wptr < sb_rptr)");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppendSB_w_ge_r, "SB: AppendSB (sb_wptr >= sb_rptr)");
eb6509c759a277527b791759757d9d9a5b1c5e32vboxsyncCOUNTING_COUNTER(IOSBAppendSB_w_alter, "SB: AppendSB (altering of sb_wptr)");
95ff7c92406f8e3cc892ec0ed9be7d06c49e302cvboxsyncCOUNTING_COUNTER(TCP_retransmit, "TCP::retransmit");