From c01bb1ec6d4d3d747975a9e4d16b1df9a938bc2f Mon Sep 17 00:00:00 2001 From: William Cohen Date: Thu, 8 May 2008 17:48:24 -0400 Subject: * iotime.meta: New. --- testsuite/systemtap.examples/ChangeLog | 4 ++++ testsuite/systemtap.examples/iotime.meta | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 testsuite/systemtap.examples/iotime.meta (limited to 'testsuite/systemtap.examples') diff --git a/testsuite/systemtap.examples/ChangeLog b/testsuite/systemtap.examples/ChangeLog index c05123cb..8d8c2ca1 100644 --- a/testsuite/systemtap.examples/ChangeLog +++ b/testsuite/systemtap.examples/ChangeLog @@ -1,3 +1,7 @@ +2008-05-08 William Cohen + + * iotime.meta: New. + 2008-05-08 William Cohen * sleeptime.meta, wait4time.meta: New. diff --git a/testsuite/systemtap.examples/iotime.meta b/testsuite/systemtap.examples/iotime.meta new file mode 100644 index 00000000..4c1971f5 --- /dev/null +++ b/testsuite/systemtap.examples/iotime.meta @@ -0,0 +1,13 @@ +title: Trace Time Spent in Read and Write for Files +name: iotime.stp +version: 1.0 +author: Daniel Berrange and Will Cohen +keywords: syscall read write time io +subsystem: syscall +status: production +exit: user-controlled +output: trace +scope: system-wide +description: The script watches each open, close, read and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the number of bytes attempted for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls. +test_check: stap -p4 iotime.stp +test_installcheck: stap iotime.stp -c "sleep 1" -- cgit