From 95bb018ba49d8d11c5b261b4fbac2d55dac7c9e2 Mon Sep 17 00:00:00 2001 From: jistone Date: Wed, 10 May 2006 00:47:59 +0000 Subject: 2006-05-09 Josh Stone * examples/small_demos/proc_snoop.stp: monitor all process events. * testsuite/buildok/task_test.stp: test compilation of all task functions. * testsuite/buildok/process_test.stp: test all process events and associated variables. --- testsuite/buildok/task_test.stp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 testsuite/buildok/task_test.stp (limited to 'testsuite/buildok/task_test.stp') 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() +} -- cgit