[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-emulation
Subject: [Bug 240990] Linuxulator: CLOCK_THREAD_CPUTIME_ID and CLOCK_PROCESS_CPUTIME_ID are missing
From: bugzilla-noreply () freebsd ! org
Date: 2020-02-04 5:27:19
Message-ID: bug-240990-4077-R8srmmffj3 () https ! bugs ! freebsd ! org/bugzilla/
[Download RAW message or body]
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240990
--- Comment #3 from commit-hook@freebsd.org ---
A commit references this bug:
Author: dchagin
Date: Tue Feb 4 05:27:05 UTC 2020
New revision: 357493
URL: https://svnweb.freebsd.org/changeset/base/357493
Log:
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
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D23341
MFC after: 2 weeks
Changes:
head/sys/compat/linux/linux_time.c
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic