aboutsummaryrefslogtreecommitdiff
path: root/include/mach/task_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/task_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/task_info.h')
-rw-r--r--include/mach/task_info.h10
1 files changed, 5 insertions, 5 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 */
};