title: Show the Period of the Various Timers on the System
name: periodic.stp
version: 1.0
author: William Cohen
keywords: profiling
subsystem: any
status: production
exit: user-controlled
output: sorted-list
scope: system-wide
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.
test_support: stap -l 'kernel.trace("timer_expire_entry")'
test_check: stap -p4 --all-modules periodic.stp
test_installcheck: stap periodic.stp --all-modules -T 1
