Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > e2ec330d3ecf5110b4aa890342e53d96 > files > 784

systemtap-client-2.1-2.fc17.i686.rpm

title: Count I/O Syscalls using Alias Suffixes
name: alias_suffixes.stp
keywords: io statistics
subsystem: io
status: experimental
exit: user-controlled
output: on-exit
scope: system-wide
description: alias_suffixes.stp is a demonstration of how alias suffixes in the systemtap language might be used. The script tracks the wall clock time for each invocation of the system calls open, close, read, and write. When the script exists it prints out the minimum, average, and maximum times in microseconds for each system call, followed by a count of times that each syscall was invoked and a histogram showing the distributions of times.
test_check: stap -p4 alias_suffixes.stp
test_installcheck: stap alias_suffixes.stp -c "sleep 0.2"