| 1 |
title: Trace Time Spent in Nanosleep Syscalls |
| 2 |
name: sleeptime.stp |
| 3 |
version: 1.0 |
| 4 |
author: Daniel Berrange and Will Cohen |
| 5 |
keywords: syscall nanosleep |
| 6 |
subsystem: syscall |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: trace |
| 10 |
scope: system-wide |
| 11 |
description: The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in parentheses, the "nanosleep:" key, and the duration of the sleep in microseconds. |
| 12 |
test_check: stap -p4 sleeptime.stp |
| 13 |
test_installcheck: stap sleeptime.stp -T 1 |