summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-10-09 23:23:12 +0200
committerMark Wielaard <mjw@redhat.com>2009-10-09 23:28:57 +0200
commit0670efc6debceea57084547976c229335cc0e2fd (patch)
tree52e084abd8473570c49e2e67916197bbc4208299 /testsuite
parenteb5363b8f07d51caeb263c6a686c9a2556aa4c05 (diff)
downloadsystemtap-steved-0670efc6debceea57084547976c229335cc0e2fd.tar.gz
systemtap-steved-0670efc6debceea57084547976c229335cc0e2fd.tar.xz
systemtap-steved-0670efc6debceea57084547976c229335cc0e2fd.zip
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.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/buildok/task_test.stp8
1 files changed, 8 insertions, 0 deletions
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()
}