Debian Codegraph @

testsuite/systemtap.examples/process/schedtimes.meta

raw
1 title: Track Time Processes Spend in Various States Using Tracepoints
2 name: schedtimes.stp
3 version: 1.0
4 author: Jason Baron
5 keywords: process scheduler time tracepoint
6 subsystem: scheduler
7 status: production
8 exit: user-controlled
9 output: sorted-list
10 scope: system-wide
11 description: The schedtimes.stp script instruments the scheduler to track the amount of time that each process spends in running, sleeping, queuing, 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 and its children.
12 test_support: stap -l 'kernel.trace("sched_switch")' && stap -l 'kernel.trace("sched_wakeup")'
13 test_check: stap -p4 schedtimes.stp
14 test_installcheck: stap schedtimes.stp -T 1