aboutsummaryrefslogtreecommitdiff
path: root/include/mach/mach4.defs
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-11-27 20:34:14 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-11-28 02:41:35 +0100
commit411be477d8cc87b0700fda70c050e1447a262c84 (patch)
tree7a3f860c6b0257ffb1de52eec62f3bf6ba6b787d /include/mach/mach4.defs
parent87cd0054a65713f82fba38e1da2985513c67deb8 (diff)
downloadgnumach-411be477d8cc87b0700fda70c050e1447a262c84.tar.gz
gnumach-411be477d8cc87b0700fda70c050e1447a262c84.tar.bz2
gnumach-411be477d8cc87b0700fda70c050e1447a262c84.zip
Use portable rpc types to define 'struct sample'.
Message-Id: <Y4QQFkTUR4M60Gx0@viriathus>
Diffstat (limited to 'include/mach/mach4.defs')
-rw-r--r--include/mach/mach4.defs10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/mach/mach4.defs b/include/mach/mach4.defs
index 61423a44..53cca7d3 100644
--- a/include/mach/mach4.defs
+++ b/include/mach/mach4.defs
@@ -41,10 +41,16 @@ subsystem
#ifdef MACH_PCSAMPLE
-type sampled_pc_t = struct[3] of natural_t;
+type sampled_pc_flavor_t = unsigned;
+
+type sampled_pc_t = struct {
+ rpc_vm_offset_t id;
+ rpc_vm_offset_t pc;
+ sampled_pc_flavor_t sampletype;
+};
+
type sampled_pc_array_t = array[*:512] of sampled_pc_t;
type sampled_pc_seqno_t = unsigned;
-type sampled_pc_flavor_t = natural_t;
routine task_enable_pc_sampling(
host : task_t;