Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Mar 2022 15:47:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262273] Subsuquent Calls to clock_gettime(CLOCK_THREAD_CPUTIME_ID,... ) return time in the past
Message-ID:  <bug-262273-227-e6mSbq47iv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262273-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262273-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262273

--- Comment #9 from firk@cantconnect.ru ---
Created attachment 232188
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232188&action=
=3Dedit
attempt to fix the problem

Please try this patch to kernel.

Looks like it is a conflict between switchtime/runtime reading in
kern_thread_cputime() and switchtime/runtime updating in statclock(). Fixing
statclock will be to expensive, so just make workaround in
kern_thread_cputime().

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262273-227-e6mSbq47iv>