xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/pathopens_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the pathopens.d script,
2
3
4Here we run it for a few seconds then hit Ctrl-C,
5
6   # pathopens.d
7   Tracing... Hit Ctrl-C to end.
8   ^C
9    COUNT PATHNAME
10        1 /lib/libcmd.so.1
11        1 /export/home/root/DTrace/Dexplorer/dexplorer
12        1 /lib/libmd5.so.1
13        1 /lib/libaio.so.1
14        1 /lib/librt.so.1
15        1 /etc/security/prof_attr
16        1 /etc/mnttab
17        2 /devices/pseudo/devinfo@0:devinfo
18        2 /dev/kstat
19        2 /lib/libnvpair.so.1
20        2 /lib/libkstat.so.1
21        2 /lib/libdevinfo.so.1
22        2 /lib/libnsl.so.1
23        4 /lib/libc.so.1
24        4 /var/ld/ld.config
25        8 /export/home/brendan/Utils_solx86/setiathome-3.08.i386-pc-solaris2.6/outfile.sah
26
27In the above output, many of the files would have been opened using
28absolute pathnames. However the "dexplorer" file was opened using a relative
29pathname - and the pathopens.d script has correctly printed the full path.
30
31The above shows that the outfile.sah file was opened successfully 8 times.
32
33