dwatch(1): Fix "-t test" for post-processing profiles
Profiles that perform post-processing of the DTrace output were dropping the "-t test" option on the floor. Fix handling of this option for said profiles. X-MFC-to: stable/11 X-MFC-with: r334261-334262 Sponsored by: Smule, Inc.
This commit is contained in:
parent
3e0e6330b5
commit
7d958cc9aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334359
@ -47,7 +47,7 @@ DTRACE_PRAGMA="
|
|||||||
|
|
||||||
############################################################ GLOBALS
|
############################################################ GLOBALS
|
||||||
|
|
||||||
VERSION='$Version: 1.3 $' # -V
|
VERSION='$Version: 1.4 $' # -V
|
||||||
|
|
||||||
pgm="${0##*/}" # Program basename
|
pgm="${0##*/}" # Program basename
|
||||||
|
|
||||||
@ -576,8 +576,8 @@ load_profile()
|
|||||||
ARGV="$ARGV -z '$( shell_escape "$EXECREGEX" )'"
|
ARGV="$ARGV -z '$( shell_escape "$EXECREGEX" )'"
|
||||||
[ "$CUSTOM_DETAILS" ] &&
|
[ "$CUSTOM_DETAILS" ] &&
|
||||||
ARGV="$ARGV -E '$( shell_escape "$EVENT_DETAILS" )'"
|
ARGV="$ARGV -E '$( shell_escape "$EVENT_DETAILS" )'"
|
||||||
[ "$EVENT_TEST" ] &&
|
[ "$CUSTOM_TEST" ] &&
|
||||||
ARGV="$ARGV -t '$( shell_escape "$EVENT_TEST" )'"
|
ARGV="$ARGV -t '$( shell_escape "$CUSTOM_TEST" )'"
|
||||||
[ "$OUTPUT" ] &&
|
[ "$OUTPUT" ] &&
|
||||||
ARGV="$ARGV -o '$( shell_escape "$OUTPUT" )'"
|
ARGV="$ARGV -o '$( shell_escape "$OUTPUT" )'"
|
||||||
[ "$OUTPUT_CMD" ] &&
|
[ "$OUTPUT_CMD" ] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user