]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/pathopens_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / pathopens_example.txt
1 The following is a demonstration of the pathopens.d script,
2
3
4 Here 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
27 In the above output, many of the files would have been opened using 
28 absolute pathnames. However the "dexplorer" file was opened using a relative
29 pathname - and the pathopens.d script has correctly printed the full path.
30
31 The above shows that the outfile.sah file was opened successfully 8 times.
32