summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok')
-rwxr-xr-xtestsuite/buildok/procfs01.stp12
1 files changed, 12 insertions, 0 deletions
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)
+}