Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2018 22:32:18 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
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
Message-ID:  <201803082232.w28MWItd033216@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 = "<curprio> -> arg2" */
+	/* details = "<curprio> -> <arg2>" */
 	this->details = strjoin(lltostr(this->curprio),
 		strjoin("->", lltostr((uint8_t)arg2)));
 }
@@ -85,7 +85,7 @@ $PROBE /* probe ID $(( $ID + 5 )) */
 	/* details += " pid <pid> -- <proc args of 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803082232.w28MWItd033216>