[PATCH gnumach] Track task and thread time using time_value64_t.

2023-03-14 Thread Flavio Cruz
Changed kern/timer.c to use the higher precision time_value64_t. Of course, this won't suffer from the 2038 overflow but it does provide nanosecond precision (if gnumach ever uses a better timer) and moves us closer to only having time_value64_t. --- include/mach/time_value.h | 5 +++ kern/mach_c

Re: [PATCH gnumach] Track task and thread time using time_value64_t.

2023-03-14 Thread Flávio Cruz
On Mon, Mar 13, 2023 at 3:41 PM Samuel Thibault wrote: > Hello, > > Flavio Cruz, le lun. 13 mars 2023 01:42:12 -0400, a ecrit: > > @@ -854,21 +849,22 @@ kern_return_t task_info( > > task_thread_times_info_t times_info; > > thread_tthread; > > > > -

Re: [PATCH gnumach] Track task and thread time using time_value64_t.

2023-03-13 Thread Samuel Thibault
Hello, Flavio Cruz, le lun. 13 mars 2023 01:42:12 -0400, a ecrit: > @@ -854,21 +849,22 @@ kern_return_t task_info( > task_thread_times_info_t times_info; > thread_tthread; > > - if (*task_info_count < TASK_THREAD_TIMES_INFO_COUNT) { > +

[PATCH gnumach] Track task and thread time using time_value64_t.

2023-03-12 Thread Flavio Cruz
Changed kern/timer.c to use the higher precision time_value64_t. Of course, this won't suffer from the 2038 overflow but it does provide nanosecond precision (if gnumach ever uses a better timer) and moves us closer to only having time_value64_t. --- include/mach/time_value.h | 5 +++ kern/mach_c