diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2022-12-06 00:35:01 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-06 21:26:19 +0100 |
commit | 2a7263559572f178322451a6a1e0a43dc90cdb32 (patch) | |
tree | beb008838cac227cc7844ac02067731a5ca3ef20 /include/mach_debug | |
parent | 45afcc68979b700bdef1dc0e27ba79e0822b1c18 (diff) | |
download | gnumach-2a7263559572f178322451a6a1e0a43dc90cdb32.tar.gz gnumach-2a7263559572f178322451a6a1e0a43dc90cdb32.tar.bz2 gnumach-2a7263559572f178322451a6a1e0a43dc90cdb32.zip |
Make task_info.h structs more portable
Changed vm_size_t to rpc_size_t so that both userland and kernel agree
on the same size. Also changed the denominator for the maximum struct
sizes to be integer_t to match the other declarations.
Introduced long_natural_t and rpc_long_natural_t to represent large
counters. Replaced rpc_unsigned_long with rpc_long_natural_t.
Message-Id: <Y47UhaOzKnqhgYq4@reue>
Diffstat (limited to 'include/mach_debug')
-rw-r--r-- | include/mach_debug/mach_debug_types.defs | 10 | ||||
-rw-r--r-- | include/mach_debug/slab_info.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/mach_debug/mach_debug_types.defs b/include/mach_debug/mach_debug_types.defs index c138dc40..fd940384 100644 --- a/include/mach_debug/mach_debug_types.defs +++ b/include/mach_debug/mach_debug_types.defs @@ -42,11 +42,11 @@ type cache_info_t = struct { rpc_vm_size_t align; rpc_vm_size_t buf_size; rpc_vm_size_t slab_size; - rpc_unsigned_long bufs_per_slab; - rpc_unsigned_long nr_objs; - rpc_unsigned_long nr_bufs; - rpc_unsigned_long nr_slabs; - rpc_unsigned_long nr_free_slabs; + rpc_long_natural_t bufs_per_slab; + rpc_long_natural_t nr_objs; + rpc_long_natural_t nr_bufs; + rpc_long_natural_t nr_slabs; + rpc_long_natural_t nr_free_slabs; cache_name_t name; }; type cache_info_array_t = array[] of cache_info_t; diff --git a/include/mach_debug/slab_info.h b/include/mach_debug/slab_info.h index 19a87307..0f6b5a2c 100644 --- a/include/mach_debug/slab_info.h +++ b/include/mach_debug/slab_info.h @@ -43,11 +43,11 @@ typedef struct cache_info { rpc_vm_size_t align; rpc_vm_size_t buf_size; rpc_vm_size_t slab_size; - rpc_unsigned_long bufs_per_slab; - rpc_unsigned_long nr_objs; - rpc_unsigned_long nr_bufs; - rpc_unsigned_long nr_slabs; - rpc_unsigned_long nr_free_slabs; + rpc_long_natural_t bufs_per_slab; + rpc_long_natural_t nr_objs; + rpc_long_natural_t nr_bufs; + rpc_long_natural_t nr_slabs; + rpc_long_natural_t nr_free_slabs; char name[CACHE_NAME_MAX_LEN]; } cache_info_t; |