| ... | @@ -3994,9 +3994,6 @@ pub const HOST = struct { | ... | @@ -3994,9 +3994,6 @@ pub const HOST = struct { |
| 3994 | pub const DEBUG_INFO_INTERNAL = 10; | 3994 | pub const DEBUG_INFO_INTERNAL = 10; |
| 3995 | pub const CAN_HAS_DEBUGGER = 11; | 3995 | pub const CAN_HAS_DEBUGGER = 11; |
| 3996 | pub const PREFERRED_USER_ARCH = 12; | 3996 | pub const PREFERRED_USER_ARCH = 12; |
| 3997 | pub const LOAD_INFO = 1; | | |
| 3998 | pub const VM_INFO = 2; | | |
| 3999 | pub const CPU_LOAD_INFO = 3; | | |
| 4000 | pub const CAN_HAS_DEBUGGER_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_can_has_debugger_info_data_t) / @sizeOf(integer_t)); | 3997 | pub const CAN_HAS_DEBUGGER_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_can_has_debugger_info_data_t) / @sizeOf(integer_t)); |
| 4001 | pub const SCHED_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_sched_info_data_t) / @sizeOf(integer_t)); | 3998 | pub const SCHED_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_sched_info_data_t) / @sizeOf(integer_t)); |
| 4002 | pub const RESOURCES_SIZES_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(kernel_resource_sizes_data_t) / @sizeOf(integer_t)); | 3999 | pub const RESOURCES_SIZES_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(kernel_resource_sizes_data_t) / @sizeOf(integer_t)); |
| ... | @@ -4004,7 +4001,6 @@ pub const HOST = struct { | ... | @@ -4004,7 +4001,6 @@ pub const HOST = struct { |
| 4004 | pub const CPU_LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_cpu_load_info_data_t) / @sizeOf(integer_t)); | 4001 | pub const CPU_LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_cpu_load_info_data_t) / @sizeOf(integer_t)); |
| 4005 | pub const LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_load_info_data_t) / @sizeOf(integer_t)); | 4002 | pub const LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_load_info_data_t) / @sizeOf(integer_t)); |
| 4006 | pub const PREFERRED_USER_ARCH_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_preferred_user_arch_data_t) / @sizeOf(integer_t)); | 4003 | pub const PREFERRED_USER_ARCH_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_preferred_user_arch_data_t) / @sizeOf(integer_t)); |
| 4007 | pub const VM_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(vm_statistics_data_t) / @sizeOf(integer_t)); | | |
| 4008 | }; | 4004 | }; |
| 4009 | | 4005 | |
| 4010 | pub const host_basic_info = packed struct(u32) { | 4006 | pub const host_basic_info = packed struct(u32) { |
| ... | @@ -4022,55 +4018,3 @@ pub const host_basic_info = packed struct(u32) { | ... | @@ -4022,55 +4018,3 @@ pub const host_basic_info = packed struct(u32) { |
| 4022 | }; | 4018 | }; |
| 4023 | | 4019 | |
| 4024 | pub extern "c" fn host_info(host: host_t, flavor: host_flavor_t, info_out: host_info_t, info_outCnt: [*]mach_msg_type_number_t) kern_return_t; | 4020 | pub extern "c" fn host_info(host: host_t, flavor: host_flavor_t, info_out: host_info_t, info_outCnt: [*]mach_msg_type_number_t) kern_return_t; |
| 4025 | pub extern "c" fn host_statistics(priv: host_t, flavor: host_flavor_t, info_out: host_info_t, info_outCnt: [*]mach_msg_type_number_t) kern_return_t; | | |
| 4026 | | | |
| 4027 | pub const vm_statistics = extern struct { | | |
| 4028 | free_count: natural_t, | | |
| 4029 | active_count: natural_t, | | |
| 4030 | inactive_count: natural_t, | | |
| 4031 | wire_count: natural_t, | | |
| 4032 | zero_fill_count: natural_t, | | |
| 4033 | reactivations: natural_t, | | |
| 4034 | pageins: natural_t, | | |
| 4035 | pageouts: natural_t, | | |
| 4036 | faults: natural_t, | | |
| 4037 | cow_faults: natural_t, | | |
| 4038 | lookups: natural_t, | | |
| 4039 | hits: natural_t, | | |
| 4040 | purgeable_count: natural_t, | | |
| 4041 | purges: natural_t, | | |
| 4042 | speculative_count: natural_t, | | |
| 4043 | }; | | |
| 4044 | | | |
| 4045 | pub const vm_statistics_t = *vm_statistics; | | |
| 4046 | pub const vm_statistics_data_t = vm_statistics; | | |
| 4047 | | | |
| 4048 | pub const vm_statistics64 align(8) = extern struct { | | |
| 4049 | free_count: natural_t, | | |
| 4050 | active_count: natural_t, | | |
| 4051 | inactive_count: natural_t, | | |
| 4052 | wire_count: natural_t, | | |
| 4053 | zero_fill_count: u64, | | |
| 4054 | reactivations: u64, | | |
| 4055 | pageins: u64, | | |
| 4056 | pageouts: u64, | | |
| 4057 | faults: u64, | | |
| 4058 | cow_faults: u64, | | |
| 4059 | lookups: u64, | | |
| 4060 | hits: u64, | | |
| 4061 | purges: u64, | | |
| 4062 | purgeable_count: natural_t, | | |
| 4063 | speculative_count: natural_t, | | |
| 4064 | decompressions: u64, | | |
| 4065 | compressions: u64, | | |
| 4066 | swapins: u64, | | |
| 4067 | swapouts: u64, | | |
| 4068 | compressor_page_count: natural_t, | | |
| 4069 | throttled_count: natural_t, | | |
| 4070 | external_page_count: natural_t, | | |
| 4071 | internal_page_count: natural_t, | | |
| 4072 | total_uncompressed_pages_in_compressor: u64, | | |
| 4073 | }; | | |
| 4074 | | | |
| 4075 | pub const vm_statistics64_t = *vm_statistics64; | | |
| 4076 | pub const vm_statistics64_data_t = vm_statistics64; | | |