EXAMPLES/general/alias_suffixes.meta
raw| 1 | title: Count I/O Syscalls using Alias Suffixes |
| 2 | name: alias_suffixes.stp |
| 3 | keywords: io statistics |
| 4 | subsystem: io |
| 5 | status: experimental |
| 6 | exit: user-controlled |
| 7 | output: on-exit |
| 8 | scope: system-wide |
| 9 | 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. |
| 10 | test_check: stap -p4 alias_suffixes.stp |
| 11 | test_installcheck: stap alias_suffixes.stp -T 1 |