diff options
author | Luca Dariz <luca@orpolo.org> | 2023-02-12 18:03:11 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-12 18:28:47 +0100 |
commit | 5fdc928d3d29fdc93ad00cea5f5c877a19013d44 (patch) | |
tree | b4b63da236cd6d805d6bcd7bafad03ef3994bb40 /include | |
parent | b0d39e2ffda3cdd67d81022f40b2a73518fda6d0 (diff) | |
download | gnumach-5fdc928d3d29fdc93ad00cea5f5c877a19013d44.tar.gz gnumach-5fdc928d3d29fdc93ad00cea5f5c877a19013d44.tar.bz2 gnumach-5fdc928d3d29fdc93ad00cea5f5c877a19013d44.zip |
fix rpc time value for 64 bit
* include/mach/task_info.h: use rpc variant of time_value_t
* include/mach/thread_info.h: Likewise
* kern/mach_clock.c: use rpc variant of time_value_t in
read_time_stamp()
* kern/mach_clock.h: Likewise
* kern/thread.c: use rpc variant of thread_read_times()
* kern/timer.h_ add thread_read_times_rpc() by converting time_value_t
to the corresponding rpc structures inline.
Message-Id: <20230212170313.1501404-5-luca@orpolo.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/mach/task_info.h | 10 | ||||
-rw-r--r-- | include/mach/thread_info.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/mach/task_info.h b/include/mach/task_info.h index 3aaa7cd6..f448ee04 100644 --- a/include/mach/task_info.h +++ b/include/mach/task_info.h @@ -56,11 +56,11 @@ struct task_basic_info { integer_t base_priority; /* base scheduling priority */ rpc_vm_size_t virtual_size; /* number of virtual pages */ rpc_vm_size_t resident_size; /* number of resident pages */ - time_value_t user_time; /* total user run time for + rpc_time_value_t user_time; /* total user run time for terminated threads */ - time_value_t system_time; /* total system run time for + rpc_time_value_t system_time; /* total system run time for terminated threads */ - time_value_t creation_time; /* creation time stamp */ + rpc_time_value_t creation_time; /* creation time stamp */ }; typedef struct task_basic_info task_basic_info_data_t; @@ -89,9 +89,9 @@ typedef struct task_events_info *task_events_info_t; only accurate if suspended */ struct task_thread_times_info { - time_value_t user_time; /* total user run time for + rpc_time_value_t user_time; /* total user run time for live threads */ - time_value_t system_time; /* total system run time for + rpc_time_value_t system_time; /* total system run time for live threads */ }; diff --git a/include/mach/thread_info.h b/include/mach/thread_info.h index 569c8c84..46c1ceca 100644 --- a/include/mach/thread_info.h +++ b/include/mach/thread_info.h @@ -55,8 +55,8 @@ typedef integer_t thread_info_data_t[THREAD_INFO_MAX]; #define THREAD_BASIC_INFO 1 /* basic information */ struct thread_basic_info { - time_value_t user_time; /* user run time */ - time_value_t system_time; /* system run time */ + rpc_time_value_t user_time; /* user run time */ + rpc_time_value_t system_time; /* system run time */ integer_t cpu_usage; /* scaled cpu usage percentage */ integer_t base_priority; /* base scheduling priority */ integer_t cur_priority; /* current scheduling priority */ @@ -65,7 +65,7 @@ struct thread_basic_info { integer_t suspend_count; /* suspend count for thread */ integer_t sleep_time; /* number of seconds that thread has been sleeping */ - time_value_t creation_time; /* time stamp of creation */ + rpc_time_value_t creation_time; /* time stamp of creation */ }; typedef struct thread_basic_info thread_basic_info_data_t; |