]> sourceware.org Git - systemtap.git/commitdiff
Added kprocess.stp testcases.
authorDavid Smith <dsmith@redhat.com>
Fri, 25 Jun 2010 16:32:02 +0000 (11:32 -0500)
committerDavid Smith <dsmith@redhat.com>
Fri, 25 Jun 2010 16:32:02 +0000 (11:32 -0500)
* testsuite/buildok/kprocess-all-probes.stp: Renamed from
  process-all-probes.stp and uses wildcards.
* testsuite/buildok/kprocess-detailed.stp: New testcase.
* testsuite/buildok/kprocess-embedded.stp: Ditto.

testsuite/buildok/kprocess-all-probes.stp [new file with mode: 0755]
testsuite/buildok/kprocess-detailed.stp [new file with mode: 0755]
testsuite/buildok/kprocess-embedded.stp [new file with mode: 0755]
testsuite/buildok/process-all-probes.stp [deleted file]

diff --git a/testsuite/buildok/kprocess-all-probes.stp b/testsuite/buildok/kprocess-all-probes.stp
new file mode 100755 (executable)
index 0000000..ae91cc8
--- /dev/null
@@ -0,0 +1,7 @@
+#! stap -wp4
+
+// Tests if all probes in the process tapset are resolvable.
+
+probe kprocess.*
+{
+}
diff --git a/testsuite/buildok/kprocess-detailed.stp b/testsuite/buildok/kprocess-detailed.stp
new file mode 100755 (executable)
index 0000000..c871935
--- /dev/null
@@ -0,0 +1,31 @@
+#! stap -p4
+
+probe kprocess.create
+{
+       printf("%p %d\n", task, new_pid)
+}
+
+probe kprocess.start
+{
+       printf("%s\n", pp())
+}
+
+probe kprocess.exec
+{
+       printf("%s\n", filename)
+}
+
+probe kprocess.exec_complete
+{
+       printf("%d %d\n", errno, success)
+}
+
+probe kprocess.exit
+{
+       printf("%d\n", code)
+}
+
+probe kprocess.release
+{
+       printf("%p %d\n", task, pid)
+}
diff --git a/testsuite/buildok/kprocess-embedded.stp b/testsuite/buildok/kprocess-embedded.stp
new file mode 100755 (executable)
index 0000000..a3e7262
--- /dev/null
@@ -0,0 +1,6 @@
+#! stap -p4
+
+probe begin
+{
+       printf("%d\n", _IS_ERR(0))
+}
diff --git a/testsuite/buildok/process-all-probes.stp b/testsuite/buildok/process-all-probes.stp
deleted file mode 100755 (executable)
index 354945b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#! stap -wp4
-
-// Tests if all probes in the process tapset are resolvable.
-
-probe   kprocess.create,
-        kprocess.start,
-        kprocess.exec,
-        kprocess.exec_complete,
-        kprocess.exit,
-        kprocess.release
-{
-}
This page took 0.029903 seconds and 5 git commands to generate.