]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/newproc_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / newproc_example.txt
1 The following is an example of the newproc.d script,
2
3    # ./newproc.d
4    dtrace: description 'proc:::exec-success ' matched 1 probe
5    CPU     ID                    FUNCTION:NAME
6      0   3297         exec_common:exec-success   man ls
7      0   3297         exec_common:exec-success   sh -c cd /usr/share/man; tbl /usr/share/man/man1/ls.1 |neqn /usr/share/lib/pub/
8      0   3297         exec_common:exec-success   tbl /usr/share/man/man1/ls.1
9      0   3297         exec_common:exec-success   neqn /usr/share/lib/pub/eqnchar -
10      0   3297         exec_common:exec-success   nroff -u0 -Tlp -man -
11      0   3297         exec_common:exec-success   col -x
12      0   3297         exec_common:exec-success   sh -c trap '' 1 15; /usr/bin/mv -f/tmp/mpzIaOZF /usr/share/man/cat1/ls.1 2> /d
13      0   3297         exec_common:exec-success   /usr/bin/mv -f /tmp/mpzIaOZF /usr/share/man/cat1/ls.1
14      0   3297         exec_common:exec-success   sh -c more -s /tmp/mpzIaOZF
15      0   3297         exec_common:exec-success   more -s /tmp/mpzIaOZF
16
17 The above output was caught when running "man ls". This identifies all the
18 commands responsible for processing the man page.
19