summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/optionalprobe.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/optionalprobe.stp')
-rw-r--r--testsuite/systemtap.base/optionalprobe.stp14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/optionalprobe.stp b/testsuite/systemtap.base/optionalprobe.stp
new file mode 100644
index 00000000..13918cee
--- /dev/null
+++ b/testsuite/systemtap.base/optionalprobe.stp
@@ -0,0 +1,14 @@
+#! stap
+
+# test optional probe
+
+probe foo ?,
+ process("/do/not/exist").function("main") !,
+ kernel.mark("no such mark") ?,
+ kernel.trace("no trace") !,
+ process.foo ?,
+ kernel.statement("no statement") !,
+ module("no mod").function("*") ?,
+ kernel.function("no such func*") !,
+ begin {
+}