| 1 |
title: Display the Task Switches Happening in the Scheduler |
| 2 |
name: sched_switch.stp |
| 3 |
version: 1.0 |
| 4 |
author: kiran |
| 5 |
keywords: profiling function |
| 6 |
subsystem: scheduler |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: trace |
| 10 |
scope: system-wide |
| 11 |
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 schedule out the current process being traced, and when it gets scheduled in again. |
| 12 |
test_check: stap -p4 sched_switch.stp |
| 13 |
test_installcheck: stap sched_switch.stp -T 1 |