| 1 |
Examples of opensnoop-nd.stp, the Linux SystemTap version. |
| 2 |
|
| 3 |
|
| 4 |
This shows the files opened by an "iostat -x 1" command, using opensnoop-nd.stp: |
| 5 |
|
| 6 |
# ./opensnoop-nd.stp |
| 7 |
UID PID COMM FD PATH |
| 8 |
0 13858 iostat 3 /etc/ld.so.cache |
| 9 |
0 13858 iostat 3 /lib64/libc.so.6 |
| 10 |
0 13858 iostat 3 /usr/lib/locale/locale-archive |
| 11 |
0 13858 iostat 3 /sys/devices/system/cpu |
| 12 |
0 13858 iostat 3 /proc/diskstats |
| 13 |
0 13858 iostat 3 /etc/localtime |
| 14 |
0 13858 iostat 3 /proc/uptime |
| 15 |
0 13858 iostat 3 /proc/stat |
| 16 |
0 13858 iostat 3 /proc/diskstats |
| 17 |
0 13858 iostat 4 /etc/sysconfig/sysstat.ioconf |
| 18 |
0 13858 iostat 3 /proc/uptime |
| 19 |
0 13858 iostat 3 /proc/stat |
| 20 |
0 13858 iostat 3 /proc/diskstats |
| 21 |
[...] |
| 22 |
|
| 23 |
This can be a handy way to locate configuration files and source files. The |
| 24 |
output includes /proc pathnames where the iostat statistics are sourced, as |
| 25 |
well as /etc/sysconfig/sysstat.ioconf, a configuration file. |