From 7b7fb26004f91f06cdbcb872d18e9e87e8708ad0 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Thu, 12 Jun 2008 17:53:05 -0400 Subject: Add thread-times.meta and thread-times.stp. --- testsuite/systemtap.examples/thread-times.meta | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testsuite/systemtap.examples/thread-times.meta (limited to 'testsuite/systemtap.examples/thread-times.meta') diff --git a/testsuite/systemtap.examples/thread-times.meta b/testsuite/systemtap.examples/thread-times.meta new file mode 100644 index 00000000..fcbf062e --- /dev/null +++ b/testsuite/systemtap.examples/thread-times.meta @@ -0,0 +1,13 @@ +title: Profile kernel functions +name: thread-times.stp +version: 1.0 +author: anonymous +keywords: profiling +subsystem: kernel +status: production +exit: user-controlled +output: sorted-list +scope: system-wide +description: The thread-times.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top twenty processes with samples broken down into percentage total time spent in user-space and kernel-space. +test_check: stap -p4 thread-times.stp +test_installcheck: stap thread-times.stp -c "sleep 1" -- cgit