HomeFreeBSD

thread0: Clear td_rux stats in proc0_post

Description

thread0: Clear td_rux stats in proc0_post

proc0_post aims to reset the CPU usage accounting for all threads and
processes in the system to zero once the time of day is verified.
However, not all of the per-thread stats were not being cleared,
resulting in over-reported time for thread0 post-boot.

Reviewed by: olce, kib, markj
Fixes: bed4c5241663 ("Implement RUSAGE_THREAD. Add td_rux...")
Differential Revision: https://reviews.freebsd.org/D54040
(cherry picked from commit dafe50ebd874ca3ccd5908c441cee9f478c501f0)

Details

Provenance
jhbAuthored on Mon, Dec 8, 4:15 PM
Reviewer
olce
Differential Revision
D54040: thread0: Clear td_rux stats in proc0_post
Parents
rG5685988838e4: ruxreset: Add an inline function to reset all the stats in rusage_ext
Branches
Unknown
Tags
Unknown