aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/dtracetoolkit/Examples/creatbyproc_example.txt
blob: 295e07ff2fbb67a3f375b4795c555d756ab64ab1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
The following is an example of the creatbyproc.d script,


Here we run creatbyproc.d for several seconds,

   # ./creatbyproc.d
   dtrace: script './creatbyproc.d' matched 2 probes
   CPU     ID                    FUNCTION:NAME
     0   5438                    creat64:entry touch /tmp/newfile
     0   5438                    creat64:entry sh /tmp/mpLaaOik
     0   5438                    creat64:entry sh /dev/null
   ^C

In another window, the following commands were run,

	touch /tmp/newfile
	man ls

The file creation activity caused by these commands can be seen in the
output by creatbyproc.d