summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsmith <dsmith>2007-09-14 16:53:50 +0000
committerdsmith <dsmith>2007-09-14 16:53:50 +0000
commit62d05fd6924b86fa27f3d73ce62d978e51eb09ed (patch)
treeabce69f5d823e950b5ef5ee8178b2f7a90b9a72a
parentcf8dc3c7fc65aa91a5a94906682af3acc9dca98b (diff)
downloadsystemtap-steved-62d05fd6924b86fa27f3d73ce62d978e51eb09ed.tar.gz
systemtap-steved-62d05fd6924b86fa27f3d73ce62d978e51eb09ed.tar.xz
systemtap-steved-62d05fd6924b86fa27f3d73ce62d978e51eb09ed.zip
2007-09-14 David Smith <dsmith@redhat.com>
PR 1154 * buildok/procfs01.stp: New test case. * semko/procfs01.stp: Ditto. * semko/procfs02.stp: Ditto. * semko/procfs03.stp: Ditto. * semko/procfs04.stp: Ditto. * semko/procfs05.stp: Ditto.
-rw-r--r--testsuite/ChangeLog10
-rwxr-xr-xtestsuite/buildok/procfs01.stp12
-rwxr-xr-xtestsuite/semko/procfs01.stp3
-rwxr-xr-xtestsuite/semko/procfs02.stp3
-rwxr-xr-xtestsuite/semko/procfs03.stp3
-rwxr-xr-xtestsuite/semko/procfs04.stp6
-rwxr-xr-xtestsuite/semko/procfs05.stp7
7 files changed, 44 insertions, 0 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog
index 15e9206f..c60763aa 100644
--- a/testsuite/ChangeLog
+++ b/testsuite/ChangeLog
@@ -1,3 +1,13 @@
+2007-09-14 David Smith <dsmith@redhat.com>
+
+ PR 1154
+ * buildok/procfs01.stp: New test case.
+ * semko/procfs01.stp: Ditto.
+ * semko/procfs02.stp: Ditto.
+ * semko/procfs03.stp: Ditto.
+ * semko/procfs04.stp: Ditto.
+ * semko/procfs05.stp: Ditto.
+
2007-09-13 Martin Hunt <hunt@redhat.com>
* systemtap.base/limits.exp: New. Test 32 and 64-bit integer
diff --git a/testsuite/buildok/procfs01.stp b/testsuite/buildok/procfs01.stp
new file mode 100755
index 00000000..2162aef9
--- /dev/null
+++ b/testsuite/buildok/procfs01.stp
@@ -0,0 +1,12 @@
+#! stap -p4
+
+global foo_value = "100\n"
+
+probe procfs("foo").read {
+ $value = foo_value
+}
+
+probe procfs("foo").write {
+ foo_value = $value
+ printf("value is %s", foo_value)
+}
diff --git a/testsuite/semko/procfs01.stp b/testsuite/semko/procfs01.stp
new file mode 100755
index 00000000..9cdc5bbd
--- /dev/null
+++ b/testsuite/semko/procfs01.stp
@@ -0,0 +1,3 @@
+#! stap -p2
+
+probe procfs { }
diff --git a/testsuite/semko/procfs02.stp b/testsuite/semko/procfs02.stp
new file mode 100755
index 00000000..4740b8cd
--- /dev/null
+++ b/testsuite/semko/procfs02.stp
@@ -0,0 +1,3 @@
+#! stap -p2
+
+probe procfs("foo").rread { }
diff --git a/testsuite/semko/procfs03.stp b/testsuite/semko/procfs03.stp
new file mode 100755
index 00000000..b57ff68c
--- /dev/null
+++ b/testsuite/semko/procfs03.stp
@@ -0,0 +1,3 @@
+#! stap -p2
+
+probe procfs.read.write { }
diff --git a/testsuite/semko/procfs04.stp b/testsuite/semko/procfs04.stp
new file mode 100755
index 00000000..202300bb
--- /dev/null
+++ b/testsuite/semko/procfs04.stp
@@ -0,0 +1,6 @@
+#! stap -p2
+
+# write to $value in a procfs write probe
+probe procfs.write {
+ $value = "hi"
+}
diff --git a/testsuite/semko/procfs05.stp b/testsuite/semko/procfs05.stp
new file mode 100755
index 00000000..f7861f2c
--- /dev/null
+++ b/testsuite/semko/procfs05.stp
@@ -0,0 +1,7 @@
+#! stap -p2
+
+# read from $value in a procfs read probe
+probe procfs.read {
+ x = $value
+ printf("%s\n", x)
+}