|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/doc/systemtap-client-1.8/examples/profiling/ |
Upload File : |
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 -c "sleep 0.2"