Fix display of wrong pid from dtrace_sched(4)

Fix a comment while here.

Sponsored by:	Smule, Inc.
This commit is contained in:
Devin Teske 2018-03-08 22:32:18 +00:00
parent 23fda0ad66
commit 76a4e1dc81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330672

View File

@ -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