diff options
-rw-r--r-- | testsuite/ChangeLog | 10 | ||||
-rwxr-xr-x | testsuite/buildok/procfs01.stp | 12 | ||||
-rwxr-xr-x | testsuite/semko/procfs01.stp | 3 | ||||
-rwxr-xr-x | testsuite/semko/procfs02.stp | 3 | ||||
-rwxr-xr-x | testsuite/semko/procfs03.stp | 3 | ||||
-rwxr-xr-x | testsuite/semko/procfs04.stp | 6 | ||||
-rwxr-xr-x | testsuite/semko/procfs05.stp | 7 |
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) +} |