diff options
author | David J. Wilder <wilder@wilder.ibm.com> | 2009-09-25 15:24:58 -0700 |
---|---|---|
committer | David J. Wilder <wilder@wilder.ibm.com> | 2009-09-25 15:24:58 -0700 |
commit | 9e7566092211a4fce9304a769959210b3ae1b322 (patch) | |
tree | f33d03547fa833383a3467a10b64cfac1e4474f1 | |
parent | d4297c65e61849beb0624db72b7f684c298dd74a (diff) | |
download | systemtap-steved-9e7566092211a4fce9304a769959210b3ae1b322.tar.gz systemtap-steved-9e7566092211a4fce9304a769959210b3ae1b322.tar.xz systemtap-steved-9e7566092211a4fce9304a769959210b3ae1b322.zip |
Removing support for InMcastPkts, OutMcastPkts, InBcastPkts and
OutBcastPkts. As they are not needed for tcpipstat and tend to break
easily with kernel changes.
-rw-r--r-- | tapset/ipmib.stp | 86 |
1 files changed, 4 insertions, 82 deletions
diff --git a/tapset/ipmib.stp b/tapset/ipmib.stp index 0eeb6913..775250e9 100644 --- a/tapset/ipmib.stp +++ b/tapset/ipmib.stp @@ -40,10 +40,10 @@ global ReasmReqds global FragOKs global FragFails // global FragCreates -global InMcastPkts -global OutMcastPkts -global InBcastPkts -global OutBcastPkts +// global InMcastPkts +// global OutMcastPkts +// global InBcastPkts +// global OutBcastPkts /** * sfunction ipmib_remote_addr - Get the remote ip address. @@ -481,81 +481,3 @@ function __output_route_type_new:long (skb:long) THIS->__retvalue = RTN_UNSPEC; CATCH_DEREF_FAULT(); %} - -/** - * probe tcpmib.InMcastPkts - * @skb: Pointer to the struct sk_buff being acted on. - * @op: Value to be added to the counter (Operation). - * - * Counter Name: InMcastPkts - * MIB: IPSTATS_MIB_INMCASTPKTS - * - */ -probe ipmib.InMcastPkts=kernel.function("ip_rcv_finish").return -{ - skb = $skb; - op = 1; - SourceIsLocal = 0; - if ($return == _net_rx_drop()) next; - if (_input_route_type(skb) != _rtn_multicast()) next; - key = ipmib_filter_key(skb,op,SourceIsLocal); - if ( key ) InMcastPkts[key] += op; -} - -/** - * probe tcpmib.OutMcastPkts - * @skb: Pointer to the struct sk_buff being acted on. - * @op: Value to be added to the counter (Operation). - * - * Counter Name: OutMcastPkts - * MIB: IPSTATS_MIB_OUTMCASTPKTS - * - */ -probe ipmib.OutMcastPkts=kernel.function("ip_finish_output2") -{ - skb = $skb; - op = 1; - SourceIsLocal = 1; - if (_output_route_type(skb) != _rtn_multicast()) next - key = ipmib_filter_key(skb,op,SourceIsLocal); - if ( key ) OutMcastPkts[key] += op; -} - -/** - * probe tcpmib.InBcastPkts - * @skb: Pointer to the struct sk_buff being acted on. - * @op: Value to be added to the counter (Operation). - * - * Counter Name: InBcastPkts - * MIB: IPSTATS_MIB_INBCASTPKTS - * - */ -probe ipmib.InBcastPkts=kernel.function("ip_rcv_finish").return -{ - skb = $skb; - op = 1; - SourceIsLocal = 0; - if ($return == _net_rx_drop()) next; - if (_input_route_type(skb) != _rtn_broadcast()) next; - key = ipmib_filter_key(skb,op,SourceIsLocal); - if ( key ) InBcastPkts[key] += op; -} - -/** - * probe tcpmib.OutBcastPkts - * @skb: Pointer to the struct sk_buff being acted on. - * @op: Value to be added to the counter (Operation). - * - * Counter Name: OutBcastPkts - * MIB: IPSTATS_MIB_OUTBCASTPKTS - * - */ -probe ipmib.OutBcastPkts=kernel.function("ip_finish_output2") -{ - skb = $skb; - op = 1; - SourceIsLocal = 1; - if (_output_route_type(skb) != _rtn_broadcast()) next - key = ipmib_filter_key(skb,op,SourceIsLocal); - if ( key ) OutBcastPkts[key] += op; -} |