diff options
author | Maksym Planeta <mcsim.planeta@gmail.com> | 2012-10-08 16:38:31 +0200 |
---|---|---|
committer | Maksym Planeta <mcsim.planeta@gmail.com> | 2012-10-28 12:23:37 +0100 |
commit | 2cf980488c7ffafae4036dddefa92d9a8cf2b0db (patch) | |
tree | 82d43d1c0af9e514eb995b0b6548ac25a85e2f9b /include | |
parent | 74250405e042ecf0f11adc42f00968b39d93fe3e (diff) |
Update debugging functions to make them inform caller about memory advice.
* include/mach_debug/vm_info.h (vm_region_info_t): Add memory advice that is
applied to region's information structure.
(vm_object_info_t): Add memory advice that is applied to object's
information structure.
* vm/vm_debug.c (mach_vm_region_info): Function changed to inform caller
about memory advice.
(mach_vm_object_info): Likewise.
Diffstat (limited to 'include')
-rw-r--r-- | include/mach_debug/vm_info.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mach_debug/vm_info.h b/include/mach_debug/vm_info.h index 70ba8878..35ac528f 100644 --- a/include/mach_debug/vm_info.h +++ b/include/mach_debug/vm_info.h @@ -52,6 +52,7 @@ typedef struct vm_region_info { /*vm_prot_t*/natural_t vri_protection; /* protection code */ /*vm_prot_t*/natural_t vri_max_protection; /* maximum protection */ /*vm_inherit_t*/natural_t vri_inheritance; /* inheritance */ +/*vm_advice_t*/natural_t vri_advice; /* advice */ natural_t vri_wired_count; /* number of times wired */ natural_t vri_user_wired_count; /* number of times user has wired */ @@ -90,6 +91,7 @@ typedef struct vm_object_info { vm_offset_t voi_paging_offset; /* offset into memory object */ /*memory_object_copy_strategy_t*/integer_t voi_copy_strategy; /* how to handle data copy */ +/*vm_advice_t*/natural_t voi_advice; /* how to handle data copy */ vm_offset_t voi_last_alloc; /* offset of last allocation */ natural_t voi_paging_in_progress; /* paging references */ vm_object_info_state_t voi_state; /* random state bits */ |