newproc_example.txt   [plain text]


The following is an example of the newproc.d script,

   # ./newproc.d
   dtrace: description 'proc:::exec-success ' matched 1 probe
   CPU     ID                    FUNCTION:NAME
     0   3297         exec_common:exec-success   man ls
     0   3297         exec_common:exec-success   sh -c cd /usr/share/man; tbl /usr/share/man/man1/ls.1 |neqn /usr/share/lib/pub/
     0   3297         exec_common:exec-success   tbl /usr/share/man/man1/ls.1
     0   3297         exec_common:exec-success   neqn /usr/share/lib/pub/eqnchar -
     0   3297         exec_common:exec-success   nroff -u0 -Tlp -man -
     0   3297         exec_common:exec-success   col -x
     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
     0   3297         exec_common:exec-success   /usr/bin/mv -f /tmp/mpzIaOZF /usr/share/man/cat1/ls.1
     0   3297         exec_common:exec-success   sh -c more -s /tmp/mpzIaOZF
     0   3297         exec_common:exec-success   more -s /tmp/mpzIaOZF

The above output was caught when running "man ls". This identifies all the
commands responsible for processing the man page.