From 0670efc6debceea57084547976c229335cc0e2fd Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 9 Oct 2009 23:23:12 +0200 Subject: Add task_time tapset, functions to query time resource usage of current task. * tapset/task_time.stp: New tapset. * testsuite/buildok/task_test.stp: Add new task_time functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add new section on Task Time Tapset. Include tapset/task_time.stp. --- testsuite/buildok/task_test.stp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testsuite/buildok/task_test.stp') diff --git a/testsuite/buildok/task_test.stp b/testsuite/buildok/task_test.stp index 792f96ea..e391377f 100755 --- a/testsuite/buildok/task_test.stp +++ b/testsuite/buildok/task_test.stp @@ -18,5 +18,13 @@ probe begin { log(sprint(task_max_file_handles(c))) log(sprint(pid2task(pid()))) log(sprint(pid2execname(pid()))) + + // task_time.stp + log(task_time_string()) + log(cputime_to_string(0)) + log(msecs_to_string(0)) + log(sprint(cputime_to_msecs(0))) + log(sprint(task_stime())) + log(sprint(task_utime())) exit() } -- cgit