Re: [PATCH gnumach] Update thread and task creation time to use time_value64_t

2023-03-12 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le sam. 11 mars 2023 14:38:08 -0500, a ecrit: > --- > kern/mach_clock.c | 13 + > kern/mach_clock.h | 4 ++-- > kern/task.h | 2 +- > kern/thread.h | 2 +- > 4 files changed, 9 insertions(+), 12 deletions(-) > > diff --git a/kern/mach_clock.

[PATCH gnumach] Use c_string to define host_get_kernel_version and host_get_kernel_boot_info.

2023-03-12 Thread Flavio Cruz
The existing definitions for kernel_version_t and kernel_boot_info_t use (MACH_MSG_TYPE_STRING, length*8) which result in message types that have a single element of 512 or 4096 bytes (set as msgt_size). This results in MiG generating mach_msg_type_long_t. Using c_string has the benefit of moving t

[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

[PATCH gnumach] Use host_get_time64 in glue code

2023-03-12 Thread Flavio Cruz
--- linux/dev/glue/misc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/dev/glue/misc.c b/linux/dev/glue/misc.c index 92541c7b..5646e5ea 100644 --- a/linux/dev/glue/misc.c +++ b/linux/dev/glue/misc.c @@ -235,7 +235,10 @@ do_gettimeofday (struct timeval *tv) * ex