diff --git a/cddl/usr.sbin/dwatch/libexec/chmod b/cddl/usr.sbin/dwatch/libexec/chmod index c2a3a93f193c..d131109a0d66 100644 --- a/cddl/usr.sbin/dwatch/libexec/chmod +++ b/cddl/usr.sbin/dwatch/libexec/chmod @@ -50,6 +50,7 @@ ID=$(( $ID + 1 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<mode, this->path); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/errno b/cddl/usr.sbin/dwatch/libexec/errno index e1d464144096..42fce4ab8faa 100644 --- a/cddl/usr.sbin/dwatch/libexec/errno +++ b/cddl/usr.sbin/dwatch/libexec/errno @@ -22,6 +22,7 @@ ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<bio_length == 1 ? "" : "s"); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/ip b/cddl/usr.sbin/dwatch/libexec/ip index 40ab601403fe..49f3b0227ed3 100644 --- a/cddl/usr.sbin/dwatch/libexec/ip +++ b/cddl/usr.sbin/dwatch/libexec/ip @@ -76,6 +76,7 @@ EVENT_TAG=$( cat <&9 ) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<length == 1 ? "" : "s"); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/kill b/cddl/usr.sbin/dwatch/libexec/kill index 1f315a990dd7..c30e951381c3 100644 --- a/cddl/usr.sbin/dwatch/libexec/kill +++ b/cddl/usr.sbin/dwatch/libexec/kill @@ -32,6 +32,7 @@ ID=$(( $ID + 1 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<sig, this->pid); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/nanosleep b/cddl/usr.sbin/dwatch/libexec/nanosleep index cd1f2aa01343..acc4cf352af7 100644 --- a/cddl/usr.sbin/dwatch/libexec/nanosleep +++ b/cddl/usr.sbin/dwatch/libexec/nanosleep @@ -38,6 +38,7 @@ ID=$(( $ID + 1 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<requested_sec, this->requested_nsec / 100000); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/open b/cddl/usr.sbin/dwatch/libexec/open index 87eaa9b05b86..5185a97aca03 100644 --- a/cddl/usr.sbin/dwatch/libexec/open +++ b/cddl/usr.sbin/dwatch/libexec/open @@ -42,6 +42,7 @@ ID=$(( $ID + 1 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<path); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/proc b/cddl/usr.sbin/dwatch/libexec/proc index 3077527ff736..0f67394a84d5 100644 --- a/cddl/usr.sbin/dwatch/libexec/proc +++ b/cddl/usr.sbin/dwatch/libexec/proc @@ -149,6 +149,7 @@ ID=$(( $ID + 10 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/rw b/cddl/usr.sbin/dwatch/libexec/rw index 7ba36ae98818..32aa58c34f15 100644 --- a/cddl/usr.sbin/dwatch/libexec/rw +++ b/cddl/usr.sbin/dwatch/libexec/rw @@ -55,6 +55,7 @@ ID=$(( $ID + 1 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<nbytes == 1 ? "" : "s"); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/sched b/cddl/usr.sbin/dwatch/libexec/sched index 7eab380c329c..acbe47d92989 100644 --- a/cddl/usr.sbin/dwatch/libexec/sched +++ b/cddl/usr.sbin/dwatch/libexec/sched @@ -94,6 +94,7 @@ ID=$(( $ID + 6 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/sendrecv b/cddl/usr.sbin/dwatch/libexec/sendrecv index e2c4aa0feb78..598344d95a9d 100644 --- a/cddl/usr.sbin/dwatch/libexec/sendrecv +++ b/cddl/usr.sbin/dwatch/libexec/sendrecv @@ -197,6 +197,7 @@ ID=$(( $ID + 5 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/tcp b/cddl/usr.sbin/dwatch/libexec/tcp index e86e17ea04c9..94226ca43046 100644 --- a/cddl/usr.sbin/dwatch/libexec/tcp +++ b/cddl/usr.sbin/dwatch/libexec/tcp @@ -212,6 +212,7 @@ EVENT_TAG=$( cat <&9 ) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/udp b/cddl/usr.sbin/dwatch/libexec/udp index d6e031025dae..134a95b7fca8 100644 --- a/cddl/usr.sbin/dwatch/libexec/udp +++ b/cddl/usr.sbin/dwatch/libexec/udp @@ -90,6 +90,7 @@ EVENT_TAG=$( cat <&9 ) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<length == 1 ? "" : "s"); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/vop_create b/cddl/usr.sbin/dwatch/libexec/vop_create index fe971e71d1f0..3c544815b758 100644 --- a/cddl/usr.sbin/dwatch/libexec/vop_create +++ b/cddl/usr.sbin/dwatch/libexec/vop_create @@ -181,6 +181,7 @@ EVENT_TEST="this->fi_mount != 0" ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<path); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/vop_readdir b/cddl/usr.sbin/dwatch/libexec/vop_readdir index c760ea8e49b6..7a34e420133e 100644 --- a/cddl/usr.sbin/dwatch/libexec/vop_readdir +++ b/cddl/usr.sbin/dwatch/libexec/vop_readdir @@ -173,6 +173,7 @@ EVENT_TEST="this->fi_mount != 0" ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<path); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/vop_rename b/cddl/usr.sbin/dwatch/libexec/vop_rename index a1263ba4578e..a9dbf16e73fa 100644 --- a/cddl/usr.sbin/dwatch/libexec/vop_rename +++ b/cddl/usr.sbin/dwatch/libexec/vop_rename @@ -287,6 +287,7 @@ EVENT_TEST="this->ffi_mount != 0 && this->tfi_mount != 0" ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9< %s", this->fpath, this->tpath); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END diff --git a/cddl/usr.sbin/dwatch/libexec/vop_symlink b/cddl/usr.sbin/dwatch/libexec/vop_symlink index a2a155a41436..ca75d350af47 100644 --- a/cddl/usr.sbin/dwatch/libexec/vop_symlink +++ b/cddl/usr.sbin/dwatch/libexec/vop_symlink @@ -182,6 +182,7 @@ EVENT_TEST="this->fi_mount != 0" ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9< %s", this->path, this->target); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END