]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/creatbyproc_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / creatbyproc_example.txt
1 The following is an example of the creatbyproc.d script,
2
3
4 Here we run creatbyproc.d for several seconds,
5
6    # ./creatbyproc.d
7    dtrace: script './creatbyproc.d' matched 2 probes
8    CPU     ID                    FUNCTION:NAME
9      0   5438                    creat64:entry touch /tmp/newfile
10      0   5438                    creat64:entry sh /tmp/mpLaaOik
11      0   5438                    creat64:entry sh /dev/null
12    ^C
13
14 In another window, the following commands were run,
15
16         touch /tmp/newfile
17         man ls
18
19 The file creation activity caused by these commands can be seen in the
20 output by creatbyproc.d
21
22
23