summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/tcpmib-all-probes.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok/tcpmib-all-probes.stp')
-rw-r--r--testsuite/buildok/tcpmib-all-probes.stp15
1 files changed, 15 insertions, 0 deletions
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
+}