From owner-svn-src-head@freebsd.org Sat May 12 06:01:46 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B25A4FC3E4B; Sat, 12 May 2018 06:01:45 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 31C948914F; Sat, 12 May 2018 06:01:45 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 11F581A789; Sat, 12 May 2018 06:01:45 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4C61ill037535; Sat, 12 May 2018 06:01:44 GMT (envelope-from dteske@FreeBSD.org) Received: (from dteske@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4C61f9g037517; Sat, 12 May 2018 06:01:41 GMT (envelope-from dteske@FreeBSD.org) Message-Id: <201805120601.w4C61f9g037517@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dteske set sender to dteske@FreeBSD.org using -f From: Devin Teske Date: Sat, 12 May 2018 06:01:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333517 - head/cddl/usr.sbin/dwatch/libexec X-SVN-Group: head X-SVN-Commit-Author: dteske X-SVN-Commit-Paths: head/cddl/usr.sbin/dwatch/libexec X-SVN-Commit-Revision: 333517 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2018 06:01:46 -0000 Author: dteske Date: Sat May 12 06:01:41 2018 New Revision: 333517 URL: https://svnweb.freebsd.org/changeset/base/333517 Log: dwatch(1): Allow `-E code' to override profile EVENT_DETAILS This allows quick changes to the formatted output of a profile. Sponsored by: Smule, Inc. Modified: head/cddl/usr.sbin/dwatch/libexec/chmod head/cddl/usr.sbin/dwatch/libexec/errno head/cddl/usr.sbin/dwatch/libexec/io head/cddl/usr.sbin/dwatch/libexec/ip head/cddl/usr.sbin/dwatch/libexec/kill head/cddl/usr.sbin/dwatch/libexec/nanosleep head/cddl/usr.sbin/dwatch/libexec/open head/cddl/usr.sbin/dwatch/libexec/proc head/cddl/usr.sbin/dwatch/libexec/rw head/cddl/usr.sbin/dwatch/libexec/sched head/cddl/usr.sbin/dwatch/libexec/sendrecv head/cddl/usr.sbin/dwatch/libexec/tcp head/cddl/usr.sbin/dwatch/libexec/udp head/cddl/usr.sbin/dwatch/libexec/vop_create head/cddl/usr.sbin/dwatch/libexec/vop_readdir head/cddl/usr.sbin/dwatch/libexec/vop_rename head/cddl/usr.sbin/dwatch/libexec/vop_symlink Modified: head/cddl/usr.sbin/dwatch/libexec/chmod ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/chmod Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/chmod Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/errno ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/errno Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/errno Sat May 12 06:01:41 2018 (r333517) @@ -22,6 +22,7 @@ ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<bio_length == 1 ? "" : "s"); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END Modified: head/cddl/usr.sbin/dwatch/libexec/ip ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/ip Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/ip Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/kill ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/kill Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/kill Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/nanosleep ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/nanosleep Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/nanosleep Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/open ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/open Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/open Sat May 12 06:01:41 2018 (r333517) @@ -42,6 +42,7 @@ ID=$(( $ID + 1 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<path); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END Modified: head/cddl/usr.sbin/dwatch/libexec/proc ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/proc Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/proc Sat May 12 06:01:41 2018 (r333517) @@ -149,6 +149,7 @@ ID=$(( $ID + 10 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END Modified: head/cddl/usr.sbin/dwatch/libexec/rw ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/rw Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/rw Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/sched ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/sched Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/sched Sat May 12 06:01:41 2018 (r333517) @@ -94,6 +94,7 @@ ID=$(( $ID + 6 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END Modified: head/cddl/usr.sbin/dwatch/libexec/sendrecv ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/sendrecv Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/sendrecv Sat May 12 06:01:41 2018 (r333517) @@ -197,6 +197,7 @@ ID=$(( $ID + 5 )) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END Modified: head/cddl/usr.sbin/dwatch/libexec/tcp ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/tcp Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/tcp Sat May 12 06:01:41 2018 (r333517) @@ -212,6 +212,7 @@ EVENT_TAG=$( cat <&9 ) ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9<details); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END Modified: head/cddl/usr.sbin/dwatch/libexec/udp ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/udp Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/udp Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/vop_create ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/vop_create Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/vop_create Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/vop_readdir ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/vop_readdir Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/vop_readdir Sat May 12 06:01:41 2018 (r333517) @@ -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 Modified: head/cddl/usr.sbin/dwatch/libexec/vop_rename ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/vop_rename Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/vop_rename Sat May 12 06:01:41 2018 (r333517) @@ -287,6 +287,7 @@ EVENT_TEST="this->ffi_mount != 0 && this->tfi_mount != ############################################################ EVENT DETAILS +if [ ! "$CUSTOM_DETAILS" ]; then exec 9< %s", this->fpath, this->tpath); EOF EVENT_DETAILS=$( cat <&9 ) +fi ################################################################################ # END Modified: head/cddl/usr.sbin/dwatch/libexec/vop_symlink ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/vop_symlink Sat May 12 05:49:31 2018 (r333516) +++ head/cddl/usr.sbin/dwatch/libexec/vop_symlink Sat May 12 06:01:41 2018 (r333517) @@ -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