Date: Mon, 24 Aug 2020 14:48:58 +0000 From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 240990] Linuxulator: CLOCK_THREAD_CPUTIME_ID and CLOCK_PROCESS_CPUTIME_ID are missing Message-ID: <bug-240990-4077-7HOjoiTW09@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-240990-4077@https.bugs.freebsd.org/bugzilla/> References: <bug-240990-4077@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=3D240990 --- Comment #4 from commit-hook@FreeBSD.org --- A commit references this bug: Author: trasz Date: Mon Aug 24 14:48:54 UTC 2020 New revision: 364689 URL: https://svnweb.freebsd.org/changeset/base/364689 Log: MFC r357493 by dchagin: Fix clock_gettime() and clock_getres() for cpu clocks: - handle the CLOCK_{PROCESS,THREAD}_CPUTIME_ID specified directly; - fix thread id calculation as in the Linuxulator we should convert the user supplied thread id to struct thread * by linux_tdfind(= ); - fix CPUCLOCK_SCHED case by using kern_{process,thread}_cputime() directly as native get_cputime() used by kern_clock_gettime() uses native tdfind()/pfind() to find proccess/thread. PR: 240990 Changes: _U stable/12/ stable/12/sys/compat/linux/linux_time.c --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240990-4077-7HOjoiTW09>