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

Details

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