From owner-svn-src-all@freebsd.org Thu Mar 8 22:32:19 2018 Return-Path: Delivered-To: svn-src-all@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 75330F373AF; Thu, 8 Mar 2018 22:32:19 +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 BC51274620; Thu, 8 Mar 2018 22:32:18 +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 B74EB16E80; Thu, 8 Mar 2018 22:32:18 +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 w28MWIcF033217; Thu, 8 Mar 2018 22:32:18 GMT (envelope-from dteske@FreeBSD.org) Received: (from dteske@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w28MWItd033216; Thu, 8 Mar 2018 22:32:18 GMT (envelope-from dteske@FreeBSD.org) Message-Id: <201803082232.w28MWItd033216@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dteske set sender to dteske@FreeBSD.org using -f From: Devin Teske Date: Thu, 8 Mar 2018 22:32:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330672 - 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: 330672 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2018 22:32:19 -0000 Author: dteske Date: Thu Mar 8 22:32:18 2018 New Revision: 330672 URL: https://svnweb.freebsd.org/changeset/base/330672 Log: Fix display of wrong pid from dtrace_sched(4) Fix a comment while here. Sponsored by: Smule, Inc. Modified: head/cddl/usr.sbin/dwatch/libexec/sched Modified: head/cddl/usr.sbin/dwatch/libexec/sched ============================================================================== --- head/cddl/usr.sbin/dwatch/libexec/sched Thu Mar 8 22:04:54 2018 (r330671) +++ head/cddl/usr.sbin/dwatch/libexec/sched Thu Mar 8 22:32:18 2018 (r330672) @@ -66,7 +66,7 @@ sched:::enqueue /* probe ID $(( $ID + 2 )) */ sched:::change-pri, sched:::lend-pri /* probe ID $(( $ID + 3 )) */ {${TRACE:+ printf("<$(( $ID + 3 ))>");} - /* details = " -> arg2" */ + /* details = " -> " */ this->details = strjoin(lltostr(this->curprio), strjoin("->", lltostr((uint8_t)arg2))); } @@ -85,7 +85,7 @@ $PROBE /* probe ID $(( $ID + 5 )) */ /* details += " pid -- " */ this->details = strjoin(this->details, this->details == "" ? "" : " "); this->details = strjoin(this->details, strjoin( - strjoin("pid ", lltostr(this->pid_sched)), + strjoin("pid ", lltostr(this->pid)), strjoin(" -- ", this->args))); } EOF