summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/task_test.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok/task_test.stp')
-rwxr-xr-xtestsuite/buildok/task_test.stp18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/buildok/task_test.stp b/testsuite/buildok/task_test.stp
new file mode 100755
index 00000000..692745f7
--- /dev/null
+++ b/testsuite/buildok/task_test.stp
@@ -0,0 +1,18 @@
+#! stap -p4
+
+probe begin {
+ c = task_current()
+ log(string(task_parent(c)))
+ log(string(task_state(c)))
+ log(task_execname(c))
+ log(string(task_pid(c)))
+ log(string(task_tid(c)))
+ log(string(task_gid(c)))
+ log(string(task_egid(c)))
+ log(string(task_uid(c)))
+ log(string(task_euid(c)))
+ log(string(task_prio(c)))
+ log(string(task_nice(c)))
+ log(string(task_cpu(c)))
+ exit()
+}