diff options
author | Dave Brolley <brolley@redhat.com> | 2009-07-17 11:43:16 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-07-17 11:43:16 -0400 |
commit | 6c456acd35009630facd95cca91483a92aa50e9f (patch) | |
tree | 92f90c79d473d50eb42f103634df0167c1b63ab5 /testsuite/buildok | |
parent | 451535e8b0b1018a51206283d89d233d37ea8621 (diff) | |
parent | ea14cf671a7ad543ad4752b301883789ab86f70f (diff) | |
download | systemtap-steved-6c456acd35009630facd95cca91483a92aa50e9f.tar.gz systemtap-steved-6c456acd35009630facd95cca91483a92aa50e9f.tar.xz systemtap-steved-6c456acd35009630facd95cca91483a92aa50e9f.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/buildok')
-rw-r--r-- | testsuite/buildok/ipmib-all-probes.stp | 15 | ||||
-rw-r--r-- | testsuite/buildok/linuxmib-all-probes.stp | 9 | ||||
-rw-r--r-- | testsuite/buildok/tcpmib-all-probes.stp | 15 |
3 files changed, 39 insertions, 0 deletions
diff --git a/testsuite/buildok/ipmib-all-probes.stp b/testsuite/buildok/ipmib-all-probes.stp new file mode 100644 index 00000000..b6bedcf7 --- /dev/null +++ b/testsuite/buildok/ipmib-all-probes.stp @@ -0,0 +1,15 @@ +#! stap -p4 + +// Tests if all probes in the ipmib tapset are resolvable. + +probe ipmib.* {} + +function ipmib_filter_key:long (skb:long, op:long, SourceIsLocal:long) { + // Insure all these functions will build + if ( ipmib_remote_addr(skb, SourceIsLocal) ) return 0 + if ( ipmib_local_addr(skb, SourceIsLocal) ) return 0 + if ( ipmib_tcp_remote_port(skb, SourceIsLocal) ) return 0 + if ( ipmib_tcp_local_port(skb, SourceIsLocal) ) return 0 + if ( ipmib_get_proto(skb) ) return 0 + return op +} diff --git a/testsuite/buildok/linuxmib-all-probes.stp b/testsuite/buildok/linuxmib-all-probes.stp new file mode 100644 index 00000000..c79fc7d3 --- /dev/null +++ b/testsuite/buildok/linuxmib-all-probes.stp @@ -0,0 +1,9 @@ +#! stap -p4 + +// Tests if all probes in the linuxmib tapset are resolvable. + +probe linuxmib.* {} + +function linuxmib_filter_key:long (sk:long, op:long) { + return 0 +} diff --git a/testsuite/buildok/tcpmib-all-probes.stp b/testsuite/buildok/tcpmib-all-probes.stp new file mode 100644 index 00000000..f20ba8bb --- /dev/null +++ b/testsuite/buildok/tcpmib-all-probes.stp @@ -0,0 +1,15 @@ +#! stap -p4 + +// Tests if all probes in the tcpmib tapset are resolvable. + +probe tcpmib.* {} + +function tcpmib_filter_key:long (sk:long, op:long) { + // Insure 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 +} |