xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Examples/creatbyproc_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is an example of the creatbyproc.d script,
2
3
4Here 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
14In another window, the following commands were run,
15
16	touch /tmp/newfile
17	man ls
18
19The file creation activity caused by these commands can be seen in the
20output by creatbyproc.d
21
22
23
24