]> sourceware.org Git - systemtap.git/commitdiff
Remove the unneeded default filter functions from tests.
authorWilliam Cohen <wcohen@redhat.com>
Mon, 12 Jul 2010 14:56:34 +0000 (10:56 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Mon, 12 Jul 2010 14:56:34 +0000 (10:56 -0400)
testsuite/buildok/linuxmib-all-probes.stp
testsuite/buildok/linuxmib-detailed.stp
testsuite/buildok/tcpmib-all-probes.stp

index c79fc7d3217e936e71a9865f56ecb5a17aa75197..3711c0a7dfef0afbde935455a21873bb9285dfe5 100755 (executable)
@@ -3,7 +3,3 @@
 // Tests if all probes in the linuxmib tapset are resolvable.
 
 probe linuxmib.* {}
-
-function linuxmib_filter_key:long (sk:long, op:long) {
-       return 0
-}
index 8cc5adf034301a3365aa9c5d154bbf0086b68044..a29fe88a4dde147a9b90b675484865413e409c67 100755 (executable)
@@ -1,10 +1,5 @@
 #! stap -p4
 
-function linuxmib_filter_key:long (sk:long, op:long)
-{
-       return 1
-}
-
 probe linuxmib.DelayedACKs, linuxmib.ListenOverflows,
       linuxmib.ListenDrops, linuxmib.TCPMemoryPressures
 {
index 0d7c4c0011f77352d1cc4c152bd636ceb500a73b..fc106575ca34c6e2536f7b0d30ddb3e2105fbeed 100755 (executable)
@@ -4,21 +4,6 @@
 
 probe tcpmib.* {}
 
-// This function is just for test, the real one is
-// in tcpipstat.stp
-function tcpmib_filter_key:long (sk:long, op:long) {
-       if (!sk) return 0
-       return op
-}
-
-// same as above one
-// but it's better to move function definition from example
-// to tapset
-function ipmib_filter_key:long (skb:long, op:long, SourceIsLocal:long) {
-       if ( !skb ) return 0
-       return op
-}
-
 probe begin{
         print(tcpmib_get_state(0) +
               tcpmib_local_addr(0) +
This page took 0.029679 seconds and 5 git commands to generate.