summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
diff options
context:
space:
mode:
authorfche <fche>2005-07-28 18:42:58 +0000
committerfche <fche>2005-07-28 18:42:58 +0000
commit3d49c6154591958c1e12f70aa5b89de70e8fb988 (patch)
treea08853945b533ccc2a64c48e5e4f60400f07806b /testsuite/buildok
parent24cb178fd82936f55d254ebd0cd79802da21134a (diff)
downloadsystemtap-steved-3d49c6154591958c1e12f70aa5b89de70e8fb988.tar.gz
systemtap-steved-3d49c6154591958c1e12f70aa5b89de70e8fb988.tar.xz
systemtap-steved-3d49c6154591958c1e12f70aa5b89de70e8fb988.zip
2005-07-28 Frank Ch. Eigler <fche@redhat.com>
* translate.cxx: Add "pt_regs*" field to context. * tapsets.cxx (*): Correct kprobes API interface. * testsuite/buildok/three.stp: New test, copied from semok. * Makefile.am (install-data-local): Also install runtime/relayfs, so scripts can build against headers located thereunder. * Makefile.in: Regenerated.
Diffstat (limited to 'testsuite/buildok')
-rwxr-xr-xtestsuite/buildok/three.stp25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/buildok/three.stp b/testsuite/buildok/three.stp
new file mode 100755
index 00000000..013b5ac5
--- /dev/null
+++ b/testsuite/buildok/three.stp
@@ -0,0 +1,25 @@
+#! stap -p4
+
+# define some aliases which resolve to kernel functions
+
+probe pipe_read = kernel.function("pipe_read")
+{
+ fname = "pipe_read"
+ reading_from_pipe = 1
+}
+
+probe pipe_write = kernel.function("pipe_write")
+{
+ fname = "pipe_write"
+ reading_from_pipe = 0
+}
+
+# use the aliases, including variables defined in them
+
+probe pipe_read, pipe_write
+{
+ if (reading_from_pipe)
+ log ("reading from pipe in " . fname)
+ else
+ log ("writing to pipe in " . fname)
+}