diff options
author | Kiran Prakesh <kiran@linux.vnet.ibm.com> | 2009-10-01 22:39:32 +0530 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-10-02 16:29:56 -0700 |
commit | ae3072f460693e85962556bf0529a729c7d97bf6 (patch) | |
tree | aab6a3db669060012aea4a5c6bdabe597eac6c74 /testsuite/systemtap.examples/profiling/sched_switch.meta | |
parent | a8f5a3bf344f9b014c5adf8b5eada10d09f31219 (diff) | |
download | systemtap-steved-ae3072f460693e85962556bf0529a729c7d97bf6.tar.gz systemtap-steved-ae3072f460693e85962556bf0529a729c7d97bf6.tar.xz systemtap-steved-ae3072f460693e85962556bf0529a729c7d97bf6.zip |
Scheduler Tapset based on kernel tracepoints
This patch adds kernel tracepoints based probes to the scheduler tapset
along with the testcase, scheduler-test-tracepoints.stp and an example
script, sched_switch.stp.
Signed-off-by: Kiran Prakash <kiran@linux.vnet.ibm.com>
Signed-off-by: Josh Stone <jistone@redhat.com>
Diffstat (limited to 'testsuite/systemtap.examples/profiling/sched_switch.meta')
-rw-r--r-- | testsuite/systemtap.examples/profiling/sched_switch.meta | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/systemtap.examples/profiling/sched_switch.meta b/testsuite/systemtap.examples/profiling/sched_switch.meta new file mode 100644 index 00000000..8f1a2858 --- /dev/null +++ b/testsuite/systemtap.examples/profiling/sched_switch.meta @@ -0,0 +1,14 @@ +title: Display the task switches happeningt the scheduler +name: sched_switch.stp +version: 1.0 +author: kiran +keywords: profiling functions +subsystem: kernel +status: production +exit: user-controlled +output: sorted-list on-exit +scope: system-wide +description: The sched_switch.stp script takes two arguments, first argument can be "pid" or "name" to indicate what is being passed as second argument. The script will trace the process based on pid/name and print the scheduler switches happening with the process. If no arguments are passed, it displays all the scheduler switches. This can be used to understand which tasks scheduler the current process being traced, out and when it gets scheduled in again. +test_check: stap -p4 sched_switch.stp +test_installcheck: stap sched_switch.stp -c "sleep 1" + |