[PATCH hurd] Use the new host_get_kernel_version introduced recently.

2023-03-14 Thread Flavio Cruz
https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=5447f965f1e109f7ac9aeb91c0e3906969a4adb8 provides more context. --- proc/host.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proc/host.c b/proc/host.c index 4cfd710e..e78e70da 100644 --- a/proc/host.c +++ b/

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

2023-03-14 Thread Flávio Cruz
On Mon, Mar 13, 2023 at 3:32 PM Samuel Thibault wrote: > Hello, > > Flavio Cruz, le lun. 13 mars 2023 01:41:57 -0400, a ecrit: > > 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 ele

[PATCH gnumach] Use c_string to define symtab_name_t.

2023-03-14 Thread Flavio Cruz
As mentioned in 5447f965, the c_string type correctly uses msgt_size/msgt_number, resulting in a more compact ABI that doesn't require mach_msg_type_long_t. I redefined host_load_symbol_table with a new Id since this is just a debug RPC and is not used anywhere. --- include/mach_debug/mach_debug.

[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; > > > > -