]> sourceware.org Git - systemtap.git/commitdiff
PR18115: add testcase map_probe_cond.stp
authorJonathan Lebon <jlebon@redhat.com>
Mon, 16 Mar 2015 16:25:08 +0000 (12:25 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Mon, 16 Mar 2015 16:40:39 +0000 (12:40 -0400)
testsuite/buildok/map_probe_cond.stp [new file with mode: 0755]

diff --git a/testsuite/buildok/map_probe_cond.stp b/testsuite/buildok/map_probe_cond.stp
new file mode 100755 (executable)
index 0000000..6960c71
--- /dev/null
@@ -0,0 +1,10 @@
+#! stap -p4
+
+# PR18115
+global foo
+probe begin if (foo[0] > 1) {
+   foo[0]++
+}
+probe process("/bin/ls").function("main") if (foo[0] > 2) {
+   foo[0]--
+}
This page took 0.030878 seconds and 5 git commands to generate.