aboutsummaryrefslogtreecommitdiff
path: root/include/mach/thread_info.h
diff options
context:
space:
mode:
authorLuca Dariz <luca@orpolo.org>2023-02-12 18:03:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-12 18:28:47 +0100
commit5fdc928d3d29fdc93ad00cea5f5c877a19013d44 (patch)
treeb4b63da236cd6d805d6bcd7bafad03ef3994bb40 /include/mach/thread_info.h
parentb0d39e2ffda3cdd67d81022f40b2a73518fda6d0 (diff)
downloadgnumach-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/mach/thread_info.h')
-rw-r--r--include/mach/thread_info.h6
1 files changed, 3 insertions, 3 deletions
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;