summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2008-05-08 17:48:24 -0400
committerWilliam Cohen <wcohen@redhat.com>2008-05-08 17:48:24 -0400
commitc01bb1ec6d4d3d747975a9e4d16b1df9a938bc2f (patch)
treeeefa08461cf0b41b157fcf15db85ca9f0805b6e9 /testsuite/systemtap.examples
parent1cd26cfa5d1a8f12b4aff9aef06c8c5289d7334a (diff)
downloadsystemtap-steved-c01bb1ec6d4d3d747975a9e4d16b1df9a938bc2f.tar.gz
systemtap-steved-c01bb1ec6d4d3d747975a9e4d16b1df9a938bc2f.tar.xz
systemtap-steved-c01bb1ec6d4d3d747975a9e4d16b1df9a938bc2f.zip
* iotime.meta: New.
Diffstat (limited to 'testsuite/systemtap.examples')
-rw-r--r--testsuite/systemtap.examples/ChangeLog4
-rw-r--r--testsuite/systemtap.examples/iotime.meta13
2 files changed, 17 insertions, 0 deletions
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,5 +1,9 @@
2008-05-08 William Cohen <wcohen@redhat.com>
+ * iotime.meta: New.
+
+2008-05-08 William Cohen <wcohen@redhat.com>
+
* sleeptime.meta, wait4time.meta: New.
2008-05-08 Mark Wielaard <mwielaard@redhat.com>
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"