diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-12-07 16:47:32 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-12-07 16:47:32 +0800 |
commit | 6da1ad4654842c7a2489e18b9acc94f2f68a6b24 (patch) | |
tree | a11c98746dedb4f2a21c3de4d3007eca683c8bcd /tapset/tcpmib.stp | |
parent | db41ebdabef8a7964ed92054ee7346cfded7179c (diff) | |
download | systemtap-steved-6da1ad4654842c7a2489e18b9acc94f2f68a6b24.tar.gz systemtap-steved-6da1ad4654842c7a2489e18b9acc94f2f68a6b24.tar.xz systemtap-steved-6da1ad4654842c7a2489e18b9acc94f2f68a6b24.zip |
Fix regression introduced by commit 379c585
Diffstat (limited to 'tapset/tcpmib.stp')
-rw-r--r-- | tapset/tcpmib.stp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tapset/tcpmib.stp b/tapset/tcpmib.stp index 497fb7dd..aba7837b 100644 --- a/tapset/tcpmib.stp +++ b/tapset/tcpmib.stp @@ -99,16 +99,6 @@ function tcpmib_remote_port:long(sk:long) CATCH_DEREF_FAULT(); %} -function tcpmib_filter_key:long (sk:long, op:long) { - // ensure all these functions will build - if ( tcpmib_get_state(sk) ) return 0 - if ( tcpmib_local_addr(sk) ) return 0 - if ( tcpmib_remote_addr(sk) ) return 0 - if ( tcpmib_local_port(sk) ) return 0 - if ( tcpmib_remote_port(sk) ) return 0 - return op -} - /** * probe tcpmib.ActiveOpens - Count an active opening of a socket. * @sk: Pointer to the struct sock being acted on. @@ -124,6 +114,7 @@ tcpmib.ActiveOpens=kernel.function("tcp_connect").return sk = $sk; op = 1; if ( $return ) next; + // definition in tcpipstat.stp key = tcpmib_filter_key(sk,op); if ( key ) ActiveOpens[key] += op; } |