aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.sbin/dwatch/examples/profile_template
blob: c5b357c3f9467cf65db73f88c81df185a6a8c971 (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- tab-width: 4 -*- ;; Emacs
# vi: set filetype=sh tabstop=8 shiftwidth=8 noexpandtab :: Vi/ViM
############################################################ IDENT(1)
#
# $Title: dwatch(8) profile for XXX entry $
# $Copyright: 2014-2018 Devin Teske. All rights reserved. $
#
############################################################ DESCRIPTION
#
# XXX
#
############################################################ PRAGMAS

# Optional: You can override the default pragmas (shown below)

#DTRACE_PRAGMA="
#	option quiet
#	option dynvarsize=16m
#	switchrate=10hz
#" # END-QUOTE

############################################################ PROBE

# Optional: dwatch(8) initializes this to the expanded probe arguments

#: ${PROBE:="XXX"}

############################################################ ACTIONS

# Optional actions to be performed before hitting the final print action

#exec 9<<EOF
#EOF
#ACTIONS=$( cat <&9 )
#ID=

############################################################ EVENT ACTION

# The default EVENT value is simply `entry'. This is paired with $PROBE.

#EVENT=

# Optional predicate which must be true before the event action will run

#EVENT_TEST=

############################################################ EVENT TAG

# The EVENT_TAG is run inside the print action after the timestamp has been
# printed. By default, `UID.GID CMD[PID]: ' of the process is printed.

#exec 9<<EOF
#EOF
#EVENT_TAG=$( cat <&9 )

############################################################ EVENT DETAILS

# The DETAILS are run after the EVENT_TAG and by default, the program name and
# arguments of the process hitting the EVENT action are shown. This can be
# customized to call-specific information because the `-v' flag of dwatch(8)
# can provide detailed process information for the EVENT action on lines below
# the DETAILS.
#
# NB: Should produce a single-line and not print a trailing newline.

#exec 9<<EOF
#	printf("XXX");
#EOF
#DETAILS=$( cat <&9 )

################################################################################
# END
################################################################################