summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-12-14 16:39:01 -0500
committerDave Brolley <brolley@redhat.com>2009-12-14 16:39:01 -0500
commitb8f1753c091d3f75ea4a71bfb709d8e50780d3fb (patch)
treeea5e83a0556d4df262a2b4f9b26065dc312a8a1e /tapset
parent61b21980212779b5a35f6a196842bdca55a3ced6 (diff)
parent958c58e8231563e9349e4d8ea56c04c25e1501c0 (diff)
downloadsystemtap-steved-b8f1753c091d3f75ea4a71bfb709d8e50780d3fb.tar.gz
systemtap-steved-b8f1753c091d3f75ea4a71bfb709d8e50780d3fb.tar.xz
systemtap-steved-b8f1753c091d3f75ea4a71bfb709d8e50780d3fb.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset')
-rw-r--r--tapset/tcpmib.stp11
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;
}