summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/process/schedtimes.meta
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.examples/process/schedtimes.meta')
-rw-r--r--testsuite/systemtap.examples/process/schedtimes.meta13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/systemtap.examples/process/schedtimes.meta b/testsuite/systemtap.examples/process/schedtimes.meta
new file mode 100644
index 00000000..0074731f
--- /dev/null
+++ b/testsuite/systemtap.examples/process/schedtimes.meta
@@ -0,0 +1,13 @@
+title: Track Time Processes Spend in Various States using Tracepoints
+name: schedtimes.stp
+version: 1.0
+author: Jason Baron
+keywords: process scheduler time tracepoint
+subsystem: scheduler
+status: production
+exit: user-controlled
+output: sorted-list
+scope: system-wide
+description: The schedtimes.stp script instruments the scheduler to track the amount of time that each process spends running, sleeping, queued, and waiting for io. On exit the script prints out the accumulated time for each state of processes observed. Optionally, this script can be used with the '-c' or '-x' options to focus on a specific PID.
+test_check: stap -p4 schedtimes.stp
+test_installcheck: stap schedtimes.stp -c "sleep 1"