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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to