FreeBSD Bugzilla – Attachment 194478 Details for
Bug 228669
CLOCK_PROCESS_CPUTIME_ID is unnecessarily inaccurate
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Revised based on feedback from kib (2nd try to attach this...)
process_cputime.patch (text/plain), 442 bytes, created by
Colin Percival
on 2018-06-22 10:03:44 UTC
(
hide
)
Description:
Revised based on feedback from kib (2nd try to attach this...)
Filename:
MIME Type:
Creator:
Colin Percival
Created:
2018-06-22 10:03:44 UTC
Size:
442 bytes
patch
obsolete
>Index: sys/kern/kern_time.c >=================================================================== >--- sys/kern/kern_time.c (revision 335517) >+++ sys/kern/kern_time.c (working copy) >@@ -280,6 +280,8 @@ > PROC_STATLOCK(targetp); > rufetch(targetp, &ru); > runtime = targetp->p_rux.rux_runtime; >+ if (curthread->td_proc == targetp) >+ runtime += cpu_ticks() - PCPU_GET(switchtime); > PROC_STATUNLOCK(targetp); > cputick2timespec(runtime, ats); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228669
:
194476
|
194477
| 194478