Fix display of wrong pid from dtrace_sched(4)
Fix a comment while here. Sponsored by: Smule, Inc.
This commit is contained in:
parent
23fda0ad66
commit
76a4e1dc81
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330672
@ -66,7 +66,7 @@ sched:::enqueue /* probe ID $(( $ID + 2 )) */
|
|||||||
sched:::change-pri, sched:::lend-pri /* probe ID $(( $ID + 3 )) */
|
sched:::change-pri, sched:::lend-pri /* probe ID $(( $ID + 3 )) */
|
||||||
{${TRACE:+
|
{${TRACE:+
|
||||||
printf("<$(( $ID + 3 ))>");}
|
printf("<$(( $ID + 3 ))>");}
|
||||||
/* details = "<curprio> -> arg2" */
|
/* details = "<curprio> -> <arg2>" */
|
||||||
this->details = strjoin(lltostr(this->curprio),
|
this->details = strjoin(lltostr(this->curprio),
|
||||||
strjoin("->", lltostr((uint8_t)arg2)));
|
strjoin("->", lltostr((uint8_t)arg2)));
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ $PROBE /* probe ID $(( $ID + 5 )) */
|
|||||||
/* details += " pid <pid> -- <proc args of pid>" */
|
/* details += " pid <pid> -- <proc args of pid>" */
|
||||||
this->details = strjoin(this->details, this->details == "" ? "" : " ");
|
this->details = strjoin(this->details, this->details == "" ? "" : " ");
|
||||||
this->details = strjoin(this->details, strjoin(
|
this->details = strjoin(this->details, strjoin(
|
||||||
strjoin("pid ", lltostr(this->pid_sched)),
|
strjoin("pid ", lltostr(this->pid)),
|
||||||
strjoin(" -- ", this->args)));
|
strjoin(" -- ", this->args)));
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user