| 1 |
title: Show the Period of the Various Timers on the System |
| 2 |
name: periodic.stp |
| 3 |
version: 1.0 |
| 4 |
author: William Cohen |
| 5 |
keywords: profiling |
| 6 |
subsystem: any |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: sorted-list |
| 10 |
scope: system-wide |
| 11 |
description: The periodic.stp script uses the kernel.trace("timer_expire_entry") tracepoint to collect data on period and frequency of the various timers on the system. The script displays a sorted list of the timers observed on the system from most frequent to least frequent. The script needs to be compiled with the '--all-modules' option to produce list the function names. Optionally, this script can be used with a numerical argument to indicate the interval in seconds between printing output. |
| 12 |
test_support: stap -l 'kernel.trace("timer_expire_entry")' |
| 13 |
test_check: stap -p4 --all-modules periodic.stp |
| 14 |
test_installcheck: stap periodic.stp --all-modules -T 1 |