Changeset View
Changeset View
Standalone View
Standalone View
cddl/usr.sbin/dwatch/examples/profile_template
- This file was added.
| Property | Old Value | New Value |
|---|---|---|
| svn:keywords | null | FreeBSD=%H \ No newline at end of property |
| # -*- 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-2017 Devin Teske. All rights reserved. $ | |||||
| # $FreeBSD$ | |||||
| # | |||||
| ############################################################ DESCRIPTION | |||||
| # | |||||
| # XXX | |||||
| # | |||||
| ############################################################ PROBE | |||||
| # Optional: For profiles, dwatch(8) initializes this to the first probe found | |||||
| # by `dtrace -ln $PROFILE:entry' where $PROFILE is the basename of this file. | |||||
| # You can override this to `[provider:[module:]]function' as needed. | |||||
| #PROBE= | |||||
| ############################################################ ACTIONS | |||||
| # Optional actions to be performed before hitting the final print action | |||||
| #exec 9<<EOF | |||||
| #EOF | |||||
| #ACTIONS=$( cat <&9 ) | |||||
| #ID= | |||||
| ############################################################ EVENT ACTION | |||||
| # The default value is simply `entry'. This is paired with $PROBE and can be | |||||
| # customized to include clauses for the final print action which must be true | |||||
| # before the print action will run. | |||||
| #EVENT= | |||||
| ############################################################ 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 | |||||
| ################################################################################ | |||||